Reformat the codebase with the clang-format 18.

This commit is contained in:
guangli-dai 2025-06-13 12:31:12 -07:00 committed by Guangli Dai
parent a952a3b8b0
commit 6200e8987f
346 changed files with 18286 additions and 17770 deletions

View file

@ -14,7 +14,7 @@ void
thd_join(thd_t thd, void **ret) {
if (WaitForSingleObject(thd, INFINITE) == WAIT_OBJECT_0 && ret) {
DWORD exit_code;
GetExitCodeThread(thd, (LPDWORD) &exit_code);
GetExitCodeThread(thd, (LPDWORD)&exit_code);
*ret = (void *)(uintptr_t)exit_code;
}
}
@ -44,7 +44,8 @@ thd_setname(const char *name) {
bool
thd_has_setname(void) {
#if defined(JEMALLOC_HAVE_PTHREAD_SETNAME_NP) || defined(JEMALLOC_HAVE_PTHREAD_SET_NAME_NP)
#if defined(JEMALLOC_HAVE_PTHREAD_SETNAME_NP) \
|| defined(JEMALLOC_HAVE_PTHREAD_SET_NAME_NP)
return true;
#else
return false;