[libcxx-commits] [libcxx] [libc++] Move more tests into better places (PR #148419)
via libcxx-commits
libcxx-commits at lists.llvm.org
Sun Jul 13 02:29:06 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 -- libcxx/test/extensions/libcxx/locale.convenience/conversions/conversions.string/ctor_move.pass.cpp libcxx/test/std/numerics/c.math/fdelayed-template-parsing.pass.cpp libcxx/test/std/numerics/rand/rand.req/rand.req.urng/valid_int_type.verify.cpp libcxx/test/std/numerics/rand/rand.req/rand.req.urng/valid_real_type.verify.cpp libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.create/shared_ptr_array.pass.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libcxx/test/extensions/libcxx/locale.convenience/conversions/conversions.string/ctor_move.pass.cpp b/libcxx/test/extensions/libcxx/locale.convenience/conversions/conversions.string/ctor_move.pass.cpp
index a536e6e9b..3e9eb939f 100644
--- a/libcxx/test/extensions/libcxx/locale.convenience/conversions/conversions.string/ctor_move.pass.cpp
+++ b/libcxx/test/extensions/libcxx/locale.convenience/conversions/conversions.string/ctor_move.pass.cpp
@@ -24,19 +24,18 @@
#include "test_macros.h"
-int main(int, char**)
-{
- typedef std::codecvt_utf8<wchar_t> Codecvt;
- typedef std::wstring_convert<Codecvt> Myconv;
- // create a converter and perform some conversions to generate some
- // interesting state.
- Myconv myconv;
- myconv.from_bytes("\xEF\xBF\xBD");
- const auto old_converted = myconv.converted();
- assert(myconv.converted() == 3);
- // move construct a new converter and make sure the state is the same.
- Myconv myconv2(std::move(myconv));
- assert(myconv2.converted() == old_converted);
+int main(int, char**) {
+ typedef std::codecvt_utf8<wchar_t> Codecvt;
+ typedef std::wstring_convert<Codecvt> Myconv;
+ // create a converter and perform some conversions to generate some
+ // interesting state.
+ Myconv myconv;
+ myconv.from_bytes("\xEF\xBF\xBD");
+ const auto old_converted = myconv.converted();
+ assert(myconv.converted() == 3);
+ // move construct a new converter and make sure the state is the same.
+ Myconv myconv2(std::move(myconv));
+ assert(myconv2.converted() == old_converted);
return 0;
}
diff --git a/libcxx/test/std/numerics/rand/rand.req/rand.req.urng/valid_int_type.verify.cpp b/libcxx/test/std/numerics/rand/rand.req/rand.req.urng/valid_int_type.verify.cpp
index eada7422b..e81814d9a 100644
--- a/libcxx/test/std/numerics/rand/rand.req/rand.req.urng/valid_int_type.verify.cpp
+++ b/libcxx/test/std/numerics/rand/rand.req/rand.req.urng/valid_int_type.verify.cpp
@@ -10,8 +10,7 @@
#include <random>
-void test()
-{
+void test() {
{
std::binomial_distribution<bool> baddist; //expected-error@*:* {{IntType must be a supported integer type}}
std::binomial_distribution<int> okdist;
``````````
</details>
https://github.com/llvm/llvm-project/pull/148419
More information about the libcxx-commits
mailing list