Skip to content

Commit f42e2ef

Browse files
committed
fix static check
1 parent ba4dabd commit f42e2ef

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

include/condy/detail/context.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
namespace condy {
1212

13-
class Ring;
1413
class Runtime;
1514

1615
namespace detail {

include/condy/detail/coro.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ class BindAllocator : public Promise {
7171
Allocator &alloc = *std::launder(
7272
reinterpret_cast<Allocator *>(mem + allocator_offset));
7373
Allocator alloc_copy = std::move(alloc);
74+
// NOLINTNEXTLINE(bugprone-use-after-move)
7475
alloc.~Allocator();
7576
alloc_copy.deallocate(mem, total_size);
7677
}
@@ -350,6 +351,7 @@ class Promise
350351
public:
351352
void return_value(T value) { value_ = std::move(value); }
352353

354+
// NOLINTNEXTLINE(bugprone-unchecked-optional-access)
353355
T value() { return std::move(value_.value()); }
354356

355357
private:

0 commit comments

Comments
 (0)