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

Member predicate LambdaExpression::getDefaultCaptureMode

Gets the default variable capture mode for the lambda expression.

Will be one of:

  • "" if no default was specified, meaning that all captures must be explicit.
  • “&” if capture-by-reference is the default for implicit captures.
  • “=” if capture-by-value is the default for implicit captures.
string getDefaultCaptureMode()