[cmake-developers] astyle cofiguration for CMake coding?
Stuermer, Michael SP/HZA-ZSEP
michael.stuermer at schaeffler.com
Mon Jun 22 10:41:31 EDT 2015
Thanks, I think this should be enough for me to configure the visual studio plugin accordingly.
> -----Original Message-----
> From: Brad King [mailto:brad.king at kitware.com]
> Sent: Monday, June 22, 2015 3:43 PM
> To: Stuermer, Michael SP/HZA-ZSEP; cmake-developers at cmake.org
> Subject: Re: [cmake-developers] astyle cofiguration for CMake coding?
>
> On 06/22/2015 03:36 AM, Stuermer, Michael SP/HZA-ZSEP wrote:
> > Directions where I can find a complete set of rules how the code
> > should be formatted would also suffice.
>
> We don't have it formally documented anywhere. Basics:
>
> * 79 columns or less (only one that is enforced with a test)
> * indent with 2 spaces, no tabs
> * opening '{' gets its own line and aligns with inner code
> * CamelCase names for class members
> * this->Member for references to class members
>
> Generally just try to match style of surrounding code.
>
> -Brad
More information about the cmake-developers
mailing list