mirror of
https://github.com/espressif/openthread.git
synced 2026-06-05 21:14:49 +00:00
[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:
+1
-2
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user