Skip to content

Commit 9ceb091

Browse files
committed
C++: Update predicate after getAnArrayOffset/0 deprecation
1 parent 4c3fb0c commit 9ceb091

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/ql/src/jsf/lib/section_4_21_Operators/AV_Rule_166.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class SizeofImpureExprOperator extends SizeofExprOperator {
1313
not e.(OverloadedPointerDereferenceExpr).getExpr().isPure() and
1414
not exists(OverloadedArrayExpr op | op = e |
1515
op.getArrayBase().isPure() and
16-
op.getArrayOffset().isPure()
16+
forall(Expr offset | offset = op.getAnArrayOffset() | offset.isPure())
1717
)
1818
)
1919
}

0 commit comments

Comments
 (0)