Skip to content

Commit 1c0e83a

Browse files
committed
C++: Autoformat fixup
1 parent aa78c6e commit 1c0e83a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

cpp/ql/src/experimental/semmle/code/cpp/models/interfaces/SimpleRangeAnalysisExpr.qll

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/**
22
* Provides a class for modeling `Expr`s with a restricted range.
33
*/
4+
45
import cpp
56

67
/**
@@ -9,8 +10,10 @@ import cpp
910
abstract class SimpleRangeAnalysisExpr extends Expr {
1011
/** Gets the lower bound of the expression. */
1112
abstract float getLowerBounds();
13+
1214
/** Gets the upper bound of the expression. */
1315
abstract float getUpperBounds();
16+
1417
/** Holds if this expression depends on the definition `srcDef` for StackVariable `srcVar`. */
1518
predicate dependsOnDef(RangeSsaDefinition srcDef, StackVariable srcVar) { none() }
1619
}

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -334,9 +334,7 @@ private predicate exprDependsOnDef(Expr e, RangeSsaDefinition srcDef, StackVaria
334334
e = srcDef.getAUse(srcVar)
335335
or
336336
// A modeled expression for range analysis
337-
exists(SimpleRangeAnalysisExpr rae |
338-
rae.dependsOnDef(srcDef, srcVar)
339-
)
337+
exists(SimpleRangeAnalysisExpr rae | rae.dependsOnDef(srcDef, srcVar))
340338
}
341339

342340
/**

0 commit comments

Comments
 (0)