Minor update to clangformat file. (#694)
This commit is contained in:
committed by
GitHub
parent
45dbdb00af
commit
69e280c331
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user