Skip to content

Commit 19a0d46

Browse files
committed
CPP: More thorough test of LambdaCapture.
1 parent 23b74b5 commit 19a0d46

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
| captures.cpp:3:6:3:6 | x | explicit | 0 |
2-
| captures.cpp:3:9:3:12 | (captured this) | explicit | 1 |
3-
| captures.cpp:10:7:10:7 | (captured this) | implicit | 0 |
4-
| captures.cpp:10:9:10:9 | x | implicit | 1 |
5-
| captures.cpp:15:6:15:6 | x | explicit | 0 |
6-
| end_pos.cpp:9:17:9:18 | ii | explicit | 0 |
1+
| captures.cpp:3:6:3:6 | x | explicit | 0 | x | x |
2+
| captures.cpp:3:9:3:12 | (captured this) | explicit | 1 | (captured this) | this |
3+
| captures.cpp:10:7:10:7 | (captured this) | implicit | 0 | (captured this) | this |
4+
| captures.cpp:10:9:10:9 | x | implicit | 1 | x | x |
5+
| captures.cpp:15:6:15:6 | x | explicit | 0 | x | x |
6+
| end_pos.cpp:9:17:9:18 | ii | explicit | 0 | ii | ii |

cpp/ql/test/library-tests/lambdas/captures/captures.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ from LambdaCapture lc, string mode, int index
44
where
55
exists(LambdaExpression le | le.getCapture(index) = lc) and
66
if lc.isImplicit() then mode = "implicit" else mode = "explicit"
7-
select lc, mode, index
7+
select lc, mode, index, concat(lc.getField().toString(), ", "), concat(lc.getInitializer().toString(), ", ")

0 commit comments

Comments
 (0)