AutosarC++17_10-A18.5.3

The form of delete operator shall match the form of new operator used to allocate the memory

Required inputs: IR, StaticSemanticAnalysis

Possible Messages

Key

Text

Severity

Disabled

possible_wrong_release

Resource possibly released using wrong function (allocation used {node0})

None

False

wrong_release

Resource released using wrong function (allocation used {node0})

None

False

Options

maximum_number_of_threads

maximum_number_of_threads : int = 0

This option determines how many threads are used during computation of this rule at most. With 0, the maximum number of threads is automatically determined with a heuristic that considers the number of available CPU cores as well as the available memory.
 

resources

resources : set[str] = {'C++ArrayHeapMemory', 'C++HeapMemory'}

Set of resources to be checked (selection of rules in the Resources group).
 

witness_paths

witness_paths : bool = True

Whether witness paths should be determined and included in the issue.