C/C++: Remove reference to Partial Flow.

This commit is contained in:
Anders Schack-Mulligen
2023-02-27 14:20:47 +01:00
parent bf650c755c
commit 7e3e10c34b
2 changed files with 34 additions and 34 deletions

View File

@@ -97,23 +97,23 @@ private string getNodeProperty(DataFlow::Node node, string key) {
| |
kind, ", " kind, ", "
) )
or // or
// Is there partial flow from a source to this node? // // Is there partial flow from a source to this node?
// This property will only be emitted if partial flow is enabled by overriding // // This property will only be emitted if partial flow is enabled by overriding
// `DataFlow::Configuration::explorationLimit()`. // // `DataFlow::Configuration::explorationLimit()`.
key = "pflow" and // key = "pflow" and
result = // result =
strictconcat(DataFlow::PartialPathNode sourceNode, DataFlow::PartialPathNode destNode, int dist, // strictconcat(DataFlow::PartialPathNode sourceNode, DataFlow::PartialPathNode destNode, int dist,
int order1, int order2 | // int order1, int order2 |
any(DataFlow::Configuration cfg).hasPartialFlow(sourceNode, destNode, dist) and // any(DataFlow::Configuration cfg).hasPartialFlow(sourceNode, destNode, dist) and
destNode.getNode() = node and // destNode.getNode() = node and
// Only print flow from a source in the same function. // // Only print flow from a source in the same function.
sourceNode.getNode().getEnclosingCallable() = node.getEnclosingCallable() // sourceNode.getNode().getEnclosingCallable() = node.getEnclosingCallable()
| // |
nodeId(sourceNode.getNode(), order1, order2) + "+" + dist.toString(), ", " // nodeId(sourceNode.getNode(), order1, order2) + "+" + dist.toString(), ", "
order by // order by
order1, order2, dist desc // order1, order2, dist desc
) // )
} }
/** /**

View File

@@ -97,23 +97,23 @@ private string getNodeProperty(DataFlow::Node node, string key) {
| |
kind, ", " kind, ", "
) )
or // or
// Is there partial flow from a source to this node? // // Is there partial flow from a source to this node?
// This property will only be emitted if partial flow is enabled by overriding // // This property will only be emitted if partial flow is enabled by overriding
// `DataFlow::Configuration::explorationLimit()`. // // `DataFlow::Configuration::explorationLimit()`.
key = "pflow" and // key = "pflow" and
result = // result =
strictconcat(DataFlow::PartialPathNode sourceNode, DataFlow::PartialPathNode destNode, int dist, // strictconcat(DataFlow::PartialPathNode sourceNode, DataFlow::PartialPathNode destNode, int dist,
int order1, int order2 | // int order1, int order2 |
any(DataFlow::Configuration cfg).hasPartialFlow(sourceNode, destNode, dist) and // any(DataFlow::Configuration cfg).hasPartialFlow(sourceNode, destNode, dist) and
destNode.getNode() = node and // destNode.getNode() = node and
// Only print flow from a source in the same function. // // Only print flow from a source in the same function.
sourceNode.getNode().getEnclosingCallable() = node.getEnclosingCallable() // sourceNode.getNode().getEnclosingCallable() = node.getEnclosingCallable()
| // |
nodeId(sourceNode.getNode(), order1, order2) + "+" + dist.toString(), ", " // nodeId(sourceNode.getNode(), order1, order2) + "+" + dist.toString(), ", "
order by // order by
order1, order2, dist desc // order1, order2, dist desc
) // )
} }
/** /**