mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
Python: Sync on TypeTracker.qll changes
This commit is contained in:
@@ -186,7 +186,7 @@ private module Cached {
|
|||||||
jumpStep(nodeFrom, nodeTo) and
|
jumpStep(nodeFrom, nodeTo) and
|
||||||
summary = JumpStep()
|
summary = JumpStep()
|
||||||
or
|
or
|
||||||
levelStep(nodeFrom, nodeTo) and
|
levelStepNoCall(nodeFrom, nodeTo) and
|
||||||
summary = LevelStep()
|
summary = LevelStep()
|
||||||
or
|
or
|
||||||
exists(TypeTrackerContent content |
|
exists(TypeTrackerContent content |
|
||||||
@@ -216,6 +216,9 @@ private module Cached {
|
|||||||
or
|
or
|
||||||
returnStep(nodeFrom, nodeTo) and
|
returnStep(nodeFrom, nodeTo) and
|
||||||
summary = ReturnStep()
|
summary = ReturnStep()
|
||||||
|
or
|
||||||
|
levelStepCall(nodeFrom, nodeTo) and
|
||||||
|
summary = LevelStep()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -45,8 +45,11 @@ predicate simpleLocalFlowStep = DataFlowPrivate::simpleLocalFlowStepForTypetrack
|
|||||||
|
|
||||||
predicate jumpStep = DataFlowPrivate::jumpStepSharedWithTypeTracker/2;
|
predicate jumpStep = DataFlowPrivate::jumpStepSharedWithTypeTracker/2;
|
||||||
|
|
||||||
/** Holds if there is a level step from `pred` to `succ`. */
|
/** Holds if there is a level step from `nodeFrom` to `nodeTo`, which may depend on the call graph. */
|
||||||
predicate levelStep(Node pred, Node succ) { none() }
|
predicate levelStepCall(Node pred, Node succ) { none() }
|
||||||
|
|
||||||
|
/** Holds if there is a level step from `nodeFrom` to `nodeTo`, which does not depend on the call graph. */
|
||||||
|
predicate levelStepNoCall(Node nodeFrom, Node nodeTo) { none() }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the name of a possible piece of content. For Python, this is currently only attribute names,
|
* Gets the name of a possible piece of content. For Python, this is currently only attribute names,
|
||||||
|
|||||||
Reference in New Issue
Block a user