This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Allow programmatically disabling rename of virtual method hierarchies.
ClosedPublic

Authored by sammccall on Sep 7 2022, 11:03 AM.

Details

Summary

This feature relies on Relations in the index being complete.
An out-of-tree index implementation is missing some override relations, so
such renames end up breaking the code.
We plan to fix it, but this flag is a cheap band-aid for now.

Diff Detail

Event Timeline

sammccall created this revision.Sep 7 2022, 11:03 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 7 2022, 11:03 AM
Herald added a subscriber: arphaman. · View Herald Transcript
sammccall requested review of this revision.Sep 7 2022, 11:03 AM
kadircet accepted this revision.Sep 8 2022, 3:03 AM

thanks, lgtm!

clang-tools-extra/clangd/refactor/Rename.cpp
223

nit: maybe do the check near the top, where the rest of the unsupportedsymbols are checked (+ it gives us a early bail out and skip a bunch of file/location conversions).

This revision is now accepted and ready to land.Sep 8 2022, 3:03 AM
This revision was landed with ongoing or failed builds.Sep 19 2022, 7:59 AM
This revision was automatically updated to reflect the committed changes.
sammccall marked an inline comment as done.