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/cpptools/cppprojects.h | |
parent | 787b386ecc51a48315cb2c23ea5329b0f7f9b372 (diff) | |
download | qt-creator-56f37f78b2883771a11f4ceeb596b77e55c218f7.tar.gz |
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/cpptools/cppprojects.h')
-rw-r--r-- | src/plugins/cpptools/cppprojects.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/cpptools/cppprojects.h b/src/plugins/cpptools/cppprojects.h index c994257fa4..dc6c841bf0 100644 --- a/src/plugins/cpptools/cppprojects.h +++ b/src/plugins/cpptools/cppprojects.h @@ -247,4 +247,6 @@ private: } // namespace CppTools +Q_DECLARE_METATYPE(CppTools::ProjectPart::Ptr) + #endif // CPPPROJECTPART_H |