Files
codeql/cpp/ql/test/library-tests/pointsto/basic/anythingPointsToExpr.ql
2018-08-02 17:53:23 +01:00

18 lines
322 B
Plaintext

import cpp
import semmle.code.cpp.pointsto.PointsTo
class AccessPT extends PointsToExpr
{
override predicate interesting() {
this instanceof VariableAccess and
exists(FunctionCall use |
use = this.getParent() and
use.getTarget().hasName("use")
)
}
}
from Element loc
where anythingPointsTo(loc)
select loc