Reformat the codebase with the clang-format 18.

This commit is contained in:
guangli-dai 2025-06-13 12:31:12 -07:00 committed by Guangli Dai
parent 0a6215c171
commit f1bba4a87c
346 changed files with 18286 additions and 17770 deletions

View file

@ -6,9 +6,10 @@ allocated(void) {
return 0;
}
uint64_t allocated;
size_t sz = sizeof(allocated);
expect_d_eq(mallctl("thread.allocated", (void *)&allocated, &sz, NULL,
0), 0, "Unexpected mallctl failure");
size_t sz = sizeof(allocated);
expect_d_eq(
mallctl("thread.allocated", (void *)&allocated, &sz, NULL, 0), 0,
"Unexpected mallctl failure");
return allocated;
}
@ -18,9 +19,10 @@ deallocated(void) {
return 0;
}
uint64_t deallocated;
size_t sz = sizeof(deallocated);
expect_d_eq(mallctl("thread.deallocated", (void *)&deallocated, &sz,
NULL, 0), 0, "Unexpected mallctl failure");
size_t sz = sizeof(deallocated);
expect_d_eq(
mallctl("thread.deallocated", (void *)&deallocated, &sz, NULL, 0),
0, "Unexpected mallctl failure");
return deallocated;
}
@ -43,6 +45,5 @@ TEST_BEGIN(test_realloc_alloc) {
TEST_END
int
main(void) {
return test(
test_realloc_alloc);
return test(test_realloc_alloc);
}