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

14 lines
265 B
Plaintext

import cpp
import semmle.code.cpp.pointsto.PointsTo
class ReturnPT extends PointsToExpr
{
override predicate interesting() {
this instanceof VariableAccess and
this.getParent() instanceof ReturnStmt
}
}
from ReturnPT return
select return, return.pointsTo()