aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/rfnoc/register_iface_holder.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/lib/rfnoc/register_iface_holder.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/lib/rfnoc/register_iface_holder.cpp')
-rw-r--r--host/lib/rfnoc/register_iface_holder.cpp32
1 files changed, 18 insertions, 14 deletions
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<uint32_t>, const std::vector<uint32_t>, uhd::time_spec_t, bool)
+ void multi_poke32(const std::vector<uint32_t>,
+ const std::vector<uint32_t>,
+ uhd::time_spec_t,
+ bool) override
{
UHD_LOG_ERROR("REGS", "Attempting to use invalidated register interface!");
}
- void block_poke32(uint32_t, const std::vector<uint32_t>, uhd::time_spec_t, bool)
+ void block_poke32(
+ uint32_t, const std::vector<uint32_t>, 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<uint32_t> block_peek32(uint32_t, size_t, uhd::time_spec_t)
+ std::vector<uint32_t> 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;