CUDASecurity-EXP02¶
Do not rely on side effects in operands to sizeof, _Alignof, or _Generic
Required inputs: IR
Based on: CertC-EXP44
With excerpts from SEI CERT, Copyright (C) 1995-2021 Carnegie Mellon University. See 9.4 3rd-Party Licenses in the documentation for full details.Possible Messages
Key |
Text |
Severity |
Disabled |
|---|---|---|---|
side_effect_in_alignof |
Operand of “_Alignof” shall not contain side effects |
None |
False |
side_effect_in_generic |
Selector of “_Generic” shall not contain side effects |
None |
False |
side_effect_in_sizeof |
Operand of “sizeof” shall not contain side effects |
None |
False |
Options¶
This rule shares the following common options: confidence, 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
allow_in_macro_definition¶
allow_in_macro_definition : bool = False