mirror of
https://github.com/espressif/openthread.git
synced 2026-06-05 21:14:49 +00:00
Change top-level namespace from 'Thread' to 'ot'. (#1664)
This commit is contained in:
+2
-2
@@ -123,11 +123,11 @@
|
||||
- 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*.
|
||||
- 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 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.
|
||||
- All OpenThread C++ code should be in the ‘OpenThread’ top-level namespace.
|
||||
- All OpenThread C++ code should be in the ‘ot’ top-level namespace.
|
||||
- Scope
|
||||
- All global data shall have a `g` prepended to the name to denote global scope.
|
||||
- All static data shall have a `s` prepended to the name to denote static scope.
|
||||
|
||||
Reference in New Issue
Block a user