We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ecc4c9 commit 6c9959dCopy full SHA for 6c9959d
cpp/ql/lib/semmle/code/cpp/exprs/Lambda.qll
@@ -48,6 +48,19 @@ class LambdaExpression extends Expr, @lambdaexpr {
48
*/
49
predicate returnTypeIsExplicit() { lambdas(underlyingElement(this), _, true, _) }
50
51
+ /**
52
+ * Holds if the lambda has an explicitly specified parameter list, even when empty.
53
+ */
54
+ predicate hasParameterList() { lambdas(underlyingElement(this), _, _, true) }
55
+
56
57
+ * Holds if the lambda has an empty parameter list
58
59
+ predicate emptyParameterListIsExplicit() {
60
+ this.hasParameterList() and
61
+ this.getLambdaFunction().getNumberOfParameters() = 0
62
+ }
63
64
/**
65
* Gets the function which will be invoked when the resulting object is called.
66
*
0 commit comments