Open main menu

Difference between revisions of "Code Formatting Conventions"

m
→‎Switch / Case constructs: continue with camel case here too
m (add an else-if to the hugging braces example)
m (→‎Switch / Case constructs: continue with camel case here too)
Line 152: Line 152:
switch (cmd) {
switch (cmd) {
case kSomeCmd:
case kSomeCmd:
     SomeCmd();
     someCmd();
     // Fall Through intended
     // Fall Through intended
case kSomeVerySimilarCmd:
case kSomeVerySimilarCmd:
     SomeMoreCmd();
     someMoreCmd();
     break;
     break;
case kSaveCmd:
case kSaveCmd:
2,051

edits