diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2015-03-18 02:22:32 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-03-23 08:40:32 -0700 |
commit | 120088fd16902abd386248eb53e59f88c7591e61 (patch) | |
tree | 1684f4ccdfbb566ec762f5af77f2ddb27e47aa9c | |
parent | 2ffdb8945f77e051630a90556a653de1c2f1e438 (diff) | |
download | subsurface-120088fd16902abd386248eb53e59f88c7591e61.tar.gz |
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 <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | CodingStyle | 1 |
1 files changed, 1 insertions, 0 deletions
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: |