[PATCH] Adds IndentationWidth to FormatStyle (clang-format)

Nitram Aw nitramaw at gmail.com
Sun May 5 10:44:31 PDT 2013


Clang-format seems to be hard coded to use two space width indentation.
To make it useful to a broader audience I suggest getting rid of this
limitation
by letting it be part of the FormatStyle.

I added IndentationWidth to FormatStyle.
I used IndentationWidth instead of 2 the places that seem most important.
I added -iw as a switch to clang-format to override selected style.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130505/ab902c38/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: IndentationWidth.patch
Type: application/octet-stream
Size: 3341 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130505/ab902c38/attachment.obj>


More information about the cfe-commits mailing list