diff options
author | Marco Bubke <marco.bubke@qt.io> | 2018-01-22 14:21:01 +0100 |
---|---|---|
committer | Marco Bubke <marco.bubke@qt.io> | 2018-01-29 13:47:09 +0000 |
commit | 0f8befacd3b41c2b05da3881bcbf6a69ea8ba9fb (patch) | |
tree | 875ad183700aac1865dfc5ea2da9bc4f26d32cc5 /src/plugins/clangpchmanager/projectupdater.h | |
parent | 3d2db474a4f629849383f105b205cece8142cfa4 (diff) |
Clang: On the road to update and preprocessor support
This patch has grown in a quite big change set and it is really hard to
divide it in different parts.
V2::ProjectPartContainer is now using FileIds instead of file paths. This
cleans code up because it is a big step in the direction that internally
only file ids are used. But it is depending on the file cache, so the
file cache has to be provided as an argument. There is now an interface for
transactions too which are ease the testing of them and enables the support
of preprocessor. It adds macros as symbols and is saving used macros. The
used macro support is enabling update improvements because only if a
changed macro is used it needs to be recompiled. This is still in flux
and can be changed in later patches.
Change-Id: I492a2c9af1201d40fdd9f46a0045f7878bbbaa3d
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
Diffstat (limited to 'src/plugins/clangpchmanager/projectupdater.h')
-rw-r--r-- | src/plugins/clangpchmanager/projectupdater.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/plugins/clangpchmanager/projectupdater.h b/src/plugins/clangpchmanager/projectupdater.h index e207a88971..a86e8d1970 100644 --- a/src/plugins/clangpchmanager/projectupdater.h +++ b/src/plugins/clangpchmanager/projectupdater.h @@ -28,6 +28,7 @@ #include "clangpchmanager_global.h" #include <filecontainerv2.h> +#include <filepathcachinginterface.h> namespace CppTools { class ProjectPart; @@ -54,7 +55,8 @@ class PchManagerClient; class CLANGPCHMANAGER_EXPORT ProjectUpdater { public: - ProjectUpdater(ClangBackEnd::ProjectManagementServerInterface &server); + ProjectUpdater(ClangBackEnd::ProjectManagementServerInterface &server, + ClangBackEnd::FilePathCachingInterface &filePathCache); void updateProjectParts(const std::vector<CppTools::ProjectPart *> &projectParts, ClangBackEnd::V2::FileContainers &&generatedFiles); @@ -77,6 +79,7 @@ unittest_public: private: Utils::PathStringVector m_excludedPaths; ClangBackEnd::ProjectManagementServerInterface &m_server; + ClangBackEnd::FilePathCachingInterface &m_filePathCache; }; } // namespace ClangPchManager |