repo: Clang-format LVL source files using Google
Switch clang-format standard from the LLVM style to the
Google style for more consistency.
Change-Id: I247c4abc275d7873a91522e1e234198adaa24033
diff --git a/tests/test_common.h b/tests/test_common.h
index 87d334d..446e5eb 100644
--- a/tests/test_common.h
+++ b/tests/test_common.h
@@ -64,8 +64,8 @@
static inline const char *vk_result_string(VkResult err) {
switch (err) {
-#define STR(r) \
- case r: \
+#define STR(r) \
+ case r: \
return #r
STR(VK_SUCCESS);
STR(VK_NOT_READY);
@@ -81,8 +81,8 @@
STR(VK_ERROR_MEMORY_MAP_FAILED);
STR(VK_ERROR_INCOMPATIBLE_DRIVER);
#undef STR
- default:
- return "UNKNOWN_RESULT";
+ default:
+ return "UNKNOWN_RESULT";
}
}
@@ -122,17 +122,17 @@
}
static inline void test_platform_thread_cond_broadcast(test_platform_thread_cond *pCond) { pthread_cond_broadcast(pCond); }
-#elif defined(_WIN32) // defined(__linux__)
+#elif defined(_WIN32) // defined(__linux__)
// Threads:
typedef HANDLE test_platform_thread;
static inline int test_platform_thread_create(test_platform_thread *thread, void *(*func)(void *), void *data) {
DWORD threadID;
- *thread = CreateThread(NULL, // default security attributes
- 0, // use default stack size
+ *thread = CreateThread(NULL, // default security attributes
+ 0, // use default stack size
(LPTHREAD_START_ROUTINE)func,
- data, // thread function argument
- 0, // use default creation flags
- &threadID); // returns thread identifier
+ data, // thread function argument
+ 0, // use default creation flags
+ &threadID); // returns thread identifier
return (*thread != NULL);
}
static inline int test_platform_thread_join(test_platform_thread thread, void **retval) {
@@ -155,7 +155,7 @@
SleepConditionVariableCS(pCond, pMutex, INFINITE);
}
static void test_platform_thread_cond_broadcast(test_platform_thread_cond *pCond) { WakeAllConditionVariable(pCond); }
-#else // defined(_WIN32)
+#else // defined(_WIN32)
#error The "test_common.h" file must be modified for this OS.
@@ -166,6 +166,6 @@
// NOTE: Other OS-specific changes are also needed for this OS. Search for
// files with "WIN32" in it, as a quick way to find files that must be changed.
-#endif // defined(_WIN32)
+#endif // defined(_WIN32)
-#endif // TEST_COMMON_H
+#endif // TEST_COMMON_H