[libcxx-commits] [libcxx] [libc++][concepts] P2404R3: Move-only types for equality_comparable_with, totally_ordered_with, and three_way_comparable_with (PR #99420)
via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Jun 9 08:10:31 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 ,h,cpp -- libcxx/include/__concepts/comparison_common_type.h libcxx/include/__compare/three_way_comparable.h libcxx/include/__concepts/equality_comparable.h libcxx/include/version libcxx/test/std/algorithms/alg.sorting/alg.sort/partial.sort.copy/ranges_partial_sort_copy.pass.cpp libcxx/test/std/concepts/concepts.compare/concept.equalitycomparable/equality_comparable_with.compile.pass.cpp libcxx/test/std/language.support/cmp/cmp.concept/three_way_comparable_with.compile.pass.cpp libcxx/test/std/language.support/support.limits/support.limits.general/concepts.version.compile.pass.cpp libcxx/test/std/language.support/support.limits/support.limits.general/version.version.compile.pass.cpp libcxx/test/std/utilities/function.objects/range.cmp/equal_to.pass.cpp libcxx/test/std/utilities/function.objects/range.cmp/greater.pass.cpp libcxx/test/std/utilities/function.objects/range.cmp/greater_equal.pass.cpp libcxx/test/std/utilities/function.objects/range.cmp/less.pass.cpp libcxx/test/std/utilities/function.objects/range.cmp/less_equal.pass.cpp libcxx/test/std/utilities/function.objects/range.cmp/not_equal_to.pass.cpp libcxx/test/support/compare_types.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libcxx/test/std/language.support/cmp/cmp.concept/three_way_comparable_with.compile.pass.cpp b/libcxx/test/std/language.support/cmp/cmp.concept/three_way_comparable_with.compile.pass.cpp
index 15fdb6b44..01dfc2a27 100644
--- a/libcxx/test/std/language.support/cmp/cmp.concept/three_way_comparable_with.compile.pass.cpp
+++ b/libcxx/test/std/language.support/cmp/cmp.concept/three_way_comparable_with.compile.pass.cpp
@@ -235,7 +235,6 @@ struct MoveOnlyIntComparable {
friend auto operator<=>(MoveOnlyIntComparable const&, MoveOnlyIntComparable const&) = default;
};
-
// P2404
static_assert(check_three_way_comparable_with<MoveOnlyIntComparable, int>());
``````````
</details>
https://github.com/llvm/llvm-project/pull/99420
More information about the libcxx-commits
mailing list