[libcxx-commits] [libcxx] [libc++] Fix tests on musl. (PR #85085)

via libcxx-commits libcxx-commits at lists.llvm.org
Wed Mar 13 07:32:28 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 960b4aa6dab69125778f230c4c94f2d19c96cc87 911424fe06e682ec4df2f471243a899a91b8fbf5 -- libcxx/test/std/diagnostics/syserr/syserr.errcat/syserr.errcat.objects/generic_category.pass.cpp libcxx/test/std/diagnostics/syserr/syserr.errcat/syserr.errcat.objects/system_category.pass.cpp libcxx/test/std/localization/locale.categories/category.numeric/locale.nm.put/facet.num.put.members/put_long_double.pass.cpp
``````````

</details>

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

``````````diff
diff --git a/libcxx/test/std/localization/locale.categories/category.numeric/locale.nm.put/facet.num.put.members/put_long_double.pass.cpp b/libcxx/test/std/localization/locale.categories/category.numeric/locale.nm.put/facet.num.put.members/put_long_double.pass.cpp
index 215af3656b..0258ebf872 100644
--- a/libcxx/test/std/localization/locale.categories/category.numeric/locale.nm.put/facet.num.put.members/put_long_double.pass.cpp
+++ b/libcxx/test/std/localization/locale.categories/category.numeric/locale.nm.put/facet.num.put.members/put_long_double.pass.cpp
@@ -10747,9 +10747,8 @@ void test5()
       pnan_sign = "+";
     }
 
-    std::string nan_padding25 = std::string(25 - nan.length(), '*');
-    std::string pnan_padding25 = std::string(25 - nan.length()
-                                             - pnan_sign.length(), '*');
+    std::string nan_padding25  = std::string(25 - nan.length(), '*');
+    std::string pnan_padding25 = std::string(25 - nan.length() - pnan_sign.length(), '*');
 
     {
         long double v = std::nan("");

``````````

</details>


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


More information about the libcxx-commits mailing list