]> granicus.if.org Git - clang/commit
Fixes a couple of bugs with the Allman brace breaking.
authorManuel Klimek <klimek@google.com>
Wed, 7 Aug 2013 19:20:45 +0000 (19:20 +0000)
committerManuel Klimek <klimek@google.com>
Wed, 7 Aug 2013 19:20:45 +0000 (19:20 +0000)
commitd3a247cc4e136af6b71dc5968ca6190e6c68f4c5
tree6a3a70b7ae1200d53937528d9a3cc0d20e46b749
parentb82f77fbe320a497f0b60d241c59b651b3ce15ca
Fixes a couple of bugs with the Allman brace breaking.

In particular, left braces after an enum declaration now occur on their
own line.  Further, when short ifs/whiles are allowed these no longer
cause the left brace to be on the same line as the if/while when a
brace is included.

Patch by Thomas Gibson-Robinson.

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