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:
2019-04-17 06:17:24 +02:00
parent b3dabc200a
commit e12c08e8d1
4481 changed files with 1230080 additions and 1155401 deletions
@@ -24,19 +24,19 @@ CCL_NAMESPACE_BEGIN
TEST(util_aligned_malloc, aligned_malloc_16)
{
int *mem = (int*)util_aligned_malloc(sizeof(int), 16);
CHECK_ALIGNMENT(mem, 16);
util_aligned_free(mem);
int *mem = (int *)util_aligned_malloc(sizeof(int), 16);
CHECK_ALIGNMENT(mem, 16);
util_aligned_free(mem);
}
/* On Apple we currently only support 16 bytes alignment. */
#ifndef __APPLE__
TEST(util_aligned_malloc, aligned_malloc_32)
{
int *mem = (int*)util_aligned_malloc(sizeof(int), 32);
CHECK_ALIGNMENT(mem, 32);
util_aligned_free(mem);
int *mem = (int *)util_aligned_malloc(sizeof(int), 32);
CHECK_ALIGNMENT(mem, 32);
util_aligned_free(mem);
}
#endif /* __APPLE__ */
#endif /* __APPLE__ */
CCL_NAMESPACE_END