vostok C++ coding style
C++ Core Guidelines
Files
- <snake_case>.cc
- <snake_case>.h
Names
Styles:
- CamelCase for class, struct and enum;
- snake_case for namespace, variable, function and method;
- SCREAMING_CASE for constants.
Prefixes:
- Use "m_" prefix for private members of class ;
- Use "s_" prefix for static members of class;
- Use "g_" prefix for global variables.
class or struct
struct:
- data members can vary independently;
- all members are public;
- does not contain methods.
class:
- has an invariant;
- all members are private.