aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/clangcodemodel/clangbackendreceiver.cpp
diff options
context:
space:
mode:
authorNikolai Kosjar <nikolai.kosjar@qt.io>2018-09-25 09:41:32 +0200
committerNikolai Kosjar <nikolai.kosjar@qt.io>2018-09-26 10:45:41 +0000
commitaa290912b832da3d4fd57e762902d3c24614d1a6 (patch)
tree52e211dc06503c386ad19e8bf4b038c8b5a8323b /src/plugins/clangcodemodel/clangbackendreceiver.cpp
parent25ea9a4d2465a1ca7d1375f8937fd36d247f41e4 (diff)
Clang: Remove project tracking on clangbackend side
...as it is not needed. Just provide the compilation arguments as part of the Document. As a side effect, re-initializing the backend after a crash is cheaper and will not freeze the UI anymore (referenced bug). Task-number: QTCREATORBUG-21097 Change-Id: I866e25ef1fd5e4d318df16612a7564469e6baa11 Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
Diffstat (limited to 'src/plugins/clangcodemodel/clangbackendreceiver.cpp')
-rw-r--r--src/plugins/clangcodemodel/clangbackendreceiver.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/plugins/clangcodemodel/clangbackendreceiver.cpp b/src/plugins/clangcodemodel/clangbackendreceiver.cpp
index 7218695d61..cf113617c3 100644
--- a/src/plugins/clangcodemodel/clangbackendreceiver.cpp
+++ b/src/plugins/clangcodemodel/clangbackendreceiver.cpp
@@ -199,16 +199,9 @@ void BackendReceiver::annotations(const AnnotationsMessage &message)
<< message.skippedPreprocessorRanges.size() << "skipped preprocessor ranges";
auto processor = ClangEditorDocumentProcessor::get(message.fileContainer.filePath);
-
if (!processor)
return;
- const QString projectPartId = message.fileContainer.projectPartId;
- const QString filePath = message.fileContainer.filePath;
- const QString documentProjectPartId = CppTools::CppToolsBridge::projectPartIdForFile(filePath);
- if (projectPartId != documentProjectPartId)
- return;
-
const quint32 documentRevision = message.fileContainer.documentRevision;
if (message.onlyTokenInfos) {
processor->updateTokenInfos(message.tokenInfos, documentRevision);