This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Rename: Allow multiple canonical declarations [1/3]
Needs ReviewPublic

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

Details

Reviewers
sammccall
Summary

Note that locateDeclAt() now does *not* canonicalize the declaration anymore,
since that would now lead to "AmbiguousSymbol" when there's a single declaration under the cursor that has multiple canonical declarations.
Instead, only canonicalize *after* checking how many decls we've found under the cursor.

This will allow renaming virtual methods with size_overridden_methods() > 1 in a follow-up commit.

Diff Detail

Event Timeline

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

clang-format

tom-anders published this revision for review.Oct 9 2022, 2:40 PM
nridge added a subscriber: nridge.Oct 16 2022, 12:01 AM