mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Python: CG trace: Restructure QL code
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import python
|
||||
import semmle.python.types.Builtins
|
||||
import semmle.python.objects.Callables
|
||||
import BytecodeExpr
|
||||
import lib.BytecodeExpr
|
||||
|
||||
/** The XML data for a recorded call (includes all data). */
|
||||
class XMLRecordedCall extends XMLElement {
|
||||
@@ -3,7 +3,7 @@
|
||||
* See Metrics.ql for call-graph quality metrics.
|
||||
*/
|
||||
|
||||
import RecordedCalls
|
||||
import lib.RecordedCalls
|
||||
|
||||
from string text, float number, float ratio
|
||||
where
|
||||
@@ -1,4 +1,4 @@
|
||||
import RecordedCalls
|
||||
import lib.RecordedCalls
|
||||
|
||||
// colum i is just used for sorting
|
||||
from string text, float number, float ratio, int i
|
||||
@@ -1,4 +1,4 @@
|
||||
import RecordedCalls
|
||||
import lib.RecordedCalls
|
||||
|
||||
from PointsToBasedCallGraph::ResolvableRecordedCall rc
|
||||
select rc.getACall(), "-->", rc.getCalleeValue()
|
||||
@@ -1,4 +1,4 @@
|
||||
import RecordedCalls
|
||||
import lib.RecordedCalls
|
||||
|
||||
from IdentifiedRecordedCall rc
|
||||
where not rc instanceof PointsToBasedCallGraph::ResolvableRecordedCall
|
||||
@@ -1,4 +1,4 @@
|
||||
import RecordedCalls
|
||||
import lib.RecordedCalls
|
||||
|
||||
from UnidentifiedRecordedCall rc, XMLCall xml_call
|
||||
select "Could not uniquely identify this recorded call (either call or callee was not uniquely identified)",
|
||||
Reference in New Issue
Block a user