Signed-off-by: Thiago Macieira <[email protected]>
---
 CodingStyle | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/CodingStyle b/CodingStyle
index 82c86e5..52f00fa 100644
--- a/CodingStyle
+++ b/CodingStyle
@@ -50,6 +50,16 @@
        b = a + (c + d +
                 f + z);
 
+- in a C++ constructor initialization list, the colon is indented by
+  one Tab and continuation lines are aligned with two more spaces. The
+  comma is at the end, as listed above:
+
+       ClassName::ClassName()
+               : x(1), y(2),
+                 z(3)
+       {
+       }
+
 - unfortunate inconsistency:
   -- C code usually uses underscores to structure names
 
@@ -74,4 +84,4 @@
                for (i = 0; i < 5; i++)
                        do_something(i);
        }
-       }
\ No newline at end of file
+       }
-- 
1.7.11.7

_______________________________________________
subsurface mailing list
[email protected]
http://lists.hohndel.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to