poll: instruct the linter on libuv callbacks

This commit is contained in:
Michele Caini 2024-10-23 08:29:27 +02:00
parent 34d2b00441
commit 2b4a0f158b

View File

@ -12,6 +12,7 @@ UVW_INLINE poll_handle::poll_handle(loop::token token, std::shared_ptr<loop> ref
UVW_INLINE poll_handle::poll_handle(loop::token token, std::shared_ptr<loop> 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<poll_handle *>(hndl->data)); status) {
poll.publish(error_event{status});