[PATCH] D91134: [clangd] Abort rename when given the same name

2020-11-11 Thread Kirill Bobyrev via Phabricator via cfe-commits
This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. Closed by commit rG91ce6fb5a65f: [clangd] Abort rename when given the same name (authored by kbobyrev). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTIO

[PATCH] D91134: [clangd] Abort rename when given the same name

2020-11-11 Thread Kirill Bobyrev via Phabricator via cfe-commits
kbobyrev updated this revision to Diff 304434. kbobyrev added a comment. Add a comment to the test to make it more explicit. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D91134/new/ https://reviews.llvm.org/D91134 Files: clang-tools-extra/clangd

[PATCH] D91134: [clangd] Abort rename when given the same name

2020-11-11 Thread Haojian Wu via Phabricator via cfe-commits
hokein accepted this revision. hokein added inline comments. This revision is now accepted and ready to land. Comment at: clang-tools-extra/clangd/unittests/RenameTests.cpp:780 +void func() { + int V^ar; +} Add a comment or rename `Var` =

[PATCH] D91134: [clangd] Abort rename when given the same name

2020-11-11 Thread Kirill Bobyrev via Phabricator via cfe-commits
kbobyrev marked an inline comment as not done. kbobyrev added inline comments. Comment at: clang-tools-extra/clangd/refactor/Rename.cpp:218 +case ReasonToReject::SameName: + return "new name should differ from the old name"; } hokein wrote: > sammcc

[PATCH] D91134: [clangd] Abort rename when given the same name

2020-11-11 Thread Kirill Bobyrev via Phabricator via cfe-commits
kbobyrev updated this revision to Diff 304423. kbobyrev marked an inline comment as done. kbobyrev added a comment. - Change error message to description rather than suggestion. - Move test to more appropriate location. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://r

[PATCH] D91134: [clangd] Abort rename when given the same name

2020-11-10 Thread Haojian Wu via Phabricator via cfe-commits
hokein added inline comments. Comment at: clang-tools-extra/clangd/refactor/Rename.cpp:218 +case ReasonToReject::SameName: + return "new name should differ from the old name"; } sammccall wrote: > hokein wrote: > > returning an error seems to be an

[PATCH] D91134: [clangd] Abort rename when given the same name

2020-11-10 Thread Sam McCall via Phabricator via cfe-commits
sammccall added inline comments. Comment at: clang-tools-extra/clangd/refactor/Rename.cpp:218 +case ReasonToReject::SameName: + return "new name should differ from the old name"; } hokein wrote: > returning an error seems to be an interesting idea,

[PATCH] D91134: [clangd] Abort rename when given the same name

2020-11-10 Thread Haojian Wu via Phabricator via cfe-commits
hokein added inline comments. Comment at: clang-tools-extra/clangd/refactor/Rename.cpp:218 +case ReasonToReject::SameName: + return "new name should differ from the old name"; } returning an error seems to be an interesting idea, thinking more about

[PATCH] D91134: [clangd] Abort rename when given the same name

2020-11-10 Thread Kirill Bobyrev via Phabricator via cfe-commits
kbobyrev created this revision. kbobyrev added a reviewer: hokein. Herald added subscribers: cfe-commits, usaxena95, arphaman. Herald added a project: clang. kbobyrev requested review of this revision. Herald added subscribers: MaskRay, ilya-biryukov. When user wants to rename the symbol to the sa