]> granicus.if.org Git - clang/commit
Avoid column limit violation in block comments in certain cases.
authorAlexander Kornienko <alexfh@google.com>
Mon, 1 Jul 2013 13:42:42 +0000 (13:42 +0000)
committerAlexander Kornienko <alexfh@google.com>
Mon, 1 Jul 2013 13:42:42 +0000 (13:42 +0000)
commitd446f737f0c4840f25a371bfc9ebedab69e4027d
treedeea507863422871d3a4d437edd1ac488a8a372e
parentcbe86cc538b9e1af9f36b8a9c57ea51119306689
Avoid column limit violation in block comments in certain cases.

Summary:
Add penalty when an excessively long line in a block comment can not be
broken on a leading whitespace. Lack of this addition can lead to severe column
width violations when they can be easily avoided.

Reviewers: djasper

Reviewed By: djasper

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

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