summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2015-11-05 14:32:01 -0600
committerDenis Kenzior <denkenz@gmail.com>2015-11-05 14:32:01 -0600
commit0161becca029e9f3c65f2d79efbe4df8577e6b78 (patch)
tree7ddc7d9909fbee661900653b3aabecb4951ceba3 /doc
parentdd7bae35bcfc821fed500311dae95db1841caedc (diff)
downloadofono-0161becca029e9f3c65f2d79efbe4df8577e6b78.tar.bz2
doc: Add Item M17 to coding-style.txt
Diffstat (limited to 'doc')
-rw-r--r--doc/coding-style.txt7
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,