[libc-commits] [libc] [libc] wmemchr implementation (PR #142640)
via libc-commits
libc-commits at lists.llvm.org
Tue Jun 3 15:11:52 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 h,cpp -- libc/src/wchar/wmemchr.cpp libc/src/wchar/wmemchr.h libc/test/src/wchar/wmemchr_test.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libc/src/wchar/wmemchr.cpp b/libc/src/wchar/wmemchr.cpp
index 3dafe5120..8a1cd6ce4 100644
--- a/libc/src/wchar/wmemchr.cpp
+++ b/libc/src/wchar/wmemchr.cpp
@@ -18,7 +18,7 @@ namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(const wchar_t *, wmemchr,
(const wchar_t *s, wchar_t c, size_t n)) {
size_t i = 0;
- for (; i < n; ++i)
+ for (; i < n; ++i)
if (s[i] == c)
return (s + i);
return nullptr;
``````````
</details>
https://github.com/llvm/llvm-project/pull/142640
More information about the libc-commits
mailing list