[libc-commits] [libc] [bazel] add missing header to alloc-checker for bazel clib build (PR #173400)

via libc-commits libc-commits at lists.llvm.org
Tue Dec 23 09:29:59 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 origin/main HEAD --extensions h -- libc/src/__support/alloc-checker.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/src/__support/alloc-checker.h b/libc/src/__support/alloc-checker.h
index a59f9ee34..0c4c22edf 100644
--- a/libc/src/__support/alloc-checker.h
+++ b/libc/src/__support/alloc-checker.h
@@ -11,10 +11,10 @@
 
 #include "hdr/func/aligned_alloc.h"
 #include "hdr/func/malloc.h"
+#include "src/__support/CPP/new.h"
 #include "src/__support/common.h"
 #include "src/__support/macros/config.h"
 #include "src/__support/macros/properties/os.h"
-#include "src/__support/CPP/new.h"
 
 namespace LIBC_NAMESPACE_DECL {
 

``````````

</details>


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


More information about the libc-commits mailing list