Skip to content

Commit ead5feb

Browse files
committed
C++: Autoformat.
1 parent 8d3d088 commit ead5feb

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

cpp/ql/src/semmle/code/cpp/models/implementations/Allocation.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,8 @@ class OperatorNewAllocationFunction extends AllocationFunction {
226226
hasGlobalName(name) and
227227
(
228228
// operator new(bytes, ...)
229-
name = "operator new" or
229+
name = "operator new"
230+
or
230231
// operator new[](bytes, ...)
231232
name = "operator new[]"
232233
)
@@ -260,8 +261,7 @@ class CallAllocationExpr extends AllocationExpr, FunctionCall {
260261
not (
261262
exists(target.getReallocPtrArg()) and
262263
getArgument(target.getSizeArg()).getValue().toInt() = 0
263-
)
264-
and
264+
) and
265265
// these are modelled directly (and more accurately), avoid duplication
266266
not exists(NewOrNewArrayExpr new | new.getAllocatorCall() = this)
267267
}

cpp/ql/src/semmle/code/cpp/models/implementations/Deallocation.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ class OperatorDeleteDeallocationFunction extends DeallocationFunction {
9090
hasGlobalName(name) and
9191
(
9292
// operator delete(pointer, ...)
93-
name = "operator delete" or
93+
name = "operator delete"
94+
or
9495
// operator delete[](pointer, ...)
9596
name = "operator delete[]"
9697
)

0 commit comments

Comments
 (0)