Editing C++ style guide
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 69: | Line 69: | ||
Indent ''both'' the curly braces and the body of the switch statement (so that the body gets indented by ''two'' indents). | Indent ''both'' the curly braces and the body of the switch statement (so that the body gets indented by ''two'' indents). | ||
However, the {{codeline | However, the {{codeline:case}} statement is not doubly indented and instead aligns with the first brace. | ||
<syntaxhighlight lang="cpp"> | <syntaxhighlight lang="cpp"> | ||
Line 83: | Line 83: | ||
return true; | return true; | ||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==== #ifdef directives ==== | ==== #ifdef directives ==== |