diff options
author | Denis Kenzior <denkenz@gmail.com> | 2015-11-05 14:32:01 -0600 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2015-11-05 14:32:01 -0600 |
commit | 0161becca029e9f3c65f2d79efbe4df8577e6b78 (patch) | |
tree | 7ddc7d9909fbee661900653b3aabecb4951ceba3 /doc | |
parent | dd7bae35bcfc821fed500311dae95db1841caedc (diff) | |
download | ofono-0161becca029e9f3c65f2d79efbe4df8577e6b78.tar.bz2 |
doc: Add Item M17 to coding-style.txt
Diffstat (limited to 'doc')
-rw-r--r-- | doc/coding-style.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/coding-style.txt b/doc/coding-style.txt index 287e9e92..ca70aaee 100644 --- a/doc/coding-style.txt +++ b/doc/coding-style.txt @@ -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, |