[all-commits] [llvm/llvm-project] daa736: [clangd] Add basic conflict detection for the rename.

Haojian Wu via All-commits all-commits at lists.llvm.org
Mon Nov 9 23:52:58 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: daa736da10fd340d63fa828e86e4f4bd6961d6f3
      https://github.com/llvm/llvm-project/commit/daa736da10fd340d63fa828e86e4f4bd6961d6f3
  Author: Haojian Wu <hokein.wu at gmail.com>
  Date:   2020-11-10 (Tue, 10 Nov 2020)

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

  Log Message:
  -----------
  [clangd] Add basic conflict detection for the rename.

With this patch, we reject the rename if the new name would conflict with
any other decls in the decl context of the renamed decl.

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




More information about the All-commits mailing list