diff options
author | Marco Bubke <marco.bubke@qt.io> | 2019-03-13 15:09:30 +0100 |
---|---|---|
committer | Marco Bubke <marco.bubke@qt.io> | 2019-04-01 10:31:38 +0000 |
commit | 6effa1822bd9bd265504c5ac3fed3fa5281e169f (patch) | |
tree | 794897a4f1f31c6040b64910ad807a865b0af451 /src/plugins/clangpchmanager/qtcreatorprojectupdater.h | |
parent | 72494277490566a04cb03bfbc25936eaa996c3b1 (diff) |
Clang: Improve project part updating
The project part ids are now already created very early in the database.
This removes some checks because we can assume that an id already exists.
The project part are now completely persistent, so we can read them from
the database and compare them with new generated from a new creator
session. This should help to not recreate the same PCH again and again.
Task-number: QTCREATORBUG-21151
Change-Id: Iced818ff9f7431eaed3e37978087cc0a43b9afda
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
Diffstat (limited to 'src/plugins/clangpchmanager/qtcreatorprojectupdater.h')
-rw-r--r-- | src/plugins/clangpchmanager/qtcreatorprojectupdater.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/plugins/clangpchmanager/qtcreatorprojectupdater.h b/src/plugins/clangpchmanager/qtcreatorprojectupdater.h index 4d66a2f8c3..a53bbc678a 100644 --- a/src/plugins/clangpchmanager/qtcreatorprojectupdater.h +++ b/src/plugins/clangpchmanager/qtcreatorprojectupdater.h @@ -55,11 +55,12 @@ class QtCreatorProjectUpdater : public ProjectUpdaterType, public ProjectExplorer::ExtraCompilerFactoryObserver { public: - template <typename ClientType> + template<typename ClientType> QtCreatorProjectUpdater(ClangBackEnd::ProjectManagementServerInterface &server, ClientType &client, - ClangBackEnd::FilePathCachingInterface &filePathCache) - : ProjectUpdaterType(server, client, filePathCache) + ClangBackEnd::FilePathCachingInterface &filePathCache, + ClangBackEnd::ProjectPartsStorageInterface &projectPartsStorage) + : ProjectUpdaterType(server, client, filePathCache, projectPartsStorage) { connectToCppModelManager(); } @@ -78,7 +79,7 @@ public: } void projectPartsRemoved(const QStringList &projectPartIds) - { + { ProjectUpdaterType::removeProjectParts(projectPartIds); } |