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:
@@ -417,7 +417,9 @@ void TranslationUnit::checkTranslationUnitErrorCode(CXErrorCode errorCode) const
|
||||
{
|
||||
switch (errorCode) {
|
||||
case CXError_Success: break;
|
||||
default: throw TranslationUnitParseErrorException(d->filePath, d->projectPart.projectPartId());
|
||||
default: throw TranslationUnitParseErrorException(d->filePath,
|
||||
d->projectPart.projectPartId(),
|
||||
errorCode);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user