[libc-commits] [libc] [libc] Make struct ifreq compatible with linux/if.h (PR #225793)

via libc-commits libc-commits at lists.llvm.org
Thu Sep 24 06:12:55 PDT 2026


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 origin/main HEAD --extensions cpp,h -- libc/include/llvm-libc-types/linux/struct_ifmap.h libc/include/llvm-libc-types/linux/struct_ifreq.h libc/test/include/net/linux/linux_if_helper.cpp libc/test/include/net/linux/net_if_and_linux_if_test.cpp libc/include/llvm-libc-types/struct_ifreq.h --diff_from_common_commit
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

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

``````````diff
diff --git a/libc/test/include/net/linux/net_if_and_linux_if_test.cpp b/libc/test/include/net/linux/net_if_and_linux_if_test.cpp
index 327cc3752..1e29ad07e 100644
--- a/libc/test/include/net/linux/net_if_and_linux_if_test.cpp
+++ b/libc/test/include/net/linux/net_if_and_linux_if_test.cpp
@@ -19,8 +19,8 @@
 // reordering these.
 #include <linux/if.h>
 
-#include <stddef.h>
 #include "test/UnitTest/Test.h"
+#include <stddef.h>
 
 extern const size_t LINUX_IFMAP_SIZE;
 extern const size_t LINUX_IFMAP_ALIGN;

``````````

</details>


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


More information about the libc-commits mailing list