From 107a49c0c236940da7d3bd0f57da4bc1e2a34cb4 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Fri, 8 Jan 2021 09:33:36 +0100 Subject: host: Update code base using clang-tidy The checks from the new clang-tidy file are applied to the source tree using: $ find . -name "*.cpp" | sort -u | xargs \ --max-procs 8 --max-args 1 clang-tidy --format-style=file \ --fix -p /path/to/compile_commands.json --- host/lib/transport/inline_io_service.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'host/lib/transport/inline_io_service.cpp') diff --git a/host/lib/transport/inline_io_service.cpp b/host/lib/transport/inline_io_service.cpp index 8206c145f..11835b285 100644 --- a/host/lib/transport/inline_io_service.cpp +++ b/host/lib/transport/inline_io_service.cpp @@ -215,7 +215,7 @@ public: } } - frame_buff::uptr get_recv_buff(int32_t timeout_ms) + frame_buff::uptr get_recv_buff(int32_t timeout_ms) override { auto buff = _io_srv->recv(this, _data_link.get(), timeout_ms); if (buff) { @@ -225,7 +225,7 @@ public: return buff; } - void release_recv_buff(frame_buff::uptr buff) + void release_recv_buff(frame_buff::uptr buff) override { _fc_cb(frame_buff::uptr(std::move(buff)), _data_link.get(), _fc_link.get()); _num_frames_in_use--; @@ -271,7 +271,7 @@ public: } } - bool wait_for_dest_ready(size_t num_bytes, int32_t timeout_ms) + bool wait_for_dest_ready(size_t num_bytes, int32_t timeout_ms) override { if (!_recv_link) { // If there is no flow control link, then the destination must @@ -290,7 +290,7 @@ public: return true; } - frame_buff::uptr get_send_buff(int32_t timeout_ms) + frame_buff::uptr get_send_buff(int32_t timeout_ms) override { frame_buff::uptr buff = _send_link->get_send_buff(timeout_ms); if (buff) { @@ -301,7 +301,7 @@ public: return frame_buff::uptr(); } - void release_send_buff(frame_buff::uptr buff) + void release_send_buff(frame_buff::uptr buff) override { // Send the packet using callback _send_cb(std::move(buff), _send_link.get()); -- cgit v1.2.3