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/clangeditordocumentprocessor.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/clangeditordocumentprocessor.h')
-rw-r--r-- | src/plugins/clangcodemodel/clangeditordocumentprocessor.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/clangcodemodel/clangeditordocumentprocessor.h b/src/plugins/clangcodemodel/clangeditordocumentprocessor.h index 4e29265aba..575725e873 100644 --- a/src/plugins/clangcodemodel/clangeditordocumentprocessor.h +++ b/src/plugins/clangcodemodel/clangeditordocumentprocessor.h @@ -85,10 +85,11 @@ public: static ClangEditorDocumentProcessor *get(const QString &filePath); private slots: + void onParserDeterminedProjectPart(CppTools::ProjectPart::Ptr projectPart); void onParserFinished(); private: - void updateProjectPartAndTranslationUnitForEditor(); + void updateProjectPartAndTranslationUnitForEditor(CppTools::ProjectPart::Ptr projectPart); void updateTranslationUnitForEditor(CppTools::ProjectPart *projectPart); void requestDiagnostics(CppTools::ProjectPart *projectPart); void requestDiagnostics(); |