[libcxx-commits] [libcxx] [libc++] Don't give functions C linkage (PR #94102)

via libcxx-commits libcxx-commits at lists.llvm.org
Sat Jun 1 00:23:04 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 daaaf4e9009edf38dfc3d01d3c30de0827ffd1b5 54981430ac7957b886c3eaedc2cb1149ef1ef506 -- libcxx/include/__config libcxx/include/__locale_dir/locale_base_api/android.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/openbsd.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/__support/xlocale/__strtonum_fallback.h b/libcxx/include/__support/xlocale/__strtonum_fallback.h
index a3e083faf3..5dd59500c5 100644
--- a/libcxx/include/__support/xlocale/__strtonum_fallback.h
+++ b/libcxx/include/__support/xlocale/__strtonum_fallback.h
@@ -38,8 +38,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/94102


More information about the libcxx-commits mailing list