Рекомендации по оформлению кода - PugachA/UnmannedAerialVehicle GitHub Wiki
Coding guidelines
Type |
Style |
Namespace |
under_scored |
Class name |
CamelCase |
Function name |
camelCase |
Parameters/Locals |
under_scored |
Member variables |
under_scored_with_ |
Enums and its members |
CamelCase |
Globals |
g_under_scored |
Constants |
UPPER_CASE |
File names |
Match case of class name in file |
Header.h
#ifndef msr_airsim_MyHeader_h
#define msr_airsim_MyHeader_h
//--your code
#endif
Bracketing:
int main(int argc, char* argv[])
{
while (x == y) {
f0();
if (cont()) {
f1();
} else {
f2();
f3();
}
if (x > 100)
break;
}
}