[libc-commits] [libc] [libc] implement unistd/getentropy (PR #122692)

via libc-commits libc-commits at lists.llvm.org
Mon Jan 13 23:48:24 PST 2025


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 acbd822879f7727127926c25e1b47f5017f962c5 7dc7442e59b46b380e4d58b632f1c30ec6a15f68 --extensions cpp,h -- libc/src/unistd/getentropy.h libc/src/unistd/linux/getentropy.cpp libc/test/src/unistd/getentropy_test.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/libc/src/unistd/linux/getentropy.cpp b/libc/src/unistd/linux/getentropy.cpp
index 976a5ef0fc..168a119773 100644
--- a/libc/src/unistd/linux/getentropy.cpp
+++ b/libc/src/unistd/linux/getentropy.cpp
@@ -8,9 +8,9 @@
 
 #include "src/unistd/getentropy.h"
 #include "hdr/errno_macros.h"
+#include "src/__support/OSUtil/syscall.h"
 #include "src/__support/common.h"
 #include "src/errno/libc_errno.h"
-#include "src/__support/OSUtil/syscall.h"
 
 #include <sys/syscall.h> // For syscall numbers.
 

``````````

</details>


https://github.com/llvm/llvm-project/pull/122692


More information about the libc-commits mailing list