AutosarC++17_10-A5.1.5¶
If a lambda expression is used in the same scope in which it has been defined, the lambda should capture objects by reference
Required inputs: IR
Possible Messages
Key |
Text |
Severity |
Disabled |
|---|---|---|---|
local_lambda |
An only locally used lambda should capture by reference. |
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
ignore_as_argument_of_functions¶
ignore_as_argument_of_functions : set[bauhaus.analysis.config.QualifiedName] = set()