[libc-commits] [libc] [llvm] [libc] wcslcat implementation (PR #146588)
via libc-commits
libc-commits at lists.llvm.org
Tue Jul 1 11:29:10 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/wchar/wcslcat.cpp libc/src/wchar/wcslcat.h libc/test/src/wchar/wcslcat_test.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libc/src/wchar/wcslcat.cpp b/libc/src/wchar/wcslcat.cpp
index eff3974f8..aa8f7c040 100644
--- a/libc/src/wchar/wcslcat.cpp
+++ b/libc/src/wchar/wcslcat.cpp
@@ -29,7 +29,7 @@ LLVM_LIBC_FUNCTION(size_t, wcslcat,
for (; i < limit && src[i] != L'\0'; ++i) {
dst[dstlen + i] = src[i];
}
-
+
// appending null terminator if there is room
if (dstlen + i < dstlen + dstsize)
dst[dstlen + i] = L'\0';
``````````
</details>
https://github.com/llvm/llvm-project/pull/146588
More information about the libc-commits
mailing list