[clangd] Return clangd::TextEdit in ClangdServer::rename. NFC
authorIlya Biryukov <ibiryukov@google.com>
Wed, 3 Apr 2019 07:18:43 +0000 (07:18 +0000)
committerIlya Biryukov <ibiryukov@google.com>
Wed, 3 Apr 2019 07:18:43 +0000 (07:18 +0000)
commitd9c24dca73d13d06f2a2ef8cd3abf50fcda14e4e
tree28f6ee338b8bbd3a95235ef34b3a0b9421ce19f8
parent4178c1533020657d5ff965fe9d43fcf456a1d8d6
[clangd] Return clangd::TextEdit in ClangdServer::rename. NFC

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.

Reviewers: hokein, ioeric, sammccall

Reviewed By: sammccall

Subscribers: MaskRay, jkorous, arphaman, kadircet, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D60179

llvm-svn: 357561
clang-tools-extra/clangd/ClangdLSPServer.cpp
clang-tools-extra/clangd/ClangdServer.cpp
clang-tools-extra/clangd/ClangdServer.h
clang-tools-extra/unittests/clangd/SyncAPI.cpp
clang-tools-extra/unittests/clangd/SyncAPI.h