AutosarC++18_03-A5.2.4

reinterpret_cast shall not be used

Required inputs: IR

Possible Messages

Key

Text

Severity

Disabled

reinterpret_cast

reinterpret_cast should not be used.

None

False

Options

allow_cast_of_pointer_sized_integers

allow_cast_of_pointer_sized_integers : bool = False

Allow reinterpret_cast to cast to an integer type large enough to represent a pointer value.
 

allow_cast_to_type

allow_cast_to_type : set[bauhaus.analysis.config.QualifiedName] = set()

A set of full qualified type names for those pointer types that reinterpret_cast are allowed to cast to.