-
Notifications
You must be signed in to change notification settings - Fork 1
Coding Guidelines
ラ⭐ edited this page Jul 4, 2023
·
2 revisions
- All type names are
snake_case. - All methods are
snake_case. - All variable names are
snake_case. - All file names are
snake_casewith the exception of tests which are written asfoo-test. - All implementation files should use the
.ccextension - All header files should use the
.hextension. - All inline files should use the
.inlextension. - Structs should not contain access labels and all members should be public (If you need to distinguish between
public,protectedandprivatethen it should be written as a class instead) - Member variables of classes should be prefixed with
m_(ex:m_count). - Struct members can be written with a
_postfix (excount_) to avoid conflicts and to denote it should not be accessed directly. - Brackets should appear on the next line with the exception of lambdas where the first bracket may appear on the same line as the definition.