Avoid breaking non-trailing block comments.
authorAlexander Kornienko <alexfh@google.com>
Tue, 16 Jul 2013 23:47:22 +0000 (23:47 +0000)
committerAlexander Kornienko <alexfh@google.com>
Tue, 16 Jul 2013 23:47:22 +0000 (23:47 +0000)
commit940423424140fc791f3dc242ea35eab11de925ad
tree081ad459a9c777b1f00d4e48bc1da310c47baaeb
parent8bfde8917ed77b89fe916854b67352884ffb7b16
Avoid breaking non-trailing block comments.

Motivating example:
// column limit ------------------->
void ffffffffffff(int aaaaaa /* test */);

Formatting before the patch:
void ffffffffffff(int aaaaaa /* test
                              */);

Formatting after the patch:
void
ffffffffffff(int aaaaaa /* test */);

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