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.cpp | |
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.cpp')
-rw-r--r-- | src/plugins/clangcodemodel/clangeditordocumentparser.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/clangcodemodel/clangeditordocumentparser.cpp b/src/plugins/clangcodemodel/clangeditordocumentparser.cpp index 43a78680176..caeefd2267d 100644 --- a/src/plugins/clangcodemodel/clangeditordocumentparser.cpp +++ b/src/plugins/clangcodemodel/clangeditordocumentparser.cpp @@ -99,6 +99,7 @@ void ClangEditorDocumentParser::updateHelper(const BaseEditorDocumentParser::InM State state_ = state(); state_.projectPart = determineProjectPart(filePath(), configuration(), state_); setState(state_); + emit projectPartDetermined(state_.projectPart); // Determine message line arguments const QStringList options = createOptions(filePath(), state_.projectPart, true); |