Skip to content

Commit 85e6f1d

Browse files
committed
another attempt at fixing clang format issues
1 parent ee27797 commit 85e6f1d

File tree

4 files changed

+22
-8
lines changed

4 files changed

+22
-8
lines changed

tests/beman/execution/exec-general.test.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,10 @@ auto test_movable_value() -> void {
3737

3838
static_assert(not test_detail::movable_value<non_movable>);
3939
static_assert(not test_detail::movable_value<const non_copyable>);
40-
static_assert(not test_detail::movable_value<int[1]>); // NOLINT(hicpp-avoid-c-arrays)
41-
static_assert(not test_detail::movable_value<int (&)[1]>); // NOLINT(hicpp-avoid-c-arrays)
40+
// clang-format off
41+
static_assert(not test_detail::movable_value<int[1]>); // NOLINT(hicpp-avoid-c-arrays)
42+
static_assert(not test_detail::movable_value<int(&)[1]>); // NOLINT(hicpp-avoid-c-arrays)
43+
// clang-format on
4244
}
4345

4446
auto test_matching_sig() -> void {

tests/beman/execution/exec-set-error.test.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,14 @@ struct receiver {
2525
template <typename R>
2626
void test_callable() {
2727
static_assert(requires { test_std::set_error(std::declval<R>(), 42); });
28-
static_assert(requires { test_std::set_error(std::declval<R &&>(), 42); });
28+
// clang-format off
29+
static_assert(requires { test_std::set_error(std::declval<R&&>(), 42); });
30+
// clang-format on
2931

3032
static_assert(not requires { test_std::set_error(std::declval<const R>(), 42); });
31-
static_assert(not requires { test_std::set_error(std::declval<const R &&>(), 42); });
33+
// clang-format off
34+
static_assert(not requires { test_std::set_error(std::declval<const R&&>(), 42); });
35+
// clang-format on
3236
static_assert(not requires { test_std::set_error(std::declval<R&>(), 42); });
3337
static_assert(not requires { test_std::set_error(std::declval<const R&>(), 42); });
3438
static_assert(not requires { test_std::set_error(std::declval<volatile R&>(), 42); });

tests/beman/execution/exec-set-stopped.test.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,15 @@ template <typename R>
2020
auto test_callable() -> void {
2121
// can be called with non-const rvalue receiver
2222
static_assert(requires { test_std::set_stopped(std::declval<R>()); });
23-
static_assert(requires { test_std::set_stopped(std::declval<R &&>()); });
23+
// clang-format off
24+
static_assert(requires { test_std::set_stopped(std::declval<R&&>()); });
25+
// clang-format on
2426

2527
// cannot be called with const or lvalue receiver
2628
static_assert(not requires { test_std::set_stopped(std::declval<const R>()); });
27-
static_assert(not requires { test_std::set_stopped(std::declval<const R &&>()); });
29+
// clang-format off
30+
static_assert(not requires { test_std::set_stopped(std::declval<const R&&>()); });
31+
// clang-format on
2832
static_assert(not requires { test_std::set_stopped(std::declval<R&>()); });
2933
static_assert(not requires { test_std::set_stopped(std::declval<const R&>()); });
3034
static_assert(not requires { test_std::set_stopped(std::declval<volatile R&>()); });

tests/beman/execution/exec-set-value.test.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,15 @@ template <typename R, typename... Args>
3333
auto test_callable(Args&&... args) -> void {
3434
// can be called with non-const rvalue receiver
3535
static_assert(requires { test_std::set_value(std::declval<R>(), args...); });
36-
static_assert(requires { test_std::set_value(std::declval<R &&>(), args...); });
36+
// clang-format off
37+
static_assert(requires { test_std::set_value(std::declval<R&&>(), args...); });
38+
// clang-format on
3739

3840
// cannot be called with const or lvalue receiver
3941
static_assert(not requires { test_std::set_value(std::declval<const R>(), args...); });
40-
static_assert(not requires { test_std::set_value(std::declval<const R &&>(), args...); });
42+
// clang-format off
43+
static_assert(not requires { test_std::set_value(std::declval<const R&&>(), args...); });
44+
// clang-format on
4145
static_assert(not requires { test_std::set_value(std::declval<R&>(), args...); });
4246
static_assert(not requires { test_std::set_value(std::declval<const R&>(), args...); });
4347
static_assert(not requires { test_std::set_value(std::declval<volatile R&>(), args...); });

0 commit comments

Comments
 (0)