summaryrefslogtreecommitdiff
path: root/src/tools/clangpchmanagerbackend/source/collectincludesaction.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/clangpchmanagerbackend/source/collectincludesaction.h')
-rw-r--r--src/tools/clangpchmanagerbackend/source/collectincludesaction.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/tools/clangpchmanagerbackend/source/collectincludesaction.h b/src/tools/clangpchmanagerbackend/source/collectincludesaction.h
index c61dfecb61..9469e16fb0 100644
--- a/src/tools/clangpchmanagerbackend/source/collectincludesaction.h
+++ b/src/tools/clangpchmanagerbackend/source/collectincludesaction.h
@@ -50,20 +50,21 @@ public:
{
}
- bool BeginSourceFileAction(clang::CompilerInstance &compilerInstance,
- llvm::StringRef filename) override
+ bool BeginSourceFileAction(clang::CompilerInstance &compilerInstance) override
{
- if (clang::PreprocessOnlyAction::BeginSourceFileAction(compilerInstance, filename)) {
+ if (clang::PreprocessOnlyAction::BeginSourceFileAction(compilerInstance)) {
auto &preprocessor = compilerInstance.getPreprocessor();
auto &headerSearch = preprocessor.getHeaderSearchInfo();
preprocessor.SetSuppressIncludeNotFoundError(true);
- auto macroPreprocessorCallbacks = new CollectIncludesPreprocessorCallbacks(headerSearch,
- m_includeIds,
- m_filePathCache,
- m_excludedIncludeUID,
- m_alreadyIncludedFileUIDs);
+ auto macroPreprocessorCallbacks = new CollectIncludesPreprocessorCallbacks(
+ headerSearch,
+ m_includeIds,
+ m_filePathCache,
+ m_excludedIncludeUID,
+ m_alreadyIncludedFileUIDs,
+ compilerInstance.getSourceManager());
preprocessor.addPPCallbacks(std::unique_ptr<clang::PPCallbacks>(macroPreprocessorCallbacks));