[PATCH] Unified token breaking logic: support for line comments.

Alexander Kornienko alexfh at google.com
Tue Apr 16 13:52:43 PDT 2013


Hi klimek, djasper,

Added BreakableLineComment, moved common code from
BreakableBlockComment to newly added BreakableComment. As a side-effect of the
rewrite, found another problem with escaped newlines and had to change
code which removes trailing whitespace from line comments not to break after
this patch.

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

Files:
  lib/Format/BreakableToken.cpp
  lib/Format/BreakableToken.h
  lib/Format/Format.cpp
  lib/Format/UnwrappedLineParser.h
  lib/Format/WhitespaceManager.cpp
  lib/Format/WhitespaceManager.h
  unittests/Format/FormatTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D682.1.patch
Type: text/x-patch
Size: 24236 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130416/35e458e9/attachment.bin>


More information about the cfe-commits mailing list