CodeQL library for C/C++
codeql/cpp-all 2.1.1-dev (changelog, source)
Search

Member predicate LambdaExpression::getLambdaFunction

Gets the function which will be invoked when the resulting object is called.

Various components of the lambda expression can be obtained from components of this function, such as:

  • The number and type of parameters.
  • Whether the mutable keyword was used (iff this function is not const).
  • The return type.
  • The statements comprising the lambda body.
Operator getLambdaFunction()