Editing Cs-contrib.unkrig.de
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 1: | Line 1: | ||
Verifies that C++-style comments ('<code>// ...</code>') are correctly aligned. | |||
<p> | |||
C++-style comments must appear on the same column iff | |||
<ul> | |||
<li>They appear in immediately consecutive lines, and | |||
<li>All of these lines are of the same 'kind' (see below) | |||
</ul> | |||
Each line of code relates to one of the following 'kinds': | |||
<ul> | |||
<li>A line which contains only a C++-style comment | |||
<li>A line which contains only a switch label ('<code>case x:</code>' or '<code>default:</code>') and a C++-style comment | |||
<li>Any other line | |||
</ul> | |||