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¶
This rule shares the following common options: exclude_in_macros, exclude_messages_in_system_headers, excludes, extend_exclude_to_macro_invocations, includes, justification_checker, languages, post_processing, provider, report_at, severity
The following places define options that affect this rule: Stylechecks, Analysis-GlobalOptions