[libc-commits] [libc] [libc][POSIX][pthreads] implement pthread_condattr_t functions (PR #88987)
via libc-commits
libc-commits at lists.llvm.org
Tue Apr 16 14:13:24 PDT 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff 6d234638f90bd422078c93745bdee73d6de201bf f467c8405c0528ad77880f9adc7c0fb756d2a5e1 -- libc/include/llvm-libc-types/pthread_condattr_t.h libc/src/pthread/pthread_condattr_destroy.cpp libc/src/pthread/pthread_condattr_destroy.h libc/src/pthread/pthread_condattr_getclock.cpp libc/src/pthread/pthread_condattr_getclock.h libc/src/pthread/pthread_condattr_getpshared.cpp libc/src/pthread/pthread_condattr_getpshared.h libc/src/pthread/pthread_condattr_init.cpp libc/src/pthread/pthread_condattr_init.h libc/src/pthread/pthread_condattr_setclock.cpp libc/src/pthread/pthread_condattr_setclock.h libc/src/pthread/pthread_condattr_setpshared.cpp libc/src/pthread/pthread_condattr_setpshared.h libc/test/src/pthread/pthread_condattr_test.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libc/test/src/pthread/pthread_condattr_test.cpp b/libc/test/src/pthread/pthread_condattr_test.cpp
index ebaea3ca2f..58784e454c 100644
--- a/libc/test/src/pthread/pthread_condattr_test.cpp
+++ b/libc/test/src/pthread/pthread_condattr_test.cpp
@@ -1,4 +1,5 @@
-//===-- Unittests for pthread_condattr_t --------------------------------------===//
+//===-- Unittests for pthread_condattr_t
+//--------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
@@ -39,7 +40,8 @@ TEST(LlvmLibcPThreadCondAttrTest, GetDefaultValues) {
ASSERT_EQ(pthread_condattr_init(&cond), 0);
ASSERT_EQ(pthread_condattr_getclock(&cond, &clock), CLOCK_REALTIME);
- ASSERT_EQ(pthread_condattr_getpshared(&cond, &pshared), PTHREAD_PROCESS_PRIVATE);
+ ASSERT_EQ(pthread_condattr_getpshared(&cond, &pshared),
+ PTHREAD_PROCESS_PRIVATE);
ASSERT_EQ(pthread_condattr_destroy(&cond), 0);
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/88987
More information about the libc-commits
mailing list