Kitware / KWStyle

Kitware Style Checker
Other
53 stars 30 forks source link

Can not align braces with control statement #32

Open agirault opened 8 years ago

agirault commented 8 years ago

I can not seem to find a way to set the indentation style to Allman style (braces indented to the same level as the control statement. Statements within the braces indented to the next level.):

while (x == y)
{
    something();
    somethingelse();
}

Seems like all I can get is a Whitesmiths style:

while (x == y)
    {
    something();
    somethingelse();
    }

I tried playing with the <Indent> parameter but no luck so far. I also do not understand what the last attribute allowBlockLine in Indent controls.

agirault commented 8 years ago

http://astyle.sourceforge.net/astyle.html#_default_bracket_style