diff options
Diffstat (limited to 'CodingStyle')
-rw-r--r-- | CodingStyle | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/CodingStyle b/CodingStyle index 9efd5f67a..82c86e59f 100644 --- a/CodingStyle +++ b/CodingStyle @@ -61,3 +61,17 @@ where the two meet, use your best judgment and go for best consistency (i.e., where does the variable "originate") + +- switch statements with blocks are a little bit special (to avoid indenting + too far) + + switch (foo) { + case FIRST: + whatever(); + break; + case SECOND: { + int i; + for (i = 0; i < 5; i++) + do_something(i); + } + }
\ No newline at end of file |