Actions
Recommend coding style¶
Name style¶
- Class/Struct: Capitalized each class 1st letter
- variable: -nix style, all words are lower case and concat with '_'
- member variable: in C++, it is same as the variable but should be end with '_',
in Python, it is the same as the general variable, refer to PFP8 - function: -nix style, same as the variable, refter to verb + capital
- member function: same as the general function
- macro: all works should be in capital
Headers¶
- 1stly, put stl lib
- 2ndly, put 3rd party lib
- 3rdly, put internal lib
pl江 always use the same order for the same lib, gcc could optimize the compile time if the ord er is the same, for stl lib including, prefer include "std.h" instead.
Updated by jun chen 3 months ago · 1 revisions