mirror of
https://github.com/github/codeql.git
synced 2025-12-18 01:33:15 +01:00
14 lines
313 B
Plaintext
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
|