CodeQL library for C/C++
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()