aboutsummaryrefslogtreecommitdiffstats
path: root/src/tools/clangpchmanagerbackend/source/collectbuilddependencyaction.h
diff options
context:
space:
mode:
authorMarco Bubke <marco.bubke@qt.io>2019-05-23 18:32:47 +0200
committerMarco Bubke <marco.bubke@qt.io>2019-06-17 10:49:49 +0000
commitee27ae2ef78692b29d26c466c519f4318526a7a4 (patch)
tree2ebb99780af3335260d33f2eaf6f1f9a49745a7f /src/tools/clangpchmanagerbackend/source/collectbuilddependencyaction.h
parentb36e9d0e95f53fdebcf63f79060c0ebff42d0bf2 (diff)
ClangRefactoring: Improve indexing
Fix some bugs in the indexing and use the new macro indexer from clang. Change-Id: I2ba1b28097a8751aea942071851a60d164c6f371 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Diffstat (limited to 'src/tools/clangpchmanagerbackend/source/collectbuilddependencyaction.h')
-rw-r--r--src/tools/clangpchmanagerbackend/source/collectbuilddependencyaction.h18
1 files changed, 7 insertions, 11 deletions
diff --git a/src/tools/clangpchmanagerbackend/source/collectbuilddependencyaction.h b/src/tools/clangpchmanagerbackend/source/collectbuilddependencyaction.h
index fa1a10e79c..3e98dc2483 100644
--- a/src/tools/clangpchmanagerbackend/source/collectbuilddependencyaction.h
+++ b/src/tools/clangpchmanagerbackend/source/collectbuilddependencyaction.h
@@ -40,15 +40,13 @@ class CollectBuildDependencyAction final : public clang::PreprocessOnlyAction
{
public:
CollectBuildDependencyAction(BuildDependency &buildDependency,
- const FilePathCachingInterface &filePathCache,
- std::vector<uint> &excludedIncludeUID,
- std::vector<uint> &alreadyIncludedFileUIDs,
- SourcesManager &sourcesManager)
- : m_buildDependency(buildDependency),
- m_filePathCache(filePathCache),
- m_excludedIncludeUID(excludedIncludeUID),
- m_alreadyIncludedFileUIDs(alreadyIncludedFileUIDs),
- m_sourcesManager(sourcesManager)
+ const FilePathCachingInterface &filePathCache,
+ std::vector<uint> &excludedIncludeUID,
+ std::vector<uint> &alreadyIncludedFileUIDs)
+ : m_buildDependency(buildDependency)
+ , m_filePathCache(filePathCache)
+ , m_excludedIncludeUID(excludedIncludeUID)
+ , m_alreadyIncludedFileUIDs(alreadyIncludedFileUIDs)
{
}
@@ -66,7 +64,6 @@ public:
m_excludedIncludeUID,
m_alreadyIncludedFileUIDs,
compilerInstance.getSourceManager(),
- m_sourcesManager,
compilerInstance.getPreprocessorPtr());
preprocessor.addPPCallbacks(
@@ -88,7 +85,6 @@ private:
const FilePathCachingInterface &m_filePathCache;
std::vector<uint> &m_excludedIncludeUID;
std::vector<uint> &m_alreadyIncludedFileUIDs;
- SourcesManager &m_sourcesManager;
};
} // namespace ClangBackEnd