mirror of
https://github.com/github/codeql.git
synced 2025-12-18 01:33:15 +01:00
12 lines
331 B
Plaintext
12 lines
331 B
Plaintext
import cpp
|
|
|
|
query predicate exprDestructors(Expr e, int i, DestructorCall d, Expr destructed) {
|
|
d = e.getImplicitDestructorCall(i) and
|
|
d.getQualifier() = destructed
|
|
}
|
|
|
|
query predicate stmtDestructors(Stmt s, int i, DestructorCall d, Expr destructed) {
|
|
d = s.getImplicitDestructorCall(i) and
|
|
d.getQualifier() = destructed
|
|
}
|