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/include/uhdlib/usrp/cores/i2c_core_100_wb32.hpp | 2 +- host/lib/include/uhdlib/usrp/cores/i2c_core_200.hpp | 2 +- host/lib/include/uhdlib/usrp/cores/radio_ctrl_core_3000.hpp | 6 +++--- host/lib/include/uhdlib/usrp/cores/spi_core_3000.hpp | 2 +- host/lib/include/uhdlib/usrp/cores/user_settings_core_3000.hpp | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) (limited to 'host/lib/include/uhdlib/usrp/cores') diff --git a/host/lib/include/uhdlib/usrp/cores/i2c_core_100_wb32.hpp b/host/lib/include/uhdlib/usrp/cores/i2c_core_100_wb32.hpp index e38f73127..08c77e282 100644 --- a/host/lib/include/uhdlib/usrp/cores/i2c_core_100_wb32.hpp +++ b/host/lib/include/uhdlib/usrp/cores/i2c_core_100_wb32.hpp @@ -18,7 +18,7 @@ class i2c_core_100_wb32 : uhd::noncopyable, public uhd::i2c_iface public: typedef std::shared_ptr sptr; - virtual ~i2c_core_100_wb32(void) = 0; + ~i2c_core_100_wb32(void) override = 0; //! makes a new i2c core from iface and slave base static sptr make(uhd::wb_iface::sptr iface, const size_t base); diff --git a/host/lib/include/uhdlib/usrp/cores/i2c_core_200.hpp b/host/lib/include/uhdlib/usrp/cores/i2c_core_200.hpp index 4b7353812..980b8997f 100644 --- a/host/lib/include/uhdlib/usrp/cores/i2c_core_200.hpp +++ b/host/lib/include/uhdlib/usrp/cores/i2c_core_200.hpp @@ -19,7 +19,7 @@ class i2c_core_200 : uhd::noncopyable, public uhd::i2c_iface public: typedef std::shared_ptr sptr; - virtual ~i2c_core_200(void) = 0; + ~i2c_core_200(void) override = 0; //! makes a new i2c core from iface and slave base static sptr make(uhd::wb_iface::sptr iface, const size_t base, const size_t readback); diff --git a/host/lib/include/uhdlib/usrp/cores/radio_ctrl_core_3000.hpp b/host/lib/include/uhdlib/usrp/cores/radio_ctrl_core_3000.hpp index 0b5ba6a6f..c24ee4524 100644 --- a/host/lib/include/uhdlib/usrp/cores/radio_ctrl_core_3000.hpp +++ b/host/lib/include/uhdlib/usrp/cores/radio_ctrl_core_3000.hpp @@ -23,7 +23,7 @@ class radio_ctrl_core_3000 : public uhd::timed_wb_iface public: typedef std::shared_ptr sptr; - virtual ~radio_ctrl_core_3000(void) = 0; + ~radio_ctrl_core_3000(void) override = 0; //! Make a new control object static sptr make(const bool big_endian, @@ -39,10 +39,10 @@ public: virtual void push_response(const uint32_t* buff) = 0; //! Set the command time that will activate - virtual void set_time(const uhd::time_spec_t& time) = 0; + void set_time(const uhd::time_spec_t& time) override = 0; //! Get the command time that will activate - virtual uhd::time_spec_t get_time(void) = 0; + uhd::time_spec_t get_time(void) override = 0; //! Set the tick rate (converting time into ticks) virtual void set_tick_rate(const double rate) = 0; diff --git a/host/lib/include/uhdlib/usrp/cores/spi_core_3000.hpp b/host/lib/include/uhdlib/usrp/cores/spi_core_3000.hpp index d08147407..a821ae602 100644 --- a/host/lib/include/uhdlib/usrp/cores/spi_core_3000.hpp +++ b/host/lib/include/uhdlib/usrp/cores/spi_core_3000.hpp @@ -21,7 +21,7 @@ public: using poke32_fn_t = std::function; using peek32_fn_t = std::function; - virtual ~spi_core_3000(void) = 0; + ~spi_core_3000(void) override = 0; //! makes a new spi core from iface and slave base static sptr make(uhd::wb_iface::sptr iface, const size_t base, const size_t readback); diff --git a/host/lib/include/uhdlib/usrp/cores/user_settings_core_3000.hpp b/host/lib/include/uhdlib/usrp/cores/user_settings_core_3000.hpp index 3f461ddb7..6e17e0b97 100644 --- a/host/lib/include/uhdlib/usrp/cores/user_settings_core_3000.hpp +++ b/host/lib/include/uhdlib/usrp/cores/user_settings_core_3000.hpp @@ -15,7 +15,7 @@ class user_settings_core_3000 : public uhd::wb_iface { public: - virtual ~user_settings_core_3000() {} + ~user_settings_core_3000() override {} static sptr make(wb_iface::sptr iface, const wb_addr_type sr_base_addr, -- cgit v1.2.3