For identifiers formed from multiple words, separate each component with underscore rather than capitalization. Thus, use
Avoid capitalization except for class names; class names should begin with a capital letter.
class Item; class Query_arena; class Log_event;
Avoid function names, structure elements, or variables that begin or end with '
Use long function and variable names in English. This will make your code easier to read for all developers.
We used to have the rule: "Structure types are
typedef'ed to an all-upper-case identifier." This has been deprecated for C++ code. Do not add typedefs for structs/classes in C++
#definedeclarations should be in upper case.
#define MY_CONSTANT 15
Enumeration names should begin with
Function declarations (forward declarations) have parameter names in addition to parameter types.