mirror of
https://github.com/github/codeql.git
synced 2026-05-03 12:45:27 +02:00
CPP: More thorough test of LambdaCapture.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
| captures.cpp:3:6:3:6 | x | explicit | 0 |
|
||||
| captures.cpp:3:9:3:12 | (captured this) | explicit | 1 |
|
||||
| captures.cpp:10:7:10:7 | (captured this) | implicit | 0 |
|
||||
| captures.cpp:10:9:10:9 | x | implicit | 1 |
|
||||
| captures.cpp:15:6:15:6 | x | explicit | 0 |
|
||||
| end_pos.cpp:9:17:9:18 | ii | explicit | 0 |
|
||||
| captures.cpp:3:6:3:6 | x | explicit | 0 | x | x |
|
||||
| captures.cpp:3:9:3:12 | (captured this) | explicit | 1 | (captured this) | this |
|
||||
| captures.cpp:10:7:10:7 | (captured this) | implicit | 0 | (captured this) | this |
|
||||
| captures.cpp:10:9:10:9 | x | implicit | 1 | x | x |
|
||||
| captures.cpp:15:6:15:6 | x | explicit | 0 | x | x |
|
||||
| end_pos.cpp:9:17:9:18 | ii | explicit | 0 | ii | ii |
|
||||
|
||||
@@ -4,4 +4,4 @@ from LambdaCapture lc, string mode, int index
|
||||
where
|
||||
exists(LambdaExpression le | le.getCapture(index) = lc) and
|
||||
if lc.isImplicit() then mode = "implicit" else mode = "explicit"
|
||||
select lc, mode, index
|
||||
select lc, mode, index, concat(lc.getField().toString(), ", "), concat(lc.getInitializer().toString(), ", ")
|
||||
|
||||
Reference in New Issue
Block a user