C++: Adapt existing code to use the new layout of the underlying lambda table

This commit is contained in:
idrissrio
2025-06-06 15:43:20 +02:00
parent 9ac9607cb7
commit 3ecc4c9ad7

View File

@@ -41,12 +41,12 @@ class LambdaExpression extends Expr, @lambdaexpr {
* - "&" if capture-by-reference is the default for implicit captures.
* - "=" if capture-by-value is the default for implicit captures.
*/
string getDefaultCaptureMode() { lambdas(underlyingElement(this), result, _) }
string getDefaultCaptureMode() { lambdas(underlyingElement(this), result, _, _) }
/**
* Holds if the return type (of the call operator of the resulting object) was explicitly specified.
*/
predicate returnTypeIsExplicit() { lambdas(underlyingElement(this), _, true) }
predicate returnTypeIsExplicit() { lambdas(underlyingElement(this), _, true, _) }
/**
* Gets the function which will be invoked when the resulting object is called.