From 5ca9db00357e72cd24ae272f2f4fb825f4fb3a5a Mon Sep 17 00:00:00 2001 From: Jonathan Hui Date: Thu, 14 Feb 2019 13:09:00 -0800 Subject: [PATCH] [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. --- STYLE_GUIDE.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/STYLE_GUIDE.md b/STYLE_GUIDE.md index 1f25bef98..3e466bf8e 100644 --- a/STYLE_GUIDE.md +++ b/STYLE_GUIDE.md @@ -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.