diff options
author | Martin Braun <martin.braun@ettus.com> | 2021-01-08 09:33:36 +0100 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2021-03-04 08:07:26 -0600 |
commit | 107a49c0c236940da7d3bd0f57da4bc1e2a34cb4 (patch) | |
tree | fdeaad56030a02948377c45838dab97beb7a5c84 /host/lib/include/uhdlib/transport/dpdk_simple.hpp | |
parent | 7d5e48032baa62cbe7467833b9e057900602f4b9 (diff) | |
download | uhd-107a49c0c236940da7d3bd0f57da4bc1e2a34cb4.tar.gz uhd-107a49c0c236940da7d3bd0f57da4bc1e2a34cb4.tar.bz2 uhd-107a49c0c236940da7d3bd0f57da4bc1e2a34cb4.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
Diffstat (limited to 'host/lib/include/uhdlib/transport/dpdk_simple.hpp')
-rw-r--r-- | host/lib/include/uhdlib/transport/dpdk_simple.hpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/host/lib/include/uhdlib/transport/dpdk_simple.hpp b/host/lib/include/uhdlib/transport/dpdk_simple.hpp index 072edbf9f..229e6b0be 100644 --- a/host/lib/include/uhdlib/transport/dpdk_simple.hpp +++ b/host/lib/include/uhdlib/transport/dpdk_simple.hpp @@ -13,7 +13,7 @@ namespace uhd { namespace transport { class dpdk_simple : public udp_simple { public: - virtual ~dpdk_simple(void) = 0; + ~dpdk_simple(void) override = 0; static udp_simple::sptr make_connected( const std::string& addr, const std::string& port); @@ -27,7 +27,7 @@ public: * \param buff single asio buffer * \return the number of bytes sent */ - virtual size_t send(const boost::asio::const_buffer& buff) = 0; + size_t send(const boost::asio::const_buffer& buff) override = 0; /*! * Receive into the provided buffer. @@ -36,19 +36,19 @@ public: * \param timeout the timeout in seconds * \return the number of bytes received or zero on timeout */ - virtual size_t recv( - const boost::asio::mutable_buffer& buff, double timeout = 0.1) = 0; + size_t recv( + const boost::asio::mutable_buffer& buff, double timeout = 0.1) override = 0; /*! * Get the last IP address as seen by recv(). * Only use this with the broadcast socket. */ - virtual std::string get_recv_addr(void) = 0; + std::string get_recv_addr(void) override = 0; /*! * Get the IP address for the destination */ - virtual std::string get_send_addr(void) = 0; + std::string get_send_addr(void) override = 0; }; }} // namespace uhd::transport |