Skip to content

Commit f2e92bf

Browse files
committed
Python: Port py/meta/call-graph
1 parent 7c1320e commit f2e92bf

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
/**
22
* @name Call graph
3-
* @description An edge in the points-to call graph.
3+
* @description An edge in the call graph.
44
* @kind problem
55
* @problem.severity recommendation
6-
* @id py/meta/points-to-call-graph
6+
* @id py/meta/call-graph
77
* @tags meta
88
* @precision very-low
99
*/
1010

1111
import python
1212
import semmle.python.dataflow.new.internal.DataFlowPrivate
1313

14-
from DataFlowCall c, DataFlowCallableValue f
15-
where c.getCallable() = f
16-
select c, "Call to $@", f.getScope(), f.toString()
14+
from DataFlowCall call, DataFlowCallable target
15+
where target = viableCallable(call)
16+
select call, "Call to $@", target.getScope(), target.toString()

0 commit comments

Comments
 (0)