Clangformat

This commit is contained in:
Matthew Parkinson
2019-08-13 13:27:33 +01:00
parent 2ab4bb4366
commit bef2fb94d8
2 changed files with 7 additions and 9 deletions

View File

@@ -108,9 +108,9 @@ namespace snmalloc
} }
/** /**
If you pass a pointer to a bool, then it returns whether all the allocators are empty. If you pass a pointer to a bool, then it returns whether all the
If you don't pass a pointer to a bool, then will raise an error all the allocators are allocators are empty. If you don't pass a pointer to a bool, then will
not empty. raise an error all the allocators are not empty.
*/ */
void debug_check_empty(bool* result = nullptr) void debug_check_empty(bool* result = nullptr)
{ {
@@ -133,7 +133,7 @@ namespace snmalloc
// Destroy the message queue so that it has no stub message. // Destroy the message queue so that it has no stub message.
Remote* p = alloc->message_queue().destroy(); Remote* p = alloc->message_queue().destroy();
while (p != nullptr) while (p != nullptr)
{ {
Remote* next = p->non_atomic_next; Remote* next = p->non_atomic_next;
alloc->handle_dealloc_remote(p); alloc->handle_dealloc_remote(p);

View File

@@ -1,7 +1,5 @@
#include <snmalloc.h> #include <snmalloc.h>
int main() int main()
{ {
snmalloc::Alloc* a = snmalloc::ThreadAlloc::get(); snmalloc::Alloc* a = snmalloc::ThreadAlloc::get();