Skip to content

Commit 58c1518

Browse files
committed
C++: Fix QLDoc.
1 parent 97462a3 commit 58c1518

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

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

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1669,14 +1669,18 @@ private module ExprFlowCached {
16691669
result = n.asExpr()
16701670
}
16711671

1672+
/**
1673+
* Holds if `asExpr(n1)` doesn't have a result and `n1` flows to `n2` in a single
1674+
* dataflow step.
1675+
*/
16721676
private predicate localStepFromNonExpr(Node n1, Node n2) {
16731677
not exists(asExpr(n1)) and
16741678
localFlowStep(n1, n2)
16751679
}
16761680

16771681
/**
1678-
* Holds if `n1.asExpr()` doesn't have a result, `n2.asExpr() = e2` and
1679-
* `n2` is the first node reachable from `n1` such that `n2.asExpr()` exists.
1682+
* Holds if `asExpr(n1)` doesn't have a result, `asExpr(n2) = e2` and
1683+
* `n2` is the first node reachable from `n1` such that `asExpr(n2)` exists.
16801684
*/
16811685
pragma[nomagic]
16821686
private predicate localStepsToExpr(Node n1, Node n2, Expr e2) {
@@ -1685,8 +1689,8 @@ private module ExprFlowCached {
16851689
}
16861690

16871691
/**
1688-
* Holds if `n1.asExpr() = e1` and `n2.asExpr() = e2` and `n2` is the first node
1689-
* reachable from `n1` such that `n2.asExpr()` exists.
1692+
* Holds if `asExpr(n1) = e1` and `asExpr(n2) = e2` and `n2` is the first node
1693+
* reachable from `n1` such that `asExpr(n2)` exists.
16901694
*/
16911695
private predicate localExprFlowSingleExprStep(Node n1, Expr e1, Node n2, Expr e2) {
16921696
exists(Node mid |
@@ -1697,8 +1701,8 @@ private module ExprFlowCached {
16971701
}
16981702

16991703
/**
1700-
* Holds if `n1.asExpr() = e1` and `e1 != e2` and `n2` is the first reachable node from
1701-
* `n1` such that `n2.asExpr() = e2`.
1704+
* Holds if `asExpr(n1) = e1` and `e1 != e2` and `n2` is the first reachable node from
1705+
* `n1` such that `asExpr(n2) = e2`.
17021706
*/
17031707
private predicate localExprFlowStepImpl(Node n1, Expr e1, Node n2, Expr e2) {
17041708
exists(Node n, Expr e | localExprFlowSingleExprStep(n1, e1, n, e) |

0 commit comments

Comments
 (0)