[PATCH] CodingStyle: add an extra line for the braces explaination

Lubomir I. Ivanov neolit123 at gmail.com
Tue Mar 17 17:22:32 PDT 2015


From: "Lubomir I. Ivanov" <neolit123 at gmail.com>

The extra call "dosomethingelse()" is added with the
intention that user will not be confused to add braces
around single lined "if" conditions.

Signed-off-by: Lubomir I. Ivanov <neolit123 at gmail.com>
---
 CodingStyle | 1 +
 1 file changed, 1 insertion(+)

diff --git a/CodingStyle b/CodingStyle
index 75aa1d4..ead24d0 100644
--- a/CodingStyle
+++ b/CodingStyle
@@ -42,6 +42,7 @@ Basic rules
 
 	if (condition) {
 		dosomething();
+		dosomethingelse();
 	}
 
 - both sides of an if / else clause either use or do not use curly braces:
-- 
1.7.11.msysgit.0



More information about the subsurface mailing list