mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Python: Add call graph meta-query
This commit is contained in:
16
python/ql/src/meta/analysis-quality/CallGraph.ql
Normal file
16
python/ql/src/meta/analysis-quality/CallGraph.ql
Normal file
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* @name Call graph
|
||||
* @description An edge in the points-to call graph.
|
||||
* @kind problem
|
||||
* @problem.severity recommendation
|
||||
* @id py/meta/points-to-call-graph
|
||||
* @tags meta
|
||||
* @precision very-low
|
||||
*/
|
||||
|
||||
import python
|
||||
import semmle.python.dataflow.new.internal.DataFlowPrivate
|
||||
|
||||
from DataFlowCall c, DataFlowCallableValue f
|
||||
where c.getCallable() = f
|
||||
select c, "Call to $@", f.getScope(), f.toString()
|
||||
Reference in New Issue
Block a user