[PATCH] D150685: [clangd] Renaming: Treat member functions like other functions

Haojian Wu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri May 19 00:13:13 PDT 2023


hokein added inline comments.


================
Comment at: clang-tools-extra/clangd/refactor/Rename.cpp:519
+    if (RenameDecl.getKind() != Decl::Function &&
+        RenameDecl.getKind() != Decl::CXXMethod) {
       if (auto *Conflict = lookupSiblingWithName(ASTCtx, RenameDecl, NewName))
----------------
The change looks good. It would be nice to have a testcase, can you add one in the `RenameTest, Renameable` unit test?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D150685/new/

https://reviews.llvm.org/D150685



More information about the cfe-commits mailing list