Skip to content

Commit fcd0e67

Browse files
committed
C++: Adapt existing code to use the new layout of the underlying lambda table
1 parent d3da9c0 commit fcd0e67

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cpp/ql/lib/semmle/code/cpp/exprs/Lambda.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ class LambdaExpression extends Expr, @lambdaexpr {
4141
* - "&" if capture-by-reference is the default for implicit captures.
4242
* - "=" if capture-by-value is the default for implicit captures.
4343
*/
44-
string getDefaultCaptureMode() { lambdas(underlyingElement(this), result, _) }
44+
string getDefaultCaptureMode() { lambdas(underlyingElement(this), result, _, _) }
4545

4646
/**
4747
* Holds if the return type (of the call operator of the resulting object) was explicitly specified.
4848
*/
49-
predicate returnTypeIsExplicit() { lambdas(underlyingElement(this), _, true) }
49+
predicate returnTypeIsExplicit() { lambdas(underlyingElement(this), _, true, _) }
5050

5151
/**
5252
* Gets the function which will be invoked when the resulting object is called.

0 commit comments

Comments
 (0)