From 56ae0c38e86f32d59805e90415fd5aeca7f82538 Mon Sep 17 00:00:00 2001 From: Haojian Wu Date: Tue, 10 Oct 2017 09:48:38 +0000 Subject: [PATCH] [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 --- tools/clang-refactor/ClangRefactor.cpp | 4 ++-- 1 file 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 newASTConsumer() { - return llvm::make_unique(std::move(Callback)); + return llvm::make_unique(Callback); } }; ClangTool Tool(DB, Sources); - ActionWrapper ToolAction(std::move(Callback)); + ActionWrapper ToolAction(Callback); std::unique_ptr Factory = tooling::newFrontendActionFactory(&ToolAction); return Tool.run(Factory.get()); -- 2.40.0