AutosarC++18_03-A18.5.8¶
Objects that do not outlive a function shall have automatic storage duration
Required inputs: IR, StaticSemanticAnalysis
Possible Messages
Key |
Text |
Severity |
Disabled |
|---|---|---|---|
could_be_scoped |
Local objects shall be allocated on the stack. |
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
allow_smart_ptr_from_function_return¶
allow_smart_ptr_from_function_return : bool = True
std::make_{shared,unique,..} will remain a violation.
consider_exceptional_exit¶
consider_exceptional_exit : bool = False
ignore_arrays¶
ignore_arrays : bool = False