16 lines
829 B
Markdown
16 lines
829 B
Markdown
---
|
|
trigger: always_on
|
|
---
|
|
|
|
Code compiles with all warning active and warning as errors.
|
|
use static_cast or reinterpret_cast but not parenthesis for casting.
|
|
No exceptions
|
|
Use [[nodiscard]]
|
|
auto is allowed but when its a pointer add the * and when reference adds the &
|
|
Member variable are CamelCase
|
|
Types are CamelCase
|
|
Functions are CamelCase.
|
|
Add Assert to make sure all assumptions are good. Parameters of functions for example should be verified with Assert.
|
|
Code should be self commented using proper variable names, types and functions. No need to add comments most of the time, unless the algorithm is very complex and hard to read.
|
|
When creating a new system framework, make a unit test. To make the unit test we should not modify the framework code for special unit test case.
|
|
Always put braces for if,else,for,while etc. |