Open main menu

Difference between revisions of "Code Formatting Conventions"

→‎Switch / Case constructs: Using "Fall Through" as more common in codebase, and more clear english
(→‎Switch / Case constructs: Added best practice to comment on fallthrough.)
(→‎Switch / Case constructs: Using "Fall Through" as more common in codebase, and more clear english)
Line 151: Line 151:
case kSomeCmd:
case kSomeCmd:
     SomeCmd();
     SomeCmd();
     // Fallthrough intended
     // Fall Through intended
case kSomeVerySimilarCmd:
case kSomeVerySimilarCmd:
     SomeMoreCmd();
     SomeMoreCmd();
Line 166: Line 166:
}
}
</syntax>
</syntax>
* Note comment on whether fallthrough is intentional.
* Note comment on whether fall through is intentional.


== Naming ==
== Naming ==
TrustedUser
574

edits