Difference between revisions of "Code Formatting Conventions"

Jump to navigation Jump to search
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

Navigation menu