AutosarC++18_03-A18.5.10

Placement new shall be used only with properly aligned pointers to sufficient storage capacity

Required inputs: IR

Possible Messages

Key

Text

Severity

Disabled

array_new

Ensure to account for the overhead of array new expressions, i.e., storage required for array cookies

None

False

improper_alignment

Improper alignment {} when using placement new operator, intended storage has alignment {}

None

False

insufficient_storage

Insufficient space when using placement new operator: Object has {} bits, intended storage has {} bits

None

False

Options

check_array_cookies

check_array_cookies : bool = False

Check if storage space for array cookies is missing (needs StaticSemanticAnalysis).