doc: Add Item M17 to coding-style.txt

This commit is contained in:
Denis Kenzior 2015-11-05 14:32:01 -06:00
parent dd7bae35bc
commit 0161becca0
1 changed files with 7 additions and 0 deletions

View File

@ -306,6 +306,13 @@ Example:
2)
0x1 << y // Wrong
M17: Avoid forward-declaration of static functions
==================================================
Functions that are static should not be forward-declared. The only exception
to this rule is if a circular dependency condition exists, and the forward
declaration cannot be avoided.
O1: Shorten the name
====================
Better to use abbreviation, rather than full name, to name a variable,