Qt-Autosar-A5.1.4¶
A lambda expression object shall not outlive any of its reference-captured objects
Required inputs: IR
Possible Messages
Key |
Text |
Severity |
Disabled |
|---|---|---|---|
lambda_outlives_object |
Lambda expression object outlives reference-captured object ‘{}’. |
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_function_reference_parameter_capture¶
allow_function_reference_parameter_capture : bool = False
allow_longer_living_local¶
allow_longer_living_local : bool = False
consider_constructors_as_capturing¶
consider_constructors_as_capturing : bool = False