diff options
author | Nikolai Kosjar <nikolai.kosjar@theqtcompany.com> | 2015-09-15 11:48:25 +0200 |
---|---|---|
committer | Nikolai Kosjar <nikolai.kosjar@theqtcompany.com> | 2015-11-06 11:55:39 +0000 |
commit | 56f37f78b2883771a11f4ceeb596b77e55c218f7 (patch) | |
tree | fbb8662fc650d92f8edeb9d624711c40dc53ba69 /src/plugins/clangcodemodel/clangeditordocumentparser.h | |
parent | 787b386ecc51a48315cb2c23ea5329b0f7f9b372 (diff) |
Clang: Speed up requesting diagnostics
Register the translation unit and request diagnostics from the
clangbackend as soon as the project part is determined. There is no
reason to wait until the parser is finished for the highlighter.
Change-Id: Iebccbf59ebd205389462dcee97363746fb651bb2
Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
Diffstat (limited to 'src/plugins/clangcodemodel/clangeditordocumentparser.h')
-rw-r--r-- | src/plugins/clangcodemodel/clangeditordocumentparser.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/clangcodemodel/clangeditordocumentparser.h b/src/plugins/clangcodemodel/clangeditordocumentparser.h index 4784d51672..ef207749c2 100644 --- a/src/plugins/clangcodemodel/clangeditordocumentparser.h +++ b/src/plugins/clangcodemodel/clangeditordocumentparser.h @@ -50,6 +50,9 @@ public: QList<SemanticMarker::Range> ifdefedOutBlocks() const; SemanticMarker::Ptr semanticMarker() const; +signals: + void projectPartDetermined(CppTools::ProjectPart::Ptr projectPart); + private: void updateHelper(const BaseEditorDocumentParser::InMemoryInfo &info) override; |