Miscellaneous-CComments

Checks for correctly used comment style in C units

Required inputs: IR

This rule checks that C++-style comments (//) are not used in C units.
Rationale
C++-style comments are not valid in C90.

This rule allows configuring the type of comment that is considered invalid.

See Also
Rule Miscellaneous-CPPComments

Possible Messages

Key

Text

Severity

Disabled

c_comment_style

Use of invalid comment style in C unit.

None

False

Options

exception

exception : str | None = None

Start of a valid comment, even if it has an invalid prefix.
 

invalid

invalid : str = '//'

Start of an invalid comment.