From 107a49c0c236940da7d3bd0f57da4bc1e2a34cb4 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Fri, 8 Jan 2021 09:33:36 +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 --- host/tests/rfnoc_block_tests/switchboard_block_test.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'host/tests/rfnoc_block_tests/switchboard_block_test.cpp') diff --git a/host/tests/rfnoc_block_tests/switchboard_block_test.cpp b/host/tests/rfnoc_block_tests/switchboard_block_test.cpp index 693923693..3cc9fd147 100644 --- a/host/tests/rfnoc_block_tests/switchboard_block_test.cpp +++ b/host/tests/rfnoc_block_tests/switchboard_block_test.cpp @@ -41,8 +41,8 @@ public: input_select.push_back(0); } - virtual 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 { size_t chan = addr / switchboard_block_control::REG_BLOCK_SIZE; size_t offset = addr % switchboard_block_control::REG_BLOCK_SIZE; @@ -55,7 +55,7 @@ public: } } - virtual void _peek_cb(uint32_t addr, uhd::time_spec_t /*time*/) + void _peek_cb(uint32_t addr, uhd::time_spec_t /*time*/) override { size_t chan = addr / switchboard_block_control::REG_BLOCK_SIZE; size_t offset = addr % switchboard_block_control::REG_BLOCK_SIZE; -- cgit v1.2.3