Files
codeql/cpp/ql/test/library-tests/lambdas/captures/captures.ql
2019-08-23 08:44:29 +01:00

8 lines
302 B
Plaintext

import cpp
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, concat(lc.getField().toString(), ", "), concat(lc.getInitializer().toString(), ", ")