We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c4c797b commit c5f29c6Copy full SHA for c5f29c6
python/ql/src/Functions/ConsistentReturns.ql
@@ -12,7 +12,7 @@
12
*/
13
14
import python
15
-private import LegacyPointsTo
+private import semmle.python.dataflow.new.internal.DataFlowDispatch
16
17
predicate explicitly_returns_non_none(Function func) {
18
exists(Return return |
@@ -22,8 +22,8 @@ predicate explicitly_returns_non_none(Function func) {
22
}
23
24
predicate has_implicit_return(Function func) {
25
- exists(ControlFlowNodeWithPointsTo fallthru |
26
- fallthru = func.getFallthroughNode() and not fallthru.unlikelyReachable()
+ exists(ControlFlowNode fallthru |
+ fallthru = func.getFallthroughNode() and not Reachability::unlikelyReachable(fallthru)
27
)
28
or
29
exists(Return return | return.getScope() = func and not exists(return.getValue()))
0 commit comments