From 2b4a0f158bd472c52da64acc38b3ca4424842a0d Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Wed, 23 Oct 2024 08:29:27 +0200 Subject: [PATCH] poll: instruct the linter on libuv callbacks --- src/uvw/poll.ipp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/uvw/poll.ipp b/src/uvw/poll.ipp index 421335c3..4c04465e 100644 --- a/src/uvw/poll.ipp +++ b/src/uvw/poll.ipp @@ -12,6 +12,7 @@ UVW_INLINE poll_handle::poll_handle(loop::token token, std::shared_ptr ref UVW_INLINE poll_handle::poll_handle(loop::token token, std::shared_ptr ref, os_socket_handle sock) : handle{token, std::move(ref)}, tag{SOCKET}, socket{sock} {} +// NOLINTNEXTLINE(bugprone-easily-swappable-parameters) UVW_INLINE void poll_handle::start_callback(uv_poll_t *hndl, int status, int events) { if(poll_handle &poll = *(static_cast(hndl->data)); status) { poll.publish(error_event{status});