[libc-commits] [libc] [libc] Add proxy header for hsearch_data (PR #241000)
via libc-commits
libc-commits at lists.llvm.org
Tue Nov 10 12:53:19 PST 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/hdr/types/hsearch_data.h libc/include/llvm-libc-types/struct_hsearch_data.h libc/src/search/hcreate_r.h libc/src/search/hdestroy_r.h libc/src/search/hsearch_r.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/search/hcreate_r.h b/libc/src/search/hcreate_r.h
index 29171a25a..5b86d5a6b 100644
--- a/libc/src/search/hcreate_r.h
+++ b/libc/src/search/hcreate_r.h
@@ -10,8 +10,8 @@
#define LLVM_LIBC_SRC_SEARCH_HCREATE_R_H
#include "hdr/types/hsearch_data.h"
-#include <stddef.h> // size_t
#include "src/__support/macros/config.h"
+#include <stddef.h> // size_t
namespace LIBC_NAMESPACE_DECL {
int hcreate_r(size_t capacity, struct hsearch_data *htab);
``````````
</details>
https://github.com/llvm/llvm-project/pull/241000
More information about the libc-commits
mailing list