[clangd] Correct the file path in Edit::replacements when generating the rename edit.
authorHaojian Wu <hokein.wu@gmail.com>
Thu, 28 Nov 2019 15:48:49 +0000 (16:48 +0100)
committerHaojian Wu <hokein.wu@gmail.com>
Fri, 29 Nov 2019 09:12:56 +0000 (10:12 +0100)
commit66ab932fcc10f4833cf16875d1e3dbcb81d9c39d
tree40c19e96137b493b2beff9988ac03bee8896d428
parent302cb3bc3d7220e09f5dced64ddfdda33b9c49f9
[clangd] Correct the file path in Edit::replacements when generating the rename edit.

Summary:
The file path was set to the file content previously, and it isn't
covered by normal clangd & unittest code path (as we only uses the
offset, length, replacement text).

Reviewers: ilya-biryukov

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

Tags: #clang

Differential Revision: https://reviews.llvm.org/D70828
clang-tools-extra/clangd/refactor/Rename.cpp
clang-tools-extra/clangd/refactor/Rename.h
clang-tools-extra/clangd/unittests/RenameTests.cpp