mirror of
https://github.com/github/codeql.git
synced 2026-01-28 05:42:58 +01:00
18 lines
349 B
Plaintext
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
|