Skip to content

Commit 2140995

Browse files
committed
C++: Update QLDoc for new use of getFullyConverted
1 parent 4b159fd commit 2140995

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

cpp/ql/src/semmle/code/cpp/rangeanalysis/RangeAnalysisUtils.qll

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ boolean directionIsLesser(RelationDirection dir) {
3636

3737
/**
3838
* Holds if `rel` is a relational operation (`<`, `>`, `<=` or `>=`)
39-
* with left operand `lhs` and right operand `rhs`, described by
39+
* with fully-converted children `lhs` and `rhs`, described by
4040
* `dir` and `strict`.
4141
*
4242
* For example, if `rel` is `x < 5` then
@@ -57,7 +57,7 @@ predicate relOp(
5757

5858
/**
5959
* Holds if `rel` is a relational operation (`<`, `>`, `<=` or `>=`)
60-
* with children `a` and `b`, described by `dir` and `strict`.
60+
* with fully-converted children `a` and `b`, described by `dir` and `strict`.
6161
*
6262
* This allows for the relation to be either as written, or with its
6363
* arguments reversed; for example, if `rel` is `x < 5` then both
@@ -74,7 +74,7 @@ predicate relOpWithSwap(
7474

7575
/**
7676
* Holds if `rel` is a comparison operation (`<`, `>`, `<=` or `>=`)
77-
* with children `a` and `b`, described by `dir` and `strict`, with
77+
* with fully-converted children `a` and `b`, described by `dir` and `strict`, with
7878
* result `branch`.
7979
*
8080
* This allows for the relation to be either as written, or with its
@@ -95,8 +95,8 @@ predicate relOpWithSwapAndNegate(
9595
}
9696

9797
/**
98-
* Holds if `cmp` is an equality operation (`==` or `!=`) with left
99-
* operand `lhs`, right operand `rhs`, and `isEQ` is true if `cmp` is an
98+
* Holds if `cmp` is an equality operation (`==` or `!=`) with fully-converted
99+
* children `lhs` and `rhs`, and `isEQ` is true if `cmp` is an
100100
* `==` operation and false if it is an `!=` operation.
101101
*
102102
* For example, if `rel` is `x == 5` then
@@ -111,8 +111,8 @@ predicate eqOp(EqualityOperation cmp, Expr lhs, Expr rhs, boolean isEQ) {
111111
}
112112

113113
/**
114-
* Holds if `cmp` is an equality operation (`==` or `!=`) with operands
115-
* `a` and `b`, and `isEQ` is true if `cmp` is an `==` operation and
114+
* Holds if `cmp` is an equality operation (`==` or `!=`) with fully-converted
115+
* operands `a` and `b`, and `isEQ` is true if `cmp` is an `==` operation and
116116
* false if it is an `!=` operation.
117117
*
118118
* This allows for the equality to be either as written, or with its
@@ -127,8 +127,8 @@ predicate eqOpWithSwap(EqualityOperation cmp, Expr a, Expr b, boolean isEQ) {
127127
}
128128

129129
/**
130-
* Holds if `cmp` is an equality operation (`==` or `!=`) with operands
131-
* `a` and `b`, `isEQ` is true if `cmp` is an `==` operation and
130+
* Holds if `cmp` is an equality operation (`==` or `!=`) with fully-converted
131+
* children `a` and `b`, `isEQ` is true if `cmp` is an `==` operation and
132132
* false if it is an `!=` operation, and the result is `branch`.
133133
*
134134
* This allows for the comparison to be either as written, or with its

0 commit comments

Comments
 (0)