r315290 - [clang-refactor] Fix clang-tidy misc-move-const-arg warning.
Haojian Wu via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 10 02:48:38 PDT 2017
Author: hokein
Date: Tue Oct 10 02:48:38 2017
New Revision: 315290
URL: http://llvm.org/viewvc/llvm-project?rev=315290&view=rev
Log:
[clang-refactor] Fix clang-tidy misc-move-const-arg warning.
NFC
Modified:
cfe/trunk/tools/clang-refactor/ClangRefactor.cpp
Modified: cfe/trunk/tools/clang-refactor/ClangRefactor.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/clang-refactor/ClangRefactor.cpp?rev=315290&r1=315289&r2=315290&view=diff
==============================================================================
--- cfe/trunk/tools/clang-refactor/ClangRefactor.cpp (original)
+++ cfe/trunk/tools/clang-refactor/ClangRefactor.cpp Tue Oct 10 02:48:38 2017
@@ -226,12 +226,12 @@ public:
ActionWrapper(TUCallbackType Callback) : Callback(Callback) {}
std::unique_ptr<ASTConsumer> newASTConsumer() {
- return llvm::make_unique<ToolASTConsumer>(std::move(Callback));
+ return llvm::make_unique<ToolASTConsumer>(Callback);
}
};
ClangTool Tool(DB, Sources);
- ActionWrapper ToolAction(std::move(Callback));
+ ActionWrapper ToolAction(Callback);
std::unique_ptr<tooling::FrontendActionFactory> Factory =
tooling::newFrontendActionFactory(&ToolAction);
return Tool.run(Factory.get());
More information about the cfe-commits
mailing list