- Indent
- use tab with four-space
- Line Width
- fixed width:
- Privilege margin
- public, protected, and then private
- alignment
- put space around operators, e.g. hamster = "cute"
- pointer: use int *a; rather than int* a; since the following situation adopts: int *a, *b;
- Naming
- Capital
- Constants: THIS_IS_CONSTANT
- Macro: #define ROUND(x) (int)(x+0.5)
- Ref: Mozilla
Mr. MaGeek
2014年10月30日 星期四
[Rules] Coding Standard Style
2014年10月28日 星期二
[Tools] Developer Tools
- Toolchain
- including compiler, linker, archiver
- CMake
- Code Analysis
- Profiler
- Tester
- Editor, code viewer
- Version control, backup
- IDE
訂閱:
文章 (Atom)