ClangFormat: apply to source, most of intern
Apply clang format as proposed in T53211. For details on usage and instructions for migrating branches without conflicts, see: https://wiki.blender.org/wiki/Tools/ClangFormat
This commit is contained in:
@@ -18,7 +18,6 @@
|
||||
* \ingroup MEM
|
||||
*/
|
||||
|
||||
|
||||
#include <new>
|
||||
#include "../MEM_guardedalloc.h"
|
||||
|
||||
@@ -28,33 +27,31 @@ void *operator new[](size_t size, const char *str) throw(std::bad_alloc);
|
||||
/* not default but can be used when needing to set a string */
|
||||
void *operator new(size_t size, const char *str) throw(std::bad_alloc)
|
||||
{
|
||||
return MEM_mallocN(size, str);
|
||||
return MEM_mallocN(size, str);
|
||||
}
|
||||
void *operator new[](size_t size, const char *str) throw(std::bad_alloc)
|
||||
{
|
||||
return MEM_mallocN(size, str);
|
||||
return MEM_mallocN(size, str);
|
||||
}
|
||||
|
||||
|
||||
void *operator new(size_t size) throw(std::bad_alloc)
|
||||
{
|
||||
return MEM_mallocN(size, "C++/anonymous");
|
||||
return MEM_mallocN(size, "C++/anonymous");
|
||||
}
|
||||
void *operator new[](size_t size) throw(std::bad_alloc)
|
||||
{
|
||||
return MEM_mallocN(size, "C++/anonymous[]");
|
||||
return MEM_mallocN(size, "C++/anonymous[]");
|
||||
}
|
||||
|
||||
|
||||
void operator delete(void *p) throw()
|
||||
{
|
||||
/* delete NULL is valid in c++ */
|
||||
if (p)
|
||||
MEM_freeN(p);
|
||||
/* delete NULL is valid in c++ */
|
||||
if (p)
|
||||
MEM_freeN(p);
|
||||
}
|
||||
void operator delete[](void *p) throw()
|
||||
{
|
||||
/* delete NULL is valid in c++ */
|
||||
if (p)
|
||||
MEM_freeN(p);
|
||||
/* delete NULL is valid in c++ */
|
||||
if (p)
|
||||
MEM_freeN(p);
|
||||
}
|
||||
|
Reference in New Issue
Block a user