[Patch] Add SpaceBeforeBrackets

clang at anteru.net clang at anteru.net
Wed Dec 17 07:04:21 PST 2014


Hi,

the attached patch adds a new option to clang-format: SpaceBeforeBrackets.

This adds a space before the first bracket, i.e. int a[] -> int a [];  
while multi-dimensional arrays remain together (int a[][]; -> int a  
[][];).

Cheers,
   Matthäus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: space-before-brackets.patch
Type: text/x-patch
Size: 3844 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20141217/48bd1c1e/attachment.bin>


More information about the cfe-commits mailing list