[PATCH] D96324: [clangd] Rename references to function arguments within the same file
Kirill Bobyrev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 9 02:42:57 PST 2021
kbobyrev added a comment.
This likely needs some further thought on conflict detection. Assume we have
void foo(int Argument^); // case 1
void foo(int OhWait); // case 2
void foo(int Argument); // case 3
void foo(int AnotherOne) {} // case 4
What should we do when renaming `Argument`? Just rename all of them? Only rename in places where the name matches the original one (case 3)? Bail out and report an error? Also, there is no easy way to check all of these cases within our existing conflict detection pipeline: IIUC we'd need to walk the whole AST again for that (like we do in this patch within the rename pipeline).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D96324/new/
https://reviews.llvm.org/D96324
More information about the cfe-commits
mailing list