Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ece20cd

Browse files
author
Dave Bartolomeo
authored
Merge branch 'main' into dbartol/temporaries/work
2 parents b73cb3a + 7942d73 commit ece20cd

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

cpp/ql/src/semmle/code/cpp/ir/dataflow/internal/PrintIRLocalFlow.qll

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,12 +131,16 @@ private string getNodeProperty(DataFlow::Node node, string key) {
131131
kind, ", "
132132
)
133133
or
134+
// Is there partial flow from a source to this node?
135+
// This property will only be emitted if partial flow is enabled by overriding
136+
// `DataFlow::Configration::explorationLimit()`.
134137
key = "pflow" and
135138
result =
136139
strictconcat(DataFlow::PartialPathNode sourceNode, DataFlow::PartialPathNode destNode, int dist,
137140
int order1, int order2 |
138141
any(DataFlow::Configuration cfg).hasPartialFlow(sourceNode, destNode, dist) and
139142
destNode.getNode() = node and
143+
// Only print flow from a source in the same function.
140144
sourceNode.getNode().getEnclosingCallable() = node.getEnclosingCallable()
141145
|
142146
nodeId(sourceNode.getNode(), order1, order2) + "+" + dist.toString(), ", "

0 commit comments

Comments
 (0)