Skip to content

Commit 7e3e10c

Browse files
committed
C/C++: Remove reference to Partial Flow.
1 parent bf650c7 commit 7e3e10c

File tree

2 files changed

+34
-34
lines changed

2 files changed

+34
-34
lines changed

cpp/ql/lib/experimental/semmle/code/cpp/ir/dataflow/internal/PrintIRLocalFlow.qll

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -97,23 +97,23 @@ private string getNodeProperty(DataFlow::Node node, string key) {
9797
|
9898
kind, ", "
9999
)
100-
or
101-
// Is there partial flow from a source to this node?
102-
// This property will only be emitted if partial flow is enabled by overriding
103-
// `DataFlow::Configuration::explorationLimit()`.
104-
key = "pflow" and
105-
result =
106-
strictconcat(DataFlow::PartialPathNode sourceNode, DataFlow::PartialPathNode destNode, int dist,
107-
int order1, int order2 |
108-
any(DataFlow::Configuration cfg).hasPartialFlow(sourceNode, destNode, dist) and
109-
destNode.getNode() = node and
110-
// Only print flow from a source in the same function.
111-
sourceNode.getNode().getEnclosingCallable() = node.getEnclosingCallable()
112-
|
113-
nodeId(sourceNode.getNode(), order1, order2) + "+" + dist.toString(), ", "
114-
order by
115-
order1, order2, dist desc
116-
)
100+
// or
101+
// // Is there partial flow from a source to this node?
102+
// // This property will only be emitted if partial flow is enabled by overriding
103+
// // `DataFlow::Configuration::explorationLimit()`.
104+
// key = "pflow" and
105+
// result =
106+
// strictconcat(DataFlow::PartialPathNode sourceNode, DataFlow::PartialPathNode destNode, int dist,
107+
// int order1, int order2 |
108+
// any(DataFlow::Configuration cfg).hasPartialFlow(sourceNode, destNode, dist) and
109+
// destNode.getNode() = node and
110+
// // Only print flow from a source in the same function.
111+
// sourceNode.getNode().getEnclosingCallable() = node.getEnclosingCallable()
112+
// |
113+
// nodeId(sourceNode.getNode(), order1, order2) + "+" + dist.toString(), ", "
114+
// order by
115+
// order1, order2, dist desc
116+
// )
117117
}
118118

119119
/**

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

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -97,23 +97,23 @@ private string getNodeProperty(DataFlow::Node node, string key) {
9797
|
9898
kind, ", "
9999
)
100-
or
101-
// Is there partial flow from a source to this node?
102-
// This property will only be emitted if partial flow is enabled by overriding
103-
// `DataFlow::Configuration::explorationLimit()`.
104-
key = "pflow" and
105-
result =
106-
strictconcat(DataFlow::PartialPathNode sourceNode, DataFlow::PartialPathNode destNode, int dist,
107-
int order1, int order2 |
108-
any(DataFlow::Configuration cfg).hasPartialFlow(sourceNode, destNode, dist) and
109-
destNode.getNode() = node and
110-
// Only print flow from a source in the same function.
111-
sourceNode.getNode().getEnclosingCallable() = node.getEnclosingCallable()
112-
|
113-
nodeId(sourceNode.getNode(), order1, order2) + "+" + dist.toString(), ", "
114-
order by
115-
order1, order2, dist desc
116-
)
100+
// or
101+
// // Is there partial flow from a source to this node?
102+
// // This property will only be emitted if partial flow is enabled by overriding
103+
// // `DataFlow::Configuration::explorationLimit()`.
104+
// key = "pflow" and
105+
// result =
106+
// strictconcat(DataFlow::PartialPathNode sourceNode, DataFlow::PartialPathNode destNode, int dist,
107+
// int order1, int order2 |
108+
// any(DataFlow::Configuration cfg).hasPartialFlow(sourceNode, destNode, dist) and
109+
// destNode.getNode() = node and
110+
// // Only print flow from a source in the same function.
111+
// sourceNode.getNode().getEnclosingCallable() = node.getEnclosingCallable()
112+
// |
113+
// nodeId(sourceNode.getNode(), order1, order2) + "+" + dist.toString(), ", "
114+
// order by
115+
// order1, order2, dist desc
116+
// )
117117
}
118118

119119
/**

0 commit comments

Comments
 (0)