mirror of
https://github.com/github/codeql.git
synced 2026-05-01 19:55:15 +02:00
Add NotNullExpr flow
This commit is contained in:
committed by
Ian Lynagh
parent
cf5152baa2
commit
2da98148dc
@@ -154,6 +154,8 @@ predicate simpleLocalFlowStep(Node node1, Node node2) {
|
||||
or
|
||||
node2.asExpr() = any(StmtExpr stmtExpr | node1.asExpr() = stmtExpr.getResultExpr())
|
||||
or
|
||||
node2.asExpr() = any(NotNullExpr nne | node1.asExpr() = nne.getExpr())
|
||||
or
|
||||
exists(MethodAccess ma, ValuePreservingMethod m, int argNo |
|
||||
ma.getCallee().getSourceDeclaration() = m and m.returnsValue(argNo)
|
||||
|
|
||||
|
||||
Reference in New Issue
Block a user