Skip to content

Commit 4c6c9d0

Browse files
committed
Dataflow: review fixes
1 parent d285afb commit 4c6c9d0

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

shared/dataflow/codeql/dataflow/internal/DataFlowImplCommon.qll

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,10 @@ module MakeImplCommon<InputSig Lang> {
5454
override string toString() { result = "FeatureEqualSourceSinkCallContext" }
5555
}
5656

57-
signature predicate sourceNode(Node n);
57+
/**
58+
* Holds if `source` is a relevant data flow source.
59+
*/
60+
signature predicate sourceNode(Node source);
5861

5962
/**
6063
* EXPERIMENTAL: This API is subject to change without notice.
@@ -102,6 +105,7 @@ module MakeImplCommon<InputSig Lang> {
102105
argumentValueFlowsThrough(n1, TReadStepTypesNone(), n2)
103106
}
104107

108+
// TODO: support setters
105109
predicate storeStep(Node n1, Node n2, Content f) { storeSet(n1, f, n2, _, _) }
106110

107111
predicate loadStep(Node n1, LocalSourceNode n2, Content f) {
@@ -720,7 +724,7 @@ module MakeImplCommon<InputSig Lang> {
720724
* If a read step was taken, then `read` captures the `Content`, the
721725
* container type, and the content type.
722726
*/
723-
pragma[nomagic]
727+
cached
724728
predicate argumentValueFlowsThrough(ArgNode arg, ReadStepTypesOption read, Node out) {
725729
exists(DataFlowCall call, ReturnKind kind |
726730
argumentValueFlowsThrough0(call, arg, kind, read) and

0 commit comments

Comments
 (0)