[PATCH] Unified token breaking logic for strings and block comments.

Alexander Kornienko alexfh at google.com
Fri Apr 12 13:03:47 PDT 2013


Hi klimek,

Both strings and block comments are broken into lines in
breakProtrudingToken. Logic specific for strings or block comments is abstracted
in implementations of the BreakToken interface. Among other goodness, this
change fixes placement of backslashes after a block comment inside a
preprocessor directive (see removed FIXMEs in unit tests).

The code is far from being polished, and some parts of it will be changed for
line comments support.

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

Files:
  lib/Format/Format.cpp
  unittests/Format/FormatTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D665.1.patch
Type: text/x-patch
Size: 30523 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130412/5887cd49/attachment.bin>


More information about the cfe-commits mailing list