[PATCH] clang-format: Fix some problems with Allman brace breaking

Thomas Gibson-Robinson thomas.gibsonrobinson at gmail.com
Mon Aug 5 14:32:03 PDT 2013


The attached patch 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. Tests are included.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Allman-fixes.diff
Type: application/octet-stream
Size: 2358 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130805/2e3ef7f7/attachment.obj>
-------------- next part --------------




More information about the cfe-commits mailing list