[clangd] AddUsing: Used spelled text instead of type name.
authorAdam Czachorowski <adamcz@google.com>
Wed, 18 Nov 2020 16:43:19 +0000 (17:43 +0100)
committerAdam Czachorowski <adamcz@google.com>
Tue, 24 Nov 2020 17:59:09 +0000 (18:59 +0100)
commitf6e59294b63e1fd0b25720f24111cd17865004be
tree8e88f2c0c3824f69a459ba10622bcb458cb488f3
parent15481bba1ff2c03ff969cba8e0e7c37888f966a3
[clangd] AddUsing: Used spelled text instead of type name.

This improves the behavior related to type aliases, as well as cases of
typo correction.

Differential Revision: https://reviews.llvm.org/D91966
clang-tools-extra/clangd/refactor/tweaks/AddUsing.cpp
clang-tools-extra/clangd/unittests/TweakTests.cpp