[libc-commits] [libc] [libc] Fix non-relative includes of __llvm-libc-common.h (PR #209412)

via libc-commits libc-commits at lists.llvm.org
Tue Jul 14 02:30:53 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 h -- libc/include/llvm-libc-macros/gpu/signal-macros.h libc/include/llvm-libc-macros/linux/signal-macros.h libc/include/llvm-libc-macros/netinet-in-macros.h libc/include/llvm-libc-types/__futex_word.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/include/llvm-libc-macros/netinet-in-macros.h b/libc/include/llvm-libc-macros/netinet-in-macros.h
index 10a563d21..9664d5126 100644
--- a/libc/include/llvm-libc-macros/netinet-in-macros.h
+++ b/libc/include/llvm-libc-macros/netinet-in-macros.h
@@ -9,8 +9,8 @@
 #ifndef LLVM_LIBC_MACROS_NETINET_IN_MACROS_H
 #define LLVM_LIBC_MACROS_NETINET_IN_MACROS_H
 
-#include "../llvm-libc-types/in_addr_t.h"
 #include "../__llvm-libc-common.h"
+#include "../llvm-libc-types/in_addr_t.h"
 
 #define IPPROTO_IP 0
 #define IPPROTO_ICMP 1

``````````

</details>


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


More information about the libc-commits mailing list