Skip to content

Commit af888f7

Browse files
authored
Python: Add call graph meta-query
1 parent ac29d5f commit af888f7

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/**
2+
* @name Call graph
3+
* @description An edge in the points-to call graph.
4+
* @kind problem
5+
* @problem.severity recommendation
6+
* @id py/meta/points-to-call-graph
7+
* @tags meta
8+
* @precision very-low
9+
*/
10+
11+
import python
12+
import semmle.python.dataflow.new.internal.DataFlowPrivate
13+
14+
from DataFlowCall c, DataFlowCallableValue f
15+
where c.getCallable() = f
16+
select c, "Call to $@", f.getScope(), f.toString()

0 commit comments

Comments
 (0)