Reformat all cpp and h files.
This applies git cl format --full to all ANGLE sources.
Bug: angleproject:2986
Change-Id: Ib504e618c1589332a37e97696cdc3515d739308f
Reviewed-on: https://chromium-review.googlesource.com/c/1351367
Reviewed-by: Jamie Madill <jmadill@chromium.org>
Reviewed-by: Shahbaz Youssefi <syoussefi@chromium.org>
diff --git a/src/compiler/translator/PoolAlloc.cpp b/src/compiler/translator/PoolAlloc.cpp
index 0f1cd8b..5ad10c2 100644
--- a/src/compiler/translator/PoolAlloc.cpp
+++ b/src/compiler/translator/PoolAlloc.cpp
@@ -6,9 +6,9 @@
#include "compiler/translator/PoolAlloc.h"
+#include <assert.h>
#include <stdint.h>
#include <stdio.h>
-#include <assert.h>
#include "common/angleutils.h"
#include "common/debug.h"
@@ -69,7 +69,7 @@
alignment &= ~(minAlign - 1);
if (alignment < minAlign)
alignment = minAlign;
- size_t a = 1;
+ size_t a = 1;
while (a < alignment)
a <<= 1;
alignment = a;
@@ -161,13 +161,13 @@
char assertMsg[80];
// We don't print the assert message. It's here just to be helpful.
-#if defined(_MSC_VER)
+# if defined(_MSC_VER)
snprintf(assertMsg, sizeof(assertMsg),
"PoolAlloc: Damage %s %Iu byte allocation at 0x%p\n", locText, size, data());
-#else
+# else
snprintf(assertMsg, sizeof(assertMsg),
"PoolAlloc: Damage %s %zu byte allocation at 0x%p\n", locText, size, data());
-#endif
+# endif
assert(0 && "PoolAlloc: Damage in guard block");
}
}
@@ -333,7 +333,7 @@
mStack.back().push_back(alloc);
intptr_t intAlloc = reinterpret_cast<intptr_t>(alloc);
- intAlloc = (intAlloc + alignmentMask) & ~alignmentMask;
+ intAlloc = (intAlloc + alignmentMask) & ~alignmentMask;
return reinterpret_cast<void *>(intAlloc);
#endif
}