Files
codeql/cpp/ql/test/library-tests/lambdas/captures/elements.ql
Geoffrey White 202a717085 C++: Autoformat.
2023-03-24 22:10:51 +00:00

14 lines
313 B
Plaintext

import cpp
predicate interesting(Element e) {
e instanceof LambdaCapture or
e instanceof LambdaExpression or
e = any(LambdaExpression le).getLambdaFunction() or
e = any(LambdaExpression le).getInitializer() or
e instanceof Closure
}
from Element e
where interesting(e.getEnclosingElement*())
select e