================ @@ -569,8 +840,13 @@ renameWithinFile(ParsedAST &AST, const NamedDecl &RenameDecl, // } if (!isInsideMainFile(RenameLoc, SM)) continue; + Locs.push_back(RenameLoc); + } + if (const auto *MD = dyn_cast<ObjCMethodDecl>(&RenameDecl)) + return renameObjCMethodWithinFile(AST, MD, NewName, std::move(Locs)); ---------------- DavidGoldman wrote:
SGTM, I'll look into this in a follow up (+ add some tests for that). https://github.com/llvm/llvm-project/pull/76466 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits