From 668a04befdc4ec43b2a6e86992c672ef5f8408e0 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Tue, 9 Mar 2021 10:38:42 +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 Note: This is the same procedure as 107a49c0, but applied to all the new code since then. --- host/lib/transport/dpdk_simple.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'host/lib/transport/dpdk_simple.cpp') diff --git a/host/lib/transport/dpdk_simple.cpp b/host/lib/transport/dpdk_simple.cpp index d93d73b56..835885cba 100644 --- a/host/lib/transport/dpdk_simple.cpp +++ b/host/lib/transport/dpdk_simple.cpp @@ -74,7 +74,7 @@ public: UHD_LOG_TRACE("DPDK::SIMPLE", "Constructor complete"); } - ~dpdk_simple_impl(void) + ~dpdk_simple_impl(void) override { UHD_LOG_TRACE("DPDK::SIMPLE", "~dpdk_simple_impl(), DPDK port index " << _link->get_port()->get_port_id()); @@ -91,7 +91,7 @@ public: * \param length bytes of data to send * \return number of bytes sent (releases buffer if sent) */ - size_t send(const boost::asio::const_buffer& user_buff) + size_t send(const boost::asio::const_buffer& user_buff) override { // Extract buff and sanity check const size_t nbytes = boost::asio::buffer_size(user_buff); @@ -117,7 +117,7 @@ public: * \param timeout the timeout in seconds * \return the number of bytes received or zero on timeout */ - size_t recv(const boost::asio::mutable_buffer& user_buff, double timeout) + size_t recv(const boost::asio::mutable_buffer& user_buff, double timeout) override { size_t user_buff_size = boost::asio::buffer_size(user_buff); uint8_t* user_data = boost::asio::buffer_cast(user_buff); @@ -146,12 +146,12 @@ public: return copy_len; } - std::string get_recv_addr(void) + std::string get_recv_addr(void) override { return dpdk::ipv4_num_to_str(_last_recv_addr); } - std::string get_send_addr(void) + std::string get_send_addr(void) override { return dpdk::ipv4_num_to_str(_link->get_remote_ipv4()); } -- cgit v1.2.3