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/lib/rfnoc/register_iface_holder.cpp | 32 ++++++++++++++++++-------------- 1 file changed, 18 insertions(+), 14 deletions(-) (limited to 'host/lib/rfnoc/register_iface_holder.cpp') diff --git a/host/lib/rfnoc/register_iface_holder.cpp b/host/lib/rfnoc/register_iface_holder.cpp index d3a0e82e5..ba50cc784 100644 --- a/host/lib/rfnoc/register_iface_holder.cpp +++ b/host/lib/rfnoc/register_iface_holder.cpp @@ -19,68 +19,72 @@ using namespace uhd::rfnoc; class invalid_register_iface : public register_iface { public: - ~invalid_register_iface() = default; + ~invalid_register_iface() override = default; - void poke32(uint32_t, uint32_t, uhd::time_spec_t, bool) + void poke32(uint32_t, uint32_t, uhd::time_spec_t, bool) override { UHD_LOG_ERROR("REGS", "Attempting to use invalidated register interface!"); } - void multi_poke32( - const std::vector, const std::vector, uhd::time_spec_t, bool) + void multi_poke32(const std::vector, + const std::vector, + uhd::time_spec_t, + bool) override { UHD_LOG_ERROR("REGS", "Attempting to use invalidated register interface!"); } - void block_poke32(uint32_t, const std::vector, uhd::time_spec_t, bool) + void block_poke32( + uint32_t, const std::vector, uhd::time_spec_t, bool) override { UHD_LOG_ERROR("REGS", "Attempting to use invalidated register interface!"); } - uint32_t peek32(uint32_t, uhd::time_spec_t) + uint32_t peek32(uint32_t, uhd::time_spec_t) override { UHD_LOG_ERROR("REGS", "Attempting to use invalidated register interface!"); return {}; } - std::vector block_peek32(uint32_t, size_t, uhd::time_spec_t) + std::vector block_peek32(uint32_t, size_t, uhd::time_spec_t) override { UHD_LOG_ERROR("REGS", "Attempting to use invalidated register interface!"); return {}; } - void poll32(uint32_t, uint32_t, uint32_t, uhd::time_spec_t, uhd::time_spec_t, bool) + void poll32( + uint32_t, uint32_t, uint32_t, uhd::time_spec_t, uhd::time_spec_t, bool) override { UHD_LOG_ERROR("REGS", "Attempting to use invalidated register interface!"); } - void sleep(uhd::time_spec_t, bool) + void sleep(uhd::time_spec_t, bool) override { UHD_LOG_ERROR("REGS", "Attempting to use invalidated register interface!"); } - void register_async_msg_handler(async_msg_callback_t) + void register_async_msg_handler(async_msg_callback_t) override { UHD_LOG_ERROR("REGS", "Attempting to use invalidated register interface!"); } - void register_async_msg_validator(async_msg_validator_t) + void register_async_msg_validator(async_msg_validator_t) override { UHD_LOG_ERROR("REGS", "Attempting to use invalidated register interface!"); } - void set_policy(const std::string&, const uhd::device_addr_t&) + void set_policy(const std::string&, const uhd::device_addr_t&) override { UHD_LOG_ERROR("REGS", "Attempting to use invalidated register interface!"); } - uint16_t get_src_epid() const + uint16_t get_src_epid() const override { UHD_LOG_ERROR("REGS", "Attempting to use invalidated register interface!"); return 0; } - uint16_t get_port_num() const + uint16_t get_port_num() const override { UHD_LOG_ERROR("REGS", "Attempting to use invalidated register interface!"); return 0; -- cgit v1.2.3