Skip to content

Commit 0534c69

Browse files
committed
C++: Autoformat.
1 parent 0b5b7fa commit 0534c69

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

cpp/ql/src/Likely Bugs/Likely Typos/inconsistentLoopDirection.ql

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,11 @@ predicate illDefinedDecrForStmt(
5050
DataFlow::localFlowStep(DataFlow::exprNode(initialCondition), DataFlow::exprNode(lesserOperand)) and
5151
// `initialCondition` < `terminalCondition`
5252
(
53+
upperBound(initialCondition) < lowerBound(terminalCondition) and
5354
(
54-
upperBound(initialCondition) < lowerBound(terminalCondition) and (
55-
// exclude cases where the loop counter is `unsigned` (where wrapping behaviour can be used deliberately)
56-
v.getUnspecifiedType().(IntegralType).isSigned() or
57-
initialCondition.getValue().toInt() = 0
58-
)
55+
// exclude cases where the loop counter is `unsigned` (where wrapping behaviour can be used deliberately)
56+
v.getUnspecifiedType().(IntegralType).isSigned() or
57+
initialCondition.getValue().toInt() = 0
5958
)
6059
or
6160
(forstmt.conditionAlwaysFalse() or forstmt.conditionAlwaysTrue())

0 commit comments

Comments
 (0)