[clangd] Fix AddUsing in the face of typo-correction
authorKadir Cetinkaya <kadircet@google.com>
Mon, 20 Mar 2023 11:12:10 +0000 (12:12 +0100)
committerKadir Cetinkaya <kadircet@google.com>
Mon, 20 Mar 2023 13:30:36 +0000 (14:30 +0100)
commit6f23fee4ef98a695062aa128a177478ba7d742d4
treefbcd9876485fe554d9f942dbadf0713da91cce3c
parent46c6166d33915159e95f4ae17998bbe13207b144
[clangd] Fix AddUsing in the face of typo-correction

Fixes https://github.com/clangd/clangd/issues/559

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