mirror of
https://github.com/github/codeql.git
synced 2026-03-23 07:56:54 +01:00
14 lines
265 B
Plaintext
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()
|