]> git.lyx.org Git - lyx.git/blobdiff - development/coding/Rules
Another (IMHO false) fall-through warning silenced
[lyx.git] / development / coding / Rules
index 68846a668fd6aa227a20292fd28e4d7da5aabb86..9fb464c16ce9457c9d08d37447ca63214ddd52f0 100644 (file)
@@ -284,7 +284,16 @@ Formatting
   - Class names are usually capitalized, and function names lowercased.
     Enums are named like Classes, values are usually in lower-case.
 
-  - Long variables are named like thisLongVariableName.
+  - Public API is camel-case ('void setAFlagToAValue(bool)')
+
+  - Members variables are underscored ('enable_this_feature_flag_') with a final '_'
+  
+  - private/protected functions are also camel-case
+  
+  - Each class is implemented in a separate pair of .h/.cpp files named like
+    the class. Exceptions are tiny helper classes which are closely tied to
+    the main class.
+
 
   New types are capitalized, so this goes for typedefs, classes, structs
   and enums.