diff options
| author | Martin Braun <martin.braun@ettus.com> | 2021-03-09 10:38:42 +0100 | 
|---|---|---|
| committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2021-03-17 15:44:05 -0500 | 
| commit | 668a04befdc4ec43b2a6e86992c672ef5f8408e0 (patch) | |
| tree | 67734ba32968831a5b4ea8dd59b7b2ab52e68d01 /host/lib/transport/dpdk_simple.cpp | |
| parent | 19f3c1203a42d9da3d7cb16c881fe2bbdc5ec0ce (diff) | |
| download | uhd-668a04befdc4ec43b2a6e86992c672ef5f8408e0.tar.gz uhd-668a04befdc4ec43b2a6e86992c672ef5f8408e0.tar.bz2 uhd-668a04befdc4ec43b2a6e86992c672ef5f8408e0.zip  | |
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.
Diffstat (limited to 'host/lib/transport/dpdk_simple.cpp')
| -rw-r--r-- | host/lib/transport/dpdk_simple.cpp | 10 | 
1 files changed, 5 insertions, 5 deletions
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<uint8_t*>(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());      }  | 
