mirror of
https://github.com/github/codeql.git
synced 2026-04-24 08:15:14 +02:00
C++: Adapt existing code to use the new layout of the underlying lambda table
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user