[PATCH] Handle zero-width and double-width characters in string literals and comments.

Alexander Kornienko alexfh at google.com
Wed Sep 4 12:25:41 PDT 2013


Hi djasper,

Count column width instead of the number of code points. This also
includes correct handling of tabs inside string literals and comments (with an
exception of multiline string literals/comments, where tabs are present before
the first escaped newline).

http://llvm-reviews.chandlerc.com/D1601

Files:
  lib/Format/BreakableToken.cpp
  lib/Format/ContinuationIndenter.cpp
  lib/Format/Encoding.h
  lib/Format/Format.cpp
  lib/Format/FormatToken.h
  unittests/Format/FormatTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D1601.1.patch
Type: text/x-patch
Size: 11489 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130904/bc0bc1ca/attachment.bin>


More information about the cfe-commits mailing list