[libcxx-commits] [libcxx] draft: [libcxx] avoid the "_l" calls on musl platforms (PR #128936)

via libcxx-commits libcxx-commits at lists.llvm.org
Wed Feb 26 11:24:34 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 cfdeca394e8c212bf0ff38e5bb8a8ed36954132c b8ab545151c678b16d5029005ac5b1b341310c27 --extensions h -- libcxx/include/__locale_dir/support/linux.h
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/libcxx/include/__locale_dir/support/linux.h b/libcxx/include/__locale_dir/support/linux.h
index 72c8d9e832..7787a4c0d7 100644
--- a/libcxx/include/__locale_dir/support/linux.h
+++ b/libcxx/include/__locale_dir/support/linux.h
@@ -105,7 +105,7 @@ inline _LIBCPP_HIDE_FROM_ABI long long __strtoll(const char* __nptr, char** __en
 inline _LIBCPP_HIDE_FROM_ABI unsigned long long
 __strtoull(const char* __nptr, char** __endptr, int __base, __locale_t __loc) {
 #if !defined(_LIBCPP_HAS_MUSL_LIBC)
-   return ::strtoull_l(__nptr, __endptr, __base, __loc);
+  return ::strtoull_l(__nptr, __endptr, __base, __loc);
 #else
   return ::strtoull(__nptr, __endptr, __base:);
 #endif

``````````

</details>


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


More information about the libcxx-commits mailing list