This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Rename: Allow renaming using declaration introducing multiple symbols [3/3]
Needs ReviewPublic

Authored by tom-anders on Oct 9 2022, 2:34 PM.

Details

Reviewers
sammccall
Summary

I needed to add a helper function to make sure that this is not reported as AmbiguousSymbol.
I think filterRenameTargets() now technically is not needed anymore at the moment, but dropping the UsingDecl probably is better for performance down the line.
Also, as discussed filterRenameTargets() might be extended with more conditions in the future, so let's keep it.

Diff Detail

Event Timeline

tom-anders created this revision.Oct 9 2022, 2:34 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 9 2022, 2:34 PM
tom-anders updated this revision to Diff 466393.Oct 9 2022, 2:39 PM

clang-format

tom-anders published this revision for review.Oct 9 2022, 2:45 PM
tom-anders edited the summary of this revision. (Show Details)
nridge added a subscriber: nridge.Oct 16 2022, 12:02 AM