[cmake-developers] CMake (C++) coding style
Brad King
brad.king at kitware.com
Tue Nov 4 15:48:48 EST 2014
On 11/04/2014 03:37 PM, Gregor Jasny wrote:
> could you please point me to some documentation regarding C++ coding
> style? Or do you have a checkpatch script?
It's never been formalized to that level. Basically:
- Don't exceed 79 columns.
- Align {} with the code inside them.
- CamelCase class member names.
- Explicit "this" for member access: this->Member
Otherwise, try to match the style near the code you're changing.
Someday this should be added to the cmake-developer(7) manual:
http://www.cmake.org/cmake/help/v3.1/manual/cmake-developer.7.html
Right now it only has a style guide for the documentation formatting.
-Brad
More information about the cmake-developers
mailing list