Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2faae4d

Browse files
committed
CPP: Autoformat.
1 parent 3477c4a commit 2faae4d

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

cpp/ql/test/library-tests/allocators/allocators.ql

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ query predicate newExprs(NewExpr expr, string type, string sig, int size, int al
1313
}
1414

1515
query predicate newArrayExprs(
16-
NewArrayExpr expr, string t1, string t2, string sig, int size, int alignment, string form, string extents
16+
NewArrayExpr expr, string t1, string t2, string sig, int size, int alignment, string form,
17+
string extents
1718
) {
1819
exists(Function allocator, Type arrayType, Type elementType |
1920
expr.getAllocator() = allocator and
@@ -24,7 +25,7 @@ query predicate newArrayExprs(
2425
t2 = elementType.toString() and
2526
size = elementType.getSize() and
2627
alignment = elementType.getAlignment() and
27-
if expr.hasAlignedAllocation() then form = "aligned" else form = "" and
28+
(if expr.hasAlignedAllocation() then form = "aligned" else form = "") and
2829
extents = concat(Expr e | e = expr.getExtent() | e.toString(), ", ")
2930
)
3031
}

0 commit comments

Comments
 (0)