diff options
author | Nikolai Kosjar <nikolai.kosjar@qt.io> | 2019-04-25 11:36:13 +0200 |
---|---|---|
committer | Nikolai Kosjar <nikolai.kosjar@qt.io> | 2019-04-25 11:37:09 +0000 |
commit | 50715e71b9bf296277ce5408544ac9e41a593b88 (patch) | |
tree | 5dc1c8b2156311a6c7a4a0e1cdd2ee43a37db56e /src/tools | |
parent | f0c64c3bd7032230865433dfc0c044952d1044f6 (diff) |
Clang: Fix detection of unresolved #includes
The diagnostic severity of unresolved includes changed with
[backported/clang-9][libclang] Fix CXTranslationUnit_KeepGoing
commit dba0adcfe0 @ https://code.qt.io/clang/clang
from "Fatal" back to "Error".
Adapt to this accordingly.
This fixes
[ FAILED ] ClangCodeModelServerSlowTest.UicHeaderAvailableAfterParse
[ FAILED ] UpdateAnnotationsJobSlowTest.UpdatesUnresolvedFilePaths
Change-Id: Ica11206437e21e6219736e9851ceb77aecc47efb
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
Diffstat (limited to 'src/tools')
-rw-r--r-- | src/tools/clangbackend/source/clangupdateannotationsjob.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/clangbackend/source/clangupdateannotationsjob.cpp b/src/tools/clangbackend/source/clangupdateannotationsjob.cpp index 5a28d64ac2..bdd05512e6 100644 --- a/src/tools/clangbackend/source/clangupdateannotationsjob.cpp +++ b/src/tools/clangbackend/source/clangupdateannotationsjob.cpp @@ -44,7 +44,7 @@ static QSet<Utf8String> unresolvedFilePaths(const QVector<DiagnosticContainer> & QSet<Utf8String> unresolved; for (const DiagnosticContainer &diagnostic : diagnostics) { - if (diagnostic.severity == DiagnosticSeverity::Fatal + if (diagnostic.severity == DiagnosticSeverity::Error && diagnostic.category == Utf8StringLiteral("Lexical or Preprocessor Issue")) { const QString path = re.match(diagnostic.text).captured(1); if (!path.isEmpty()) |