ckandeler 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))
----------------
hokein wrote:
> The change looks good. It would be nice to have a testcase, can you add one 
> in the `RenameTest, Renameable` unit test?
For a function, the rename result ends up in LocalChanges (because there is no 
index), whereas the test assumes they are in GlobalChanges. Should I adapt the 
test code accordingly or is it not the right one for this case?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D150685

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to