Unverified 提交 07ea35fe authored 作者: José Luis Millán's avatar José Luis Millán 提交者: GitHub

C++: Add NOLINT rules for unwanted changes (#1311)

上级 561a3415
...@@ -84,10 +84,8 @@ private: ...@@ -84,10 +84,8 @@ private:
/* Callbacks fired by UV events. */ /* Callbacks fired by UV events. */
public: public:
// NOLINTNEXTLINE(readability-convert-member-functions-to-static)
void OnUvRecvAlloc(size_t suggestedSize, uv_buf_t* buf); void OnUvRecvAlloc(size_t suggestedSize, uv_buf_t* buf);
void OnUvRecv(ssize_t nread, const uv_buf_t* buf, const struct sockaddr* addr, unsigned int flags); void OnUvRecv(ssize_t nread, const uv_buf_t* buf, const struct sockaddr* addr, unsigned int flags);
// NOLINTNEXTLINE(readability-convert-member-functions-to-static)
void OnUvSend(int status, UdpSocketHandle::onSendCallback* cb); void OnUvSend(int status, UdpSocketHandle::onSendCallback* cb);
/* Pure virtual methods that must be implemented by the subclass. */ /* Pure virtual methods that must be implemented by the subclass. */
......
...@@ -363,6 +363,7 @@ bool UdpSocketHandle::SetLocalAddress() ...@@ -363,6 +363,7 @@ bool UdpSocketHandle::SetLocalAddress()
return true; return true;
} }
// NOLINTNEXTLINE(readability-convert-member-functions-to-static)
inline void UdpSocketHandle::OnUvRecvAlloc(size_t /*suggestedSize*/, uv_buf_t* buf) inline void UdpSocketHandle::OnUvRecvAlloc(size_t /*suggestedSize*/, uv_buf_t* buf)
{ {
MS_TRACE(); MS_TRACE();
...@@ -408,6 +409,7 @@ inline void UdpSocketHandle::OnUvRecv( ...@@ -408,6 +409,7 @@ inline void UdpSocketHandle::OnUvRecv(
} }
} }
// NOLINTNEXTLINE(readability-convert-member-functions-to-static)
inline void UdpSocketHandle::OnUvSend(int status, UdpSocketHandle::onSendCallback* cb) inline void UdpSocketHandle::OnUvSend(int status, UdpSocketHandle::onSendCallback* cb)
{ {
MS_TRACE(); MS_TRACE();
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论