diff options
author | Nikolai Kosjar <[email protected]> | 2018-09-25 09:41:32 +0200 |
---|---|---|
committer | Nikolai Kosjar <[email protected]> | 2018-09-26 10:45:41 +0000 |
commit | aa290912b832da3d4fd57e762902d3c24614d1a6 (patch) | |
tree | 52e211dc06503c386ad19e8bf4b038c8b5a8323b /src/plugins/clangcodemodel/clangbackendreceiver.cpp | |
parent | 25ea9a4d2465a1ca7d1375f8937fd36d247f41e4 (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 <[email protected]>
Diffstat (limited to 'src/plugins/clangcodemodel/clangbackendreceiver.cpp')
-rw-r--r-- | src/plugins/clangcodemodel/clangbackendreceiver.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/plugins/clangcodemodel/clangbackendreceiver.cpp b/src/plugins/clangcodemodel/clangbackendreceiver.cpp index 7218695d613..cf113617c36 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); |