Skip to content

Commit 4c68943

Browse files
committed
Python: CG trace: Restructure QL code
1 parent 321d510 commit 4c68943

File tree

7 files changed

+6
-6
lines changed

7 files changed

+6
-6
lines changed

python/tools/recorded-call-graph-metrics/ql/BytecodeExpr.qll renamed to python/tools/recorded-call-graph-metrics/ql/lib/BytecodeExpr.qll

File renamed without changes.

python/tools/recorded-call-graph-metrics/ql/RecordedCalls.qll renamed to python/tools/recorded-call-graph-metrics/ql/lib/RecordedCalls.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import python
22
import semmle.python.types.Builtins
33
import semmle.python.objects.Callables
4-
import BytecodeExpr
4+
import lib.BytecodeExpr
55

66
/** The XML data for a recorded call (includes all data). */
77
class XMLRecordedCall extends XMLElement {

python/tools/recorded-call-graph-metrics/ql/InternalMetrics.ql renamed to python/tools/recorded-call-graph-metrics/ql/query/InternalMetrics.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* See Metrics.ql for call-graph quality metrics.
44
*/
55

6-
import RecordedCalls
6+
import lib.RecordedCalls
77

88
from string text, float number, float ratio
99
where

python/tools/recorded-call-graph-metrics/ql/Metrics.ql renamed to python/tools/recorded-call-graph-metrics/ql/query/Metrics.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import RecordedCalls
1+
import lib.RecordedCalls
22

33
// colum i is just used for sorting
44
from string text, float number, float ratio, int i

python/tools/recorded-call-graph-metrics/ql/PointsToFound.ql renamed to python/tools/recorded-call-graph-metrics/ql/query/PointsToFound.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import RecordedCalls
1+
import lib.RecordedCalls
22

33
from PointsToBasedCallGraph::ResolvableRecordedCall rc
44
select rc.getACall(), "-->", rc.getCalleeValue()

python/tools/recorded-call-graph-metrics/ql/PointsToNotFound.ql renamed to python/tools/recorded-call-graph-metrics/ql/query/PointsToNotFound.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import RecordedCalls
1+
import lib.RecordedCalls
22

33
from IdentifiedRecordedCall rc
44
where not rc instanceof PointsToBasedCallGraph::ResolvableRecordedCall

python/tools/recorded-call-graph-metrics/ql/UnidentifiedRecordedCalls.ql renamed to python/tools/recorded-call-graph-metrics/ql/query/UnidentifiedRecordedCalls.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import RecordedCalls
1+
import lib.RecordedCalls
22

33
from UnidentifiedRecordedCall rc, XMLCall xml_call
44
select "Could not uniquely identify this recorded call (either call or callee was not uniquely identified)",

0 commit comments

Comments
 (0)