AutosarC++19_03-A7.5.1

A function shall not return a reference or a pointer to a parameter that is passed by reference to const

Required inputs: IR

Possible Messages

Key

Text

Severity

Disabled

returning_reference_to_refparam

Returning reference/pointer to reference parameter.

None

False

Options

only_const_reference

only_const_reference : bool = True

Whether only to report returns of parameters with reference to const.