This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Handle tabs in getIncrementalChangesAfterNewline()
ClosedPublic

Authored by nridge on Mar 27 2022, 11:37 PM.

Details

Summary

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

Diff Detail

Event Timeline

nridge created this revision.Mar 27 2022, 11:37 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 27 2022, 11:37 PM
nridge requested review of this revision.Mar 27 2022, 11:37 PM
sammccall accepted this revision.Mar 28 2022, 3:11 AM

Thanks!

Going to add tabs to case-sensitivity and symlinks to my list of things that will haunt me forever...

clang-tools-extra/clangd/Format.cpp
126

Comment "unprintable characters" or so?
(Maybe invert the condition for this purpose)

This revision is now accepted and ready to land.Mar 28 2022, 3:11 AM
nridge updated this revision to Diff 418789.Mar 28 2022, 10:42 PM

address review comment

This revision was landed with ongoing or failed builds.Mar 28 2022, 10:43 PM
This revision was automatically updated to reflect the committed changes.