[PATCH] D69892: [clang-rename] Respect the traversal scope when traversing the entire AST.
Haojian Wu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 7 01:45:45 PST 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rG118f7836a65e: [clang-rename] Respect the traversal scope when traversing the entire AST. (authored by hokein).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D69892/new/
https://reviews.llvm.org/D69892
Files:
clang/lib/Tooling/Refactoring/Rename/USRFindingAction.cpp
Index: clang/lib/Tooling/Refactoring/Rename/USRFindingAction.cpp
===================================================================
--- clang/lib/Tooling/Refactoring/Rename/USRFindingAction.cpp
+++ clang/lib/Tooling/Refactoring/Rename/USRFindingAction.cpp
@@ -67,7 +67,7 @@
std::vector<std::string> Find() {
// Fill OverriddenMethods and PartialSpecs storages.
- TraverseDecl(Context.getTranslationUnitDecl());
+ TraverseAST(Context);
if (const auto *MethodDecl = dyn_cast<CXXMethodDecl>(FoundDecl)) {
addUSRsOfOverridenFunctions(MethodDecl);
for (const auto &OverriddenMethod : OverriddenMethods) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D69892.228191.patch
Type: text/x-patch
Size: 636 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20191107/86a05510/attachment.bin>
More information about the cfe-commits
mailing list