r316895 - [refactor] Fix a clang-tidy warning.
Haojian Wu via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 30 04:17:10 PDT 2017
Author: hokein
Date: Mon Oct 30 04:17:09 2017
New Revision: 316895
URL: http://llvm.org/viewvc/llvm-project?rev=316895&view=rev
Log:
[refactor] Fix a clang-tidy warning.
NFC
Modified:
cfe/trunk/lib/Tooling/Refactoring/Rename/RenamingAction.cpp
Modified: cfe/trunk/lib/Tooling/Refactoring/Rename/RenamingAction.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Tooling/Refactoring/Rename/RenamingAction.cpp?rev=316895&r1=316894&r2=316895&view=diff
==============================================================================
--- cfe/trunk/lib/Tooling/Refactoring/Rename/RenamingAction.cpp (original)
+++ cfe/trunk/lib/Tooling/Refactoring/Rename/RenamingAction.cpp Mon Oct 30 04:17:09 2017
@@ -77,7 +77,8 @@ RenameOccurrences::initiate(RefactoringR
if (!ND)
return Context.createDiagnosticError(
SelectionRange.getBegin(), diag::err_refactor_selection_no_symbol);
- return RenameOccurrences(getCanonicalSymbolDeclaration(ND), NewName);
+ return RenameOccurrences(getCanonicalSymbolDeclaration(ND),
+ std::move(NewName));
}
Expected<AtomicChanges>
More information about the cfe-commits
mailing list