HomePhabricator

[clangd] Correct the file path in Edit::replacements when generating the rename…

Authored by hokein on Nov 28 2019, 7:48 AM.

Description

[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