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

ignore_as_argument_of_functions

ignore_as_argument_of_functions : set[bauhaus.analysis.config.QualifiedName] = set()

A set of fully qualified function names where the rule can assume that no reference to the passed-in lambda is kept, thus allowing the lambda to not capture by reference.