From 668a04befdc4ec43b2a6e86992c672ef5f8408e0 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Tue, 9 Mar 2021 10:38:42 +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 Note: This is the same procedure as 107a49c0, but applied to all the new code since then. --- host/lib/usrp/usrp2/codec_ctrl.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'host/lib/usrp/usrp2/codec_ctrl.cpp') diff --git a/host/lib/usrp/usrp2/codec_ctrl.cpp b/host/lib/usrp/usrp2/codec_ctrl.cpp index 6fe91da9e..bf31daf18 100644 --- a/host/lib/usrp/usrp2/codec_ctrl.cpp +++ b/host/lib/usrp/usrp2/codec_ctrl.cpp @@ -96,7 +96,7 @@ public: } } - ~usrp2_codec_ctrl_impl(void) + ~usrp2_codec_ctrl_impl(void) override { UHD_SAFE_CALL( // power-down dac @@ -124,7 +124,7 @@ public: }) } - void set_tx_mod_mode(int mod_mode) + void set_tx_mod_mode(int mod_mode) override { // set the sign of the frequency shift _ad9777_regs.modulation_form = (mod_mode > 0) @@ -153,7 +153,7 @@ public: this->send_ad9777_reg(0x01); // set the register } - void set_rx_digital_gain(double gain) + void set_rx_digital_gain(double gain) override { // fine digital gain switch (_iface->get_rev()) { case usrp2_iface::USRP_N200: @@ -169,7 +169,7 @@ public: } } - void set_rx_digital_fine_gain(double gain) + void set_rx_digital_fine_gain(double gain) override { // gain correction switch (_iface->get_rev()) { case usrp2_iface::USRP_N200: @@ -185,7 +185,7 @@ public: } } - void set_rx_analog_gain(bool /*gain*/) + void set_rx_analog_gain(bool /*gain*/) override { // turns on/off analog 3.5dB preamp switch (_iface->get_rev()) { case usrp2_iface::USRP_N200: @@ -203,7 +203,7 @@ public: } } - size_t get_tx_interpolation() const + size_t get_tx_interpolation() const override { return 4; } -- cgit v1.2.3