aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/clangtools/clangtoolruncontrol.h
diff options
context:
space:
mode:
authorNikolai Kosjar <nikolai.kosjar@qt.io>2019-07-09 12:42:07 +0200
committerNikolai Kosjar <nikolai.kosjar@qt.io>2019-07-10 07:56:57 +0000
commitb6346369eb9c4b10ea6ca7735b58cd1c6cf73074 (patch)
tree9ee617a7470c92c9ec8807418643de2b74dacbc1 /src/plugins/clangtools/clangtoolruncontrol.h
parent2aa067f28e973df757b65830ba6c278ebc03e6e6 (diff)
ClangTools: Fix showing diagnostics outside the project root dir
Accept diagnostics from files that are known to the project (Project::files()) instead of checking whether they are below the project root directory (Project::projectDirectory()). Fixes: QTCREATORBUG-22213 Change-Id: I2f96374d6de3f53b1bd42be875dfe44b25a55fb1 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/clangtools/clangtoolruncontrol.h')
-rw-r--r--src/plugins/clangtools/clangtoolruncontrol.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/clangtools/clangtoolruncontrol.h b/src/plugins/clangtools/clangtoolruncontrol.h
index 92ecb5e2b2..2027d9513b 100644
--- a/src/plugins/clangtools/clangtoolruncontrol.h
+++ b/src/plugins/clangtools/clangtoolruncontrol.h
@@ -104,6 +104,7 @@ private:
QFutureInterface<void> m_progress;
AnalyzeUnits m_unitsToProcess;
+ QSet<Utils::FilePath> m_projectFiles;
QSet<ClangToolRunner *> m_runners;
int m_initialFilesToProcessSize = 0;
int m_filesAnalyzed = 0;