AutosarC++18_03-A8.4.9

“in-out” parameters declared as T & shall be modified

Required inputs: IR

Possible Messages

Key

Text

Severity

Disabled

complete_replacement

“in-out” completely replaced without being read.

None

False

missing_modify

“in-out” parameters not modified, consider making it const.

None

False

Options

allow_move_parameters

allow_move_parameters : bool = False

Whether a move parameter (a rvalue reference) may be written to without triggering a violation.

Note: move-constructors and move-assignments are allowed in either case.

 

exclude_constructors

exclude_constructors : bool = True

Whether not to report parameters on constructors
 

exclude_operators

exclude_operators : bool = False

Whether not to report parameters on operator functions.

Note: if set to true, this also sets exclude_shift_operators to true.

 

exclude_shift_operators

exclude_shift_operators : bool = False

Whether not to report parameters on shift operator functions (operator<<(), operator<<=(), operator>>(), and operator>>=()).
 

exclude_unnamed_parameters

exclude_unnamed_parameters : bool = False

Whether not to report parameters that are unnamed. This can be used to mark overloads/specializations that are not meant to use a parameter.