aboutsummaryrefslogtreecommitdiffstats
path: root/host/tests/client_zero_test.cpp
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2021-01-08 09:33:36 +0100
committerAaron Rossetto <aaron.rossetto@ni.com>2021-03-04 08:07:26 -0600
commit107a49c0c236940da7d3bd0f57da4bc1e2a34cb4 (patch)
treefdeaad56030a02948377c45838dab97beb7a5c84 /host/tests/client_zero_test.cpp
parent7d5e48032baa62cbe7467833b9e057900602f4b9 (diff)
downloaduhd-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/client_zero_test.cpp')
-rw-r--r--host/tests/client_zero_test.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/host/tests/client_zero_test.cpp b/host/tests/client_zero_test.cpp
index 285757baf..dedf801d9 100644
--- a/host/tests/client_zero_test.cpp
+++ b/host/tests/client_zero_test.cpp
@@ -33,7 +33,7 @@ public:
read_memory[0x000C] = device_id | (DEVICE_TYPE << 16);
}
- virtual ~client_zero_test_iface() = default;
+ ~client_zero_test_iface() override = default;
/**************************************************************************
* Test API
@@ -76,7 +76,8 @@ public:
| NUM_STREAM_ENDPOINTS;
}
- void _poke_cb(uint32_t addr, uint32_t data, uhd::time_spec_t /*time*/, bool /*ack*/)
+ void _poke_cb(
+ uint32_t addr, uint32_t data, uhd::time_spec_t /*time*/, bool /*ack*/) override
{
if (addr < (1 + NUM_STREAM_ENDPOINTS) * SLOT_OFFSET
|| (addr % SLOT_OFFSET != 0 && addr % SLOT_OFFSET != 4)) {
@@ -103,7 +104,7 @@ public:
}
}
- void _peek_cb(uint32_t addr, time_spec_t /*time*/)
+ void _peek_cb(uint32_t addr, time_spec_t /*time*/) override
{
if (read_memory.count(addr) == 0) {
std::cout << "Bad peek32, addr=" << addr << std::endl;