Skip to content

Commit 2bfa8b6

Browse files
committed
C++: a some QLDoc to new range analysis wrapper
1 parent 376e01a commit 2bfa8b6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cpp/ql/lib/semmle/code/cpp/rangeanalysis/new/RangeAnalysis.qll

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ predicate convertedBounded(Expr e, Bound b, float delta, boolean upper, Reason r
3636
semBounded(semExpr, b, delta, upper, reason)
3737
)
3838
}
39+
3940
/**
4041
* A reason for an inferred bound. This can either be `CondReason` if the bound
4142
* is due to a specific condition, or `NoReason` if the bound is inferred
@@ -58,6 +59,7 @@ class NoReason extends Reason instanceof SemNoReason {
5859
class CondReason extends Reason instanceof SemCondReason {
5960
override string toString() { result = SemCondReason.super.toString() }
6061

62+
/** Gets the guard condition that caused the inferred bound */
6163
GuardCondition getCond() {
6264
result = super.getCond().(IRGuardCondition).getUnconvertedResultExpression()
6365
}
@@ -67,6 +69,7 @@ class CondReason extends Reason instanceof SemCondReason {
6769
* A bound that may be inferred for an expression plus/minus an integer delta.
6870
*/
6971
class Bound instanceof IRBound::Bound {
72+
/** Gets a string representation of this bound. */
7073
string toString() { none() }
7174

7275
/** Gets an expression that equals this bound. */

0 commit comments

Comments
 (0)