================
@@ -811,8 +811,14 @@ renameWithinFile(ParsedAST &AST, const NamedDecl 
&RenameDecl,
       continue;
     Locs.push_back(RenameLoc);
   }
-  if (const auto *MD = dyn_cast<ObjCMethodDecl>(&RenameDecl))
-    return renameObjCMethodWithinFile(AST, MD, NewName, std::move(Locs));
+  if (const auto *MD = dyn_cast<ObjCMethodDecl>(&RenameDecl)) {
+    if (MD->getSelector().getNumArgs() > 1)
----------------
DavidGoldman wrote:

Done. It does work for the one arg selector case but I thought we might as well 
use the simpler logic.

https://github.com/llvm/llvm-project/pull/82396
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to