Previously, when the renamed spelling is ambiguous, we simply use the
full-qualfied name (with leading "::"). This patch makes it try adding
additional specifiers one at a time until name is no longer ambiguous,
which allows us to find better disambuguated spelling.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
LGTM
lib/Tooling/Core/Lookup.cpp | ||
---|---|---|
165 ↗ | (On Diff #191070) | maybe return or break afterwards? |
lib/Tooling/Core/Lookup.cpp | ||
---|---|---|
165 ↗ | (On Diff #191070) | I also struggled a bit here. But I decided to let IsAmbiguousSpelling handle it because it seemed a bit more natural. Otherwise, we would somewhat duplicate the logic that spelling with leading "::" is not ambiguous. |
lib/Tooling/Core/Lookup.cpp | ||
---|---|---|
165 ↗ | (On Diff #191070) | ok sgtm |