From 120088fd16902abd386248eb53e59f88c7591e61 Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Wed, 18 Mar 2015 02:22:32 +0200 Subject: [PATCH] CodingStyle: add an extra line for the braces explaination 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 Signed-off-by: Dirk Hohndel --- CodingStyle | 1 + 1 file changed, 1 insertion(+) diff --git a/CodingStyle b/CodingStyle index 56511d93d..fab68608a 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: