r181700 - Implements brace breaking styles.

Chandler Carruth chandlerc at google.com
Mon May 13 07:28:14 PDT 2013


On Mon, May 13, 2013 at 2:51 PM, Manuel Klimek <klimek at google.com> wrote:

> Stroustrup brace breaking style:
> namespace a {
> class A {
>   void f()
>   {
>     if (x) {
>       f();
>     } else {
>

Err, the really fundamental aspect to the stroustrup style is breaking
before the else.

http://en.wikipedia.org/wiki/Indent_style#Variant:_Stroustrup

I'm not advocating supporting everything here, just saying that if you call
it Stroustrup style, it had better match. ;]


>       g();
>     }
>   }
> }
> }
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130513/a4099bef/attachment.html>


More information about the cfe-commits mailing list