Cs-contrib.unkrig.de

From unkrig.de
Revision as of 18:06, 26 December 2014 by Aunkrig (talk | contribs)
Jump to navigation Jump to search

Verifies that C++-style comments ('// ...') are correctly aligned.

C++-style comments must appear on the same column iff

  • They appear in immediately consecutive lines, and
  • All of these lines are of the same 'kind' (see below)

Each line of code relates to one of the following 'kinds':

  • A line which contains only a C++-style comment
  • A line which contains only a switch label ('case x:' or 'default:') and a C++-style comment
  • Any other line