[clangd] Fix an assertion violation in rename.
authorHaojian Wu <hokein.wu@gmail.com>
Fri, 4 Dec 2020 11:23:26 +0000 (12:23 +0100)
committerHaojian Wu <hokein.wu@gmail.com>
Fri, 4 Dec 2020 11:23:26 +0000 (12:23 +0100)
commit445289aa63e1b82b9eea6497fb2d0443813a9d4e
treead9e478ea0e71a0817608bee9bb1b33eacbeec1d
parentdf1ddc42345356f575088c4c80f9cf54d1461e6f
[clangd] Fix an assertion violation in rename.

NamedDecl::getName() asserts the name must be an identifier.

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