forked from qt-creator/qt-creator
Clang: Report only diagnostics that can be shown in the editor
Change-Id: I9c258159d240c6ba7eeff34702d8512d9220b3af Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com>
This commit is contained in:
@@ -233,7 +233,7 @@ void ClangIpcServer::requestDiagnostics(const RequestDiagnosticsMessage &message
|
||||
message.file().projectPartId());
|
||||
|
||||
client()->diagnosticsChanged(DiagnosticsChangedMessage(translationUnit.fileContainer(),
|
||||
translationUnit.diagnostics().toDiagnosticContainers()));
|
||||
translationUnit.mainFileDiagnostics()));
|
||||
} catch (const TranslationUnitDoesNotExistException &exception) {
|
||||
client()->translationUnitDoesNotExist(TranslationUnitDoesNotExistMessage(exception.fileContainer()));
|
||||
} catch (const ProjectPartDoNotExistException &exception) {
|
||||
|
||||
Reference in New Issue
Block a user