[all-commits] [llvm/llvm-project] 66ab93: [clangd] Correct the file path in Edit::replacemen...

Haojian Wu via All-commits all-commits at lists.llvm.org
Fri Nov 29 01:15:38 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 66ab932fcc10f4833cf16875d1e3dbcb81d9c39d
      https://github.com/llvm/llvm-project/commit/66ab932fcc10f4833cf16875d1e3dbcb81d9c39d
  Author: Haojian Wu <hokein.wu at gmail.com>
  Date:   2019-11-29 (Fri, 29 Nov 2019)

  Changed paths:
    M clang-tools-extra/clangd/refactor/Rename.cpp
    M clang-tools-extra/clangd/refactor/Rename.h
    M clang-tools-extra/clangd/unittests/RenameTests.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list