Minor update to clangformat file. (#694)

This commit is contained in:
Matthew Parkinson
2024-11-22 12:40:16 +00:00
committed by GitHub
parent 45dbdb00af
commit 69e280c331
33 changed files with 60 additions and 0 deletions

View File

@@ -46,10 +46,12 @@ void chatty(const char* p, ...)
struct MyAlloc
{
MyAlloc() {}
void* alloc(size_t sz)
{
return malloc(sz);
}
void dealloc(void* p)
{
free(p);
@@ -59,11 +61,14 @@ struct MyAlloc
struct MyAlloc
{
snmalloc::Alloc& a;
MyAlloc() : a(ThreadAlloc::get()) {}
void* alloc(size_t sz)
{
return a.alloc(sz);
}
void dealloc(void* p)
{
a.dealloc(p);