summaryrefslogtreecommitdiffstats
path: root/include-fixer/IncludeFixer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'include-fixer/IncludeFixer.cpp')
-rw-r--r--include-fixer/IncludeFixer.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/include-fixer/IncludeFixer.cpp b/include-fixer/IncludeFixer.cpp
index ad3f8e9d..204d0c4e 100644
--- a/include-fixer/IncludeFixer.cpp
+++ b/include-fixer/IncludeFixer.cpp
@@ -82,14 +82,15 @@ IncludeFixerActionFactory::IncludeFixerActionFactory(
IncludeFixerActionFactory::~IncludeFixerActionFactory() = default;
bool IncludeFixerActionFactory::runInvocation(
- clang::CompilerInvocation *Invocation, clang::FileManager *Files,
+ std::shared_ptr<clang::CompilerInvocation> Invocation,
+ clang::FileManager *Files,
std::shared_ptr<clang::PCHContainerOperations> PCHContainerOps,
clang::DiagnosticConsumer *Diagnostics) {
assert(Invocation->getFrontendOpts().Inputs.size() == 1);
// Set up Clang.
clang::CompilerInstance Compiler(PCHContainerOps);
- Compiler.setInvocation(Invocation);
+ Compiler.setInvocation(std::move(Invocation));
Compiler.setFileManager(Files);
// Create the compiler's actual diagnostics engine. We want to drop all