This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Remove the cross-file-rename option.
ClosedPublic

Authored by hokein on Feb 12 2021, 12:32 AM.

Details

Summary

and simplify the code.

Diff Detail

Event Timeline

hokein created this revision.Feb 12 2021, 12:32 AM
hokein requested review of this revision.Feb 12 2021, 12:32 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 12 2021, 12:32 AM
sammccall added inline comments.Feb 12 2021, 12:44 AM
clang-tools-extra/clangd/ClangdServer.cpp
405

i'd trim this down a bit now: "we don't query the index, as we only need main-file references"

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

I don't understand why we're now allowing rename of non-indexable symbols.
Is this really intended? At the least it seems like an unrelated change.

hokein updated this revision to Diff 323250.Feb 12 2021, 1:40 AM
hokein marked an inline comment as done.

address review comment.

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

oh, you're right. I didn't think it too much when removing the code.

sammccall accepted this revision.Feb 12 2021, 1:55 AM
This revision is now accepted and ready to land.Feb 12 2021, 1:55 AM
This revision was automatically updated to reflect the committed changes.