This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Return clangd::TextEdit in ClangdServer::rename. NFC
ClosedPublic

Authored by ilya-biryukov on Apr 2 2019, 11:01 PM.

Details

Summary

Instead of tooling::Replacement. To avoid the need to have contents of
the file at the caller site. This also aligns better with other methods
in ClangdServer, majority of those already return LSP-specific data
types.

Diff Detail

Repository
rL LLVM

Event Timeline

ilya-biryukov created this revision.Apr 2 2019, 11:01 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 2 2019, 11:01 PM
sammccall accepted this revision.Apr 3 2019, 12:07 AM
This revision is now accepted and ready to land.Apr 3 2019, 12:07 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptApr 3 2019, 12:19 AM