projects
/
clang
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a621a8d
)
[refactor] Fix a clang-tidy warning.
author
Haojian Wu
<hokein@google.com>
Mon, 30 Oct 2017 11:17:09 +0000
(11:17 +0000)
committer
Haojian Wu
<hokein@google.com>
Mon, 30 Oct 2017 11:17:09 +0000
(11:17 +0000)
NFC
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@316895
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Tooling/Refactoring/Rename/RenamingAction.cpp
patch
|
blob
|
history
diff --git
a/lib/Tooling/Refactoring/Rename/RenamingAction.cpp
b/lib/Tooling/Refactoring/Rename/RenamingAction.cpp
index 210b45b79ef22ed1a5d67a54e4372eb12428b3e3..695fa553b452ee22b76af67e384b5112791ad8e9 100644
(file)
--- a/
lib/Tooling/Refactoring/Rename/RenamingAction.cpp
+++ b/
lib/Tooling/Refactoring/Rename/RenamingAction.cpp
@@
-77,7
+77,8
@@
RenameOccurrences::initiate(RefactoringRuleContext &Context,
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>