summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaojian Wu <hokein@google.com>2017-10-10 09:48:38 +0000
committerHaojian Wu <hokein@google.com>2017-10-10 09:48:38 +0000
commit56ae0c38e86f32d59805e90415fd5aeca7f82538 (patch)
treed379fc42c32c2940fbf678dade356694d1b063ed
parentbb7654dfb02e24b1e5ce000738161b20a4fcb41e (diff)
downloadclang-56ae0c38e86f32d59805e90415fd5aeca7f82538.tar.gz
[clang-refactor] Fix clang-tidy misc-move-const-arg warning.
NFC git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@315290 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--tools/clang-refactor/ClangRefactor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/clang-refactor/ClangRefactor.cpp b/tools/clang-refactor/ClangRefactor.cpp
index ff13773072..47b1dfeeca 100644
--- a/tools/clang-refactor/ClangRefactor.cpp
+++ b/tools/clang-refactor/ClangRefactor.cpp
@@ -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());