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/tests/common/mock_zero_copy.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/tests/common/mock_zero_copy.hpp')
-rw-r--r-- | host/tests/common/mock_zero_copy.hpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/host/tests/common/mock_zero_copy.hpp b/host/tests/common/mock_zero_copy.hpp index 038a8e73d..9feb4e287 100644 --- a/host/tests/common/mock_zero_copy.hpp +++ b/host/tests/common/mock_zero_copy.hpp @@ -35,7 +35,7 @@ static constexpr size_t DEFAULT_RECV_FRAME_SIZE = 1024; class mock_msb : public uhd::transport::managed_send_buffer { public: - void release(void) + void release(void) override { /* nop */ } @@ -53,7 +53,7 @@ private: class mock_mrb : public uhd::transport::managed_recv_buffer { public: - void release(void) + void release(void) override { /* nop */ } @@ -76,22 +76,22 @@ public: size_t recv_frame_size = DEFAULT_RECV_FRAME_SIZE, size_t send_frame_size = DEFAULT_SEND_FRAME_SIZE); - uhd::transport::managed_recv_buffer::sptr get_recv_buff(double); - uhd::transport::managed_send_buffer::sptr get_send_buff(double); + uhd::transport::managed_recv_buffer::sptr get_recv_buff(double) override; + uhd::transport::managed_send_buffer::sptr get_send_buff(double) override; - size_t get_num_recv_frames(void) const + size_t get_num_recv_frames(void) const override { return 1; } - size_t get_num_send_frames(void) const + size_t get_num_send_frames(void) const override { return 1; } - size_t get_recv_frame_size(void) const + size_t get_recv_frame_size(void) const override { return _recv_frame_size; } - size_t get_send_frame_size(void) const + size_t get_send_frame_size(void) const override { return _send_frame_size; } |