mirror of
https://github.com/github/codeql.git
synced 2026-03-04 14:46:48 +01:00
18 lines
322 B
Plaintext
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
|