]> granicus.if.org Git - clang/commit
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)
commit7c22cf340995ab9107810aa39a190db3e0332294
tree75dcab5e4f68aa37529d0310f6b3c2d62312ffa5
parent3656c612efe4889da0174ffa6a621a2d59fc3ecb
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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@177635 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Format/Format.cpp
unittests/Format/FormatTest.cpp