Skip to content

Commit dff42d6

Browse files
Fix clang-tidy on NotifierWakeGuard RAII helpers.
Delete move operations to satisfy cppcoreguidelines-special-member-functions and mark signal() const. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent c49d925 commit dff42d6

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/extension/IOController_Posix.ipp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,10 @@ namespace extension {
4141

4242
NotifierWakeGuard(const NotifierWakeGuard&) = delete;
4343
NotifierWakeGuard& operator=(const NotifierWakeGuard&) = delete;
44+
NotifierWakeGuard(NotifierWakeGuard&&) = delete;
45+
NotifierWakeGuard& operator=(NotifierWakeGuard&&) = delete;
4446

45-
void signal() {
47+
void signal() const {
4648
uint8_t val = 1;
4749
if (::write(notifier_.send, &val, sizeof(val)) < 0) {
4850
throw std::system_error(network_errno,

0 commit comments

Comments
 (0)