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

Member predicate LambdaCapture :: getLocation

Gets the location of the declaration of this capture.

For explicit captures, this is a location within the “[…]” part of the lambda expression.

For implicit captures, this is the first location within the “{…}” part of the lambda expression which accesses the captured variable.

Location getLocation ( )