[PATCH] D122554: [clangd] Handle tabs in getIncrementalChangesAfterNewline()
Sam McCall via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 28 03:11:21 PDT 2022
sammccall accepted this revision.
sammccall added a comment.
This revision is now accepted and ready to land.
Thanks!
Going to add tabs to case-sensitivity and symlinks to my list of things that will haunt me forever...
================
Comment at: clang-tools-extra/clangd/Format.cpp:127
+ int ContentWidth = llvm::sys::unicode::columnWidthUTF8(Text);
+ if (ContentWidth >= 0)
+ return ContentWidth;
----------------
Comment "unprintable characters" or so?
(Maybe invert the condition for this purpose)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D122554/new/
https://reviews.llvm.org/D122554
More information about the cfe-commits
mailing list