[vtk-developers] PROPOSAL: Changing VTK's indentation style

Sean McBride sean at rogue-research.com
Wed Sep 9 09:57:20 EDT 2015


On Wed, 9 Sep 2015 09:08:53 -0400, Berk Geveci said:

>What would you think of changing VTK's indentation style from:
>
>if ()
>  {
>  // ..
>  }
>
>to
>
>if ()
>{
>  // ...
>}

+100  :)  I rather hate the current style. :)

I've used clang-format and uncrustify too, and vote that whatever we choose we should be sure it works with these types of tools.

Personally, I prefer the braces on their own lines, but putting the opening brace at the end of the line is fine too.

Agree with Ben that we should always use braces, even for one-line 'ifs'.

Cheers,

-- 
____________________________________________________________
Sean McBride, B. Eng                 sean at rogue-research.com
Rogue Research                        www.rogue-research.com 
Mac Software Developer              Montréal, Québec, Canada




More information about the vtk-developers mailing list