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

18 lines
349 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 AccessPT access, Element loc
where access.pointsTo() = loc
select access, loc