[clangd] Handle tabs in getIncrementalChangesAfterNewline()
authorNathan Ridge <zeratul976@hotmail.com>
Mon, 28 Mar 2022 06:13:20 +0000 (02:13 -0400)
committerNathan Ridge <zeratul976@hotmail.com>
Tue, 29 Mar 2022 05:43:09 +0000 (01:43 -0400)
commit9325e97a3599929a52bef3e5c8e403c98f9428ba
treefb8d16a42813467f4ce3fafaa95b174091972a84
parentb803f069018192d95ecd54d243e24c10abc1558c
[clangd] Handle tabs in getIncrementalChangesAfterNewline()

Tabs are not handled by columnWidthUTF8() (they are considered
non-printable) so require additional logic to handle.

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

Differential Revision: https://reviews.llvm.org/D122554
clang-tools-extra/clangd/Format.cpp
clang-tools-extra/clangd/unittests/FormatTests.cpp