This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Move the format rename edits from clangdserver to rename API, NFC.
Needs ReviewPublic

Authored by hokein on Feb 27 2020, 6:36 AM.
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
Summary

would make the rename API more nature, respecting the parameter Options.WantFormat.

Diff Detail

Event Timeline

hokein created this revision.Feb 27 2020, 6:36 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 27 2020, 6:36 AM
kbobyrev accepted this revision.Feb 28 2020, 12:44 AM

LGTM with few nits

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

nit: Edits

469

nit: Edit

473

maybe return Err ? std::move(Err) : FE;, but up to you

This revision is now accepted and ready to land.Feb 28 2020, 12:44 AM
This revision now requires review to proceed.May 19 2022, 5:53 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptMay 19 2022, 5:53 AM