[PATCH] Better block comment formatting.

Alexander Kornienko alexfh at google.com
Wed Mar 20 12:51:37 PDT 2013


Hi djasper,

1. When splitting one-line block comment, use indentation and *s.
2. Remove trailing whitespace from all lines of a comment, not only the ones being splitted.
3. Add backslashes for all lines if a comment is used insed a preprocessor directive.

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

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


More information about the cfe-commits mailing list