[libc-commits] [libc] [libc] Refactored internal wcrtomb (PR #145945)
via libc-commits
libc-commits at lists.llvm.org
Thu Jun 26 10:57:54 PDT 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 HEAD~1 HEAD --extensions cpp,h -- libc/src/__support/wchar/wcrtomb.cpp libc/src/__support/wchar/wcrtomb.h libc/src/wchar/wcrtomb.cpp libc/src/wchar/wctomb.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libc/src/__support/wchar/wcrtomb.h b/libc/src/__support/wchar/wcrtomb.h
index b255fd41d..c76846357 100644
--- a/libc/src/__support/wchar/wcrtomb.h
+++ b/libc/src/__support/wchar/wcrtomb.h
@@ -19,11 +19,11 @@ namespace LIBC_NAMESPACE_DECL {
namespace internal {
struct wcrtomb_result {
- char mbs[4];
- size_t count = 0;
+ char mbs[4];
+ size_t count = 0;
};
-ErrorOr<wcrtomb_result> wcrtomb(wchar_t wc, mbstate* ps);
+ErrorOr<wcrtomb_result> wcrtomb(wchar_t wc, mbstate *ps);
} // namespace internal
} // namespace LIBC_NAMESPACE_DECL
``````````
</details>
https://github.com/llvm/llvm-project/pull/145945
More information about the libc-commits
mailing list