diff options
author | Marco Bubke <marco.bubke@qt.io> | 2018-08-07 19:01:01 +0200 |
---|---|---|
committer | Marco Bubke <marco.bubke@qt.io> | 2018-08-14 12:47:03 +0000 |
commit | 4195fce68f06a1b0ed86cd1f36cddab160f3bf29 (patch) | |
tree | 087e3ce65d82c184097beea14d6bf0d72bab0122 /src/plugins/clangpchmanager/projectupdater.h | |
parent | f6b228842c7d605d59f08e31bcdc090524d53ccf (diff) |
ClangRefactoring: Integrate generated files
This is an intermediate step to handle the indexing of the project parts
completely. The generated files are now independently handled from the
project parts. We still not handle the case the a file is indexed but the
generated file is not provided. This will be done in a different patch.
All provided data is now sorted too to improve merging.
Change-Id: I09712b99217a881ec0a233d09aea8659fb787324
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
Diffstat (limited to 'src/plugins/clangpchmanager/projectupdater.h')
-rw-r--r-- | src/plugins/clangpchmanager/projectupdater.h | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/src/plugins/clangpchmanager/projectupdater.h b/src/plugins/clangpchmanager/projectupdater.h index e4066cd0d1..c0040863a9 100644 --- a/src/plugins/clangpchmanager/projectupdater.h +++ b/src/plugins/clangpchmanager/projectupdater.h @@ -30,6 +30,7 @@ #include <compilermacro.h> #include <filecontainerv2.h> #include <filepathcachinginterface.h> +#include <generatedfiles.h> namespace ProjectExplorer { class Macro; @@ -66,12 +67,17 @@ public: ProjectUpdater(ClangBackEnd::ProjectManagementServerInterface &server, ClangBackEnd::FilePathCachingInterface &filePathCache); - void updateProjectParts(const std::vector<CppTools::ProjectPart *> &projectParts, - ClangBackEnd::V2::FileContainers &&generatedFiles); + void updateProjectParts(const std::vector<CppTools::ProjectPart *> &projectParts); void removeProjectParts(const QStringList &projectPartIds); + void updateGeneratedFiles(ClangBackEnd::V2::FileContainers &&generatedFiles); + void removeGeneratedFiles(ClangBackEnd::FilePaths &&filePaths); + unittest_public: - void setExcludedPaths(Utils::PathStringVector &&excludedPaths); + void setExcludedPaths(ClangBackEnd::FilePaths &&excludedPaths); + const ClangBackEnd::FilePaths &excludedPaths() const; + + const ClangBackEnd::GeneratedFiles &generatedFiles() const; HeaderAndSources headerAndSourcesFromProjectPart(CppTools::ProjectPart *projectPart) const; ClangBackEnd::V2::ProjectPartContainer toProjectPartContainer( @@ -85,11 +91,12 @@ unittest_public: const ProjectExplorer::Macros &projectMacros); static Utils::SmallStringVector createIncludeSearchPaths( const CppTools::ProjectPartHeaderPaths &projectPartHeaderPaths); - static Utils::PathStringVector createExcludedPaths( + static ClangBackEnd::FilePaths createExcludedPaths( const ClangBackEnd::V2::FileContainers &generatedFiles); private: - Utils::PathStringVector m_excludedPaths; + ClangBackEnd::GeneratedFiles m_generatedFiles; + ClangBackEnd::FilePaths m_excludedPaths; ClangBackEnd::ProjectManagementServerInterface &m_server; ClangBackEnd::FilePathCachingInterface &m_filePathCache; }; |