[libc-commits] [libc] [libc][cmake] reset COMPILE_DEFINITIONS (PR #77810)

via libc-commits libc-commits at lists.llvm.org
Thu Jan 11 10:03:08 PST 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 70cea91e0fc93db618069588e6a06314b2b0e2d3 e6a7d3b343f4c79fc1758817295ce4a0cc0b18ca -- libc/src/sys/mman/linux/mmap.cpp libc/src/sys/mman/mmap.h
``````````

</details>

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

``````````diff
diff --git a/libc/src/sys/mman/linux/mmap.cpp b/libc/src/sys/mman/linux/mmap.cpp
index 4cfed24b7b..2e4e15f278 100644
--- a/libc/src/sys/mman/linux/mmap.cpp
+++ b/libc/src/sys/mman/linux/mmap.cpp
@@ -11,8 +11,8 @@
 #include "src/__support/OSUtil/syscall.h" // For internal syscall function.
 #include "src/__support/common.h"
 
-#include "src/errno/libc_errno.h"
 #include "llvm-libc-macros/sys-mman-macros.h" // For MAP_FAILED.
+#include "src/errno/libc_errno.h"
 
 #include <linux/param.h> // For EXEC_PAGESIZE.
 #include <sys/syscall.h> // For syscall numbers.

``````````

</details>


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


More information about the libc-commits mailing list