Better block comment formatting.
authorAlexander Kornienko <alexfh@google.com>
Thu, 21 Mar 2013 12:28:10 +0000 (12:28 +0000)
committerAlexander Kornienko <alexfh@google.com>
Thu, 21 Mar 2013 12:28:10 +0000 (12:28 +0000)
commit547a9f52647cdbdec0315054f9952bdef18836c6
tree18e2583e49da3da9e1becfcc2c189d168693747e
parent54afba8b6255e07f6099ca66dd0dfd1be033ea41
Better block comment formatting.

Summary:
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.

Reviewers: djasper

Reviewed By: djasper

CC: cfe-commits, klimek
Differential Revision: http://llvm-reviews.chandlerc.com/D557

llvm-svn: 177635
clang/lib/Format/Format.cpp
clang/unittests/Format/FormatTest.cpp