This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Rename: Allow renaming virtual methods overriding multiple base methods [2/3]
Needs ReviewPublic

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

Details

Reviewers
sammccall
Summary

For virtual methods that override the same method from multiple base classes (e.g. diamond-shaped inheritance graph) previously only one of the base class methods would be renamed.
Now, we report a canonicalDeclaration for each base class and will thus correctly rename all of them.

Diff Detail

Event Timeline

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

clang-format

tom-anders updated this revision to Diff 466394.Oct 9 2022, 2:43 PM

Fix test case

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