AutosarC++18_03-A18.5.2

Operators new and delete shall not be called explicitly

Required inputs: IR

Possible Messages

Key

Text

Severity

Disabled

new_delete_call

Operators new and delete shall not be called explicitly.

None

False

Options

allow_for_types_and_subtypes

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

A set of fully-qualified type names for which the new and delete operators are allowed. This might be necessary if you are working with 3rd party libraries. For Qt, you should instead set the option Frameworks-QtSupport/qt_types.
 

memory_manager_types

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

Types of objects to be considered memory managers, i.e. calls to new are allowed if they are immediately passed to one of the managers.