Skip to content

Commit b97283f

Browse files
author
Conor
committed
drop test form bench preset
1 parent ae134b9 commit b97283f

File tree

2 files changed

+5
-16
lines changed

2 files changed

+5
-16
lines changed

CMakeUserPresets.json

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,6 @@
3434
"execution": {
3535
"stopOnFailure": true
3636
}
37-
},
38-
{
39-
"name": "bench",
40-
"configurePreset": "bench",
41-
"output": {
42-
"outputOnFailure": true
43-
},
44-
"execution": {
45-
"stopOnFailure": true
46-
}
4737
}
4838
],
4939
"workflowPresets": [
@@ -76,10 +66,6 @@
7666
{
7767
"type": "build",
7868
"name": "bench"
79-
},
80-
{
81-
"type": "test",
82-
"name": "bench"
8369
}
8470
]
8571
}

src/core/promise.cxx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ struct task final : immovable, unique_promise<promise_type<T>> {};
5757

5858
// =============== Frame-mixin =============== //
5959

60+
[[nodiscard]]
6061
constexpr auto final_suspend(frame_type *frame) -> std::coroutine_handle<> {
6162

6263
// tmp
@@ -88,15 +89,17 @@ struct mixin_frame {
8889

8990
template <typename Self>
9091
requires (!std::is_const_v<Self>)
92+
[[nodiscard]]
9193
constexpr auto handle(this Self &self) LF_HOF(std::coroutine_handle<Self>::from_promise(self))
9294

95+
[[nodiscard]]
9396
constexpr auto self(this auto &&self) LF_HOF(LF_FWD(self).frame)
9497

9598
constexpr static auto initial_suspend() noexcept -> std::suspend_always { return {}; }
9699

97100
constexpr static auto final_suspend() noexcept -> final_awaitable { return {}; }
98101

99-
constexpr static auto unhandled_exception() noexcept -> void { std::terminate(); }
102+
constexpr static void unhandled_exception() noexcept { std::terminate(); }
100103
};
101104

102105
static_assert(std::is_empty_v<mixin_frame>);
@@ -110,7 +113,7 @@ struct promise_type<void> : mixin_frame {
110113

111114
constexpr auto get_return_object() -> task<void> { return {{}, {this, {}}}; }
112115

113-
constexpr static auto return_void() -> void {}
116+
constexpr static void return_void() {}
114117
};
115118

116119
static_assert(alignof(promise_type<void>) == alignof(frame_type));

0 commit comments

Comments
 (0)