We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 95ecf31 commit 0d089afCopy full SHA for 0d089af
2 files changed
cpp/ql/test/library-tests/lambdas/syntax/empty_declarator.ql
@@ -0,0 +1,5 @@
1
+import cpp
2
+
3
+from LambdaExpression e
4
+where e.emptyParameterListIsExplicit()
5
+select e
cpp/ql/test/library-tests/lambdas/syntax/parameters.cpp
@@ -0,0 +1,26 @@
+void test_lambda_declarator() {
+ [=](int, float) { };
+ [](int x = 42) { };
6
+ [](int x) { };
7
8
+ []() mutable { };
9
10
+ []() [[nodiscard]] { };
11
+ [] [[nodiscard]] { };
12
13
+ []() -> void { };
14
15
+ int i;
16
+ [&i]() {
17
+ i += 1;
18
+ };
19
20
+ [&i] {
21
22
23
24
+ [] { };
25
+ [=] () { };
26
+}
0 commit comments