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

View File

@@ -53,7 +53,7 @@
/* quiet unused define warnings */
#if defined(__KERNEL_SSE2__)
/* do nothing */
/* do nothing */
#endif
#include "kernel/kernel.h"
@@ -66,29 +66,27 @@ CCL_NAMESPACE_BEGIN
void kernel_const_copy(KernelGlobals *kg, const char *name, void *host, size_t size)
{
if(strcmp(name, "__data") == 0)
memcpy(&kg->__data, host, size);
else
assert(0);
if (strcmp(name, "__data") == 0)
memcpy(&kg->__data, host, size);
else
assert(0);
}
void kernel_tex_copy(KernelGlobals *kg,
const char *name,
void *mem,
size_t size)
void kernel_tex_copy(KernelGlobals *kg, const char *name, void *mem, size_t size)
{
if(0) {
}
if (0) {
}
#define KERNEL_TEX(type, tname) \
else if(strcmp(name, #tname) == 0) { \
kg->tname.data = (type*)mem; \
kg->tname.width = size; \
}
else if (strcmp(name, #tname) == 0) \
{ \
kg->tname.data = (type *)mem; \
kg->tname.width = size; \
}
#include "kernel/kernel_textures.h"
else {
assert(0);
}
else {
assert(0);
}
}
CCL_NAMESPACE_END