Skip to content

Commit a776132

Browse files
committed
Python: Deprecate more predicates
1 parent 6fc9e61 commit a776132

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

python/ql/lib/semmle/python/dataflow/new/internal/TypeTrackerSpecific.qll

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44

55
private import python
66
private import semmle.python.dataflow.new.internal.DataFlowPublic as DataFlowPublic
7-
private import semmle.python.dataflow.new.internal.DataFlowPrivate as DataFlowPrivate
87
private import TypeTrackingImpl as TypeTrackingImpl
9-
import semmle.python.internal.CachedStages
108

119
deprecated class Node = DataFlowPublic::Node;
1210

@@ -44,15 +42,16 @@ deprecated predicate compatibleContents(
4442
storeContent = loadContent
4543
}
4644

47-
predicate simpleLocalFlowStep = TypeTrackingImpl::TypeTrackingInput::simpleLocalSmallStep/2;
45+
deprecated predicate simpleLocalFlowStep =
46+
TypeTrackingImpl::TypeTrackingInput::simpleLocalSmallStep/2;
4847

49-
predicate jumpStep = TypeTrackingImpl::TypeTrackingInput::jumpStep/2;
48+
deprecated predicate jumpStep = TypeTrackingImpl::TypeTrackingInput::jumpStep/2;
5049

5150
/** Holds if there is a level step from `nodeFrom` to `nodeTo`, which may depend on the call graph. */
5251
deprecated predicate levelStepCall(Node nodeFrom, Node nodeTo) { none() }
5352

5453
/** Holds if there is a level step from `nodeFrom` to `nodeTo`, which does not depend on the call graph. */
55-
predicate levelStepNoCall = TypeTrackingImpl::TypeTrackingInput::levelStepNoCall/2;
54+
deprecated predicate levelStepNoCall = TypeTrackingImpl::TypeTrackingInput::levelStepNoCall/2;
5655

5756
/**
5857
* Holds if `nodeFrom` steps to `nodeTo` by being passed as a parameter in a call.
@@ -61,25 +60,25 @@ predicate levelStepNoCall = TypeTrackingImpl::TypeTrackingInput::levelStepNoCall
6160
* recursion (or, at best, terrible performance), since identifying calls to library
6261
* methods is done using API graphs (which uses type tracking).
6362
*/
64-
predicate callStep = TypeTrackingImpl::TypeTrackingInput::callStep/2;
63+
deprecated predicate callStep = TypeTrackingImpl::TypeTrackingInput::callStep/2;
6564

6665
/** Holds if `nodeFrom` steps to `nodeTo` by being returned from a call. */
67-
predicate returnStep = TypeTrackingImpl::TypeTrackingInput::returnStep/2;
66+
deprecated predicate returnStep = TypeTrackingImpl::TypeTrackingInput::returnStep/2;
6867

6968
/**
7069
* Holds if `nodeFrom` is being written to the `content` content of the object in `nodeTo`.
7170
*/
72-
predicate basicStoreStep = TypeTrackingImpl::TypeTrackingInput::storeStep/3;
71+
deprecated predicate basicStoreStep = TypeTrackingImpl::TypeTrackingInput::storeStep/3;
7372

7473
/**
7574
* Holds if `nodeTo` is the result of accessing the `content` content of `nodeFrom`.
7675
*/
77-
predicate basicLoadStep = TypeTrackingImpl::TypeTrackingInput::loadStep/3;
76+
deprecated predicate basicLoadStep = TypeTrackingImpl::TypeTrackingInput::loadStep/3;
7877

7978
/**
8079
* Holds if the `loadContent` of `nodeFrom` is stored in the `storeContent` of `nodeTo`.
8180
*/
82-
predicate basicLoadStoreStep = TypeTrackingImpl::TypeTrackingInput::loadStoreStep/4;
81+
deprecated predicate basicLoadStoreStep = TypeTrackingImpl::TypeTrackingInput::loadStoreStep/4;
8382

8483
/**
8584
* Holds if type-tracking should step from `nodeFrom` to `nodeTo` but block flow of contents matched by `filter` through here.

0 commit comments

Comments
 (0)