[libcxx-commits] [libcxx] [libc++] Remove dead code from the locale base API and support code (PR #89070)

via libcxx-commits libcxx-commits at lists.llvm.org
Wed Apr 17 06:24:44 PDT 2024


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 fa61f062a515be92a98cac64a9193498918c1225 d0c9e4b5c54213677c569f1aa06fdbafc030a373 -- libcxx/include/__config libcxx/include/__locale_dir/locale_base_api.h libcxx/include/__locale_dir/locale_base_api/android.h libcxx/include/__locale_dir/locale_base_api/fuchsia.h libcxx/include/__locale_dir/locale_base_api/ibm.h libcxx/include/__locale_dir/locale_base_api/musl.h libcxx/include/__locale_dir/locale_base_api/newlib.h libcxx/include/__locale_dir/locale_base_api/openbsd.h libcxx/include/__locale_dir/locale_base_api/win32.h libcxx/include/__support/xlocale/__nop_locale_mgmt.h libcxx/include/__support/xlocale/__posix_l_fallback.h libcxx/include/__support/xlocale/__strtonum_fallback.h
``````````

</details>

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

``````````diff
diff --git a/libcxx/include/__locale_dir/locale_base_api/musl.h b/libcxx/include/__locale_dir/locale_base_api/musl.h
index 70fe9b0ffb..bf7b849d58 100644
--- a/libcxx/include/__locale_dir/locale_base_api/musl.h
+++ b/libcxx/include/__locale_dir/locale_base_api/musl.h
@@ -24,8 +24,7 @@ inline _LIBCPP_HIDE_FROM_ABI long long strtoll_l(const char* __nptr, char** __en
   return ::strtoll(__nptr, __endptr, __base);
 }
 
-inline _LIBCPP_HIDE_FROM_ABI unsigned long long
-strtoull_l(const char* __nptr, char** __endptr, int __base, locale_t) {
+inline _LIBCPP_HIDE_FROM_ABI unsigned long long strtoull_l(const char* __nptr, char** __endptr, int __base, locale_t) {
   return ::strtoull(__nptr, __endptr, __base);
 }
 

``````````

</details>


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


More information about the libcxx-commits mailing list