mirror of
https://github.com/github/codeql.git
synced 2026-03-26 09:18:16 +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()
|