Change top-level namespace from 'Thread' to 'ot'. (#1664)

This commit is contained in:
Jonathan Hui
2017-04-27 22:29:05 -07:00
committed by GitHub
parent 8bf14cfbbd
commit 1eabda6a08
276 changed files with 659 additions and 660 deletions
+2 -2
View File
@@ -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.