forked from qt-creator/qt-creator
Clang: Print error code on parse error
Change-Id: Idecb0e9b78cc14c603de09fc460bbf17f43bb451 Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com> Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -28,6 +28,8 @@
|
||||
|
||||
#include <utf8string.h>
|
||||
|
||||
#include <clang-c/Index.h>
|
||||
|
||||
#include <exception>
|
||||
|
||||
namespace ClangBackEnd {
|
||||
@@ -35,7 +37,9 @@ namespace ClangBackEnd {
|
||||
class TranslationUnitParseErrorException : public std::exception
|
||||
{
|
||||
public:
|
||||
TranslationUnitParseErrorException(const Utf8String &filePath, const Utf8String &projectPartId);
|
||||
TranslationUnitParseErrorException(const Utf8String &filePath,
|
||||
const Utf8String &projectPartId,
|
||||
CXErrorCode errorCode);
|
||||
|
||||
const Utf8String &filePath() const;
|
||||
const Utf8String &projectPartId() const;
|
||||
@@ -51,6 +55,7 @@ public:
|
||||
private:
|
||||
Utf8String filePath_;
|
||||
Utf8String projectPartId_;
|
||||
CXErrorCode errorCode_;
|
||||
mutable Utf8String what_;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user