[style] remove snake case from style guide (#3586)

For better or worse, the existing C code style follows camel case. Rather
than changing the code, simply update the style guide.
This commit is contained in:
Jonathan Hui
2019-02-14 13:09:00 -08:00
committed by GitHub
parent 1627a42864
commit 5ca9db0035
+1 -2
View File
@@ -129,8 +129,7 @@
- Names shall not give any idea of type, such as is done with System Hungarian notation.
- Case
- C preprocessor symbols should be all uppercase.
- All OpenThread names in the C language shall be in *snake case*.
- All OpenThread class, namespace, structure, method, function, enumeration, and type names in the C++ language shall be in *upper camel case*. Exception: the top level OpenThread namespace 'ot'.
- All OpenThread class, namespace, structure, method, function, enumeration, and type names in the C/C++ language shall be in *upper camel case*. Exception: the top level OpenThread namespace 'ot'.
- All OpenThread instantiated names of instances of classes, namespaces, structures, methods, functions, enumerations, and types as well as method and function parameters in the C++ language shall be in *lower camel case*.
- Symbol Qualification
- All OpenThread C public data types and free functions should have `ot` prepended to their name.