mirror of git://git.sysmocom.de/ofono
doc: Add Item M17 to coding-style.txt
This commit is contained in:
parent
dd7bae35bc
commit
0161becca0
|
@ -306,6 +306,13 @@ Example:
|
||||||
2)
|
2)
|
||||||
0x1 << y // Wrong
|
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
|
O1: Shorten the name
|
||||||
====================
|
====================
|
||||||
Better to use abbreviation, rather than full name, to name a variable,
|
Better to use abbreviation, rather than full name, to name a variable,
|
||||||
|
|
Loading…
Reference in New Issue