[all-commits] [llvm/llvm-project] 440ea3: [clangd] Reduce superfluous rename conflicts (#121...
Ujan RoyBandyopadhyay via All-commits
all-commits at lists.llvm.org
Thu Feb 27 11:06:24 PST 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 440ea3ecdcd4aaf9d6c7d729fe7bc695365aed52
https://github.com/llvm/llvm-project/commit/440ea3ecdcd4aaf9d6c7d729fe7bc695365aed52
Author: Ujan RoyBandyopadhyay <116058173+ujan-r at users.noreply.github.com>
Date: 2025-02-27 (Thu, 27 Feb 2025)
Changed paths:
M clang-tools-extra/clangd/refactor/Rename.cpp
M clang-tools-extra/clangd/unittests/RenameTests.cpp
Log Message:
-----------
[clangd] Reduce superfluous rename conflicts (#121515)
This commit adds a namespace check to the code for detecting name
collisions, allowing `bar` to be renamed to `foo` in the following
snippet:
```c
typedef struct foo {} Foo;
Foo bar;
```
Previously, such a rename would fail because a declaration for `foo`
already exists in the same scope.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list