AutosarC++17_03-A2.8.4

C-style comments shall not be used

Required inputs: IR

This rule checks that comments starting with the invalid prefix are not used in C++ units.

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

See Also
Rule Miscellaneous-CComments

Possible Messages

Key

Text

Severity

Disabled

cpp_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.