[clangd] Detect rename conflicits within enclosing scope
authorKirill Bobyrev <kbobyrev@google.com>
Thu, 4 Feb 2021 08:45:36 +0000 (09:45 +0100)
committerKirill Bobyrev <kbobyrev@google.com>
Thu, 4 Feb 2021 08:45:42 +0000 (09:45 +0100)
commit5eec9a380a24bf0611c676b5da4933949c787a6b
treecac764b6c5fb37005dfa6d80071cafc2ceafafce
parent6c1a23303de9d957cf45ebd04daba862519e393d
[clangd] Detect rename conflicits within enclosing scope

This patch allows detecting conflicts with variables defined in the current
CompoundStmt or If/While/For variable init statements.

Reviewed By: hokein

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