diff options
author | Martin Braun <martin.braun@ettus.com> | 2021-01-08 09:33:36 +0100 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2021-03-04 08:07:26 -0600 |
commit | 107a49c0c236940da7d3bd0f57da4bc1e2a34cb4 (patch) | |
tree | fdeaad56030a02948377c45838dab97beb7a5c84 /host/lib/cal/iq_cal.cpp | |
parent | 7d5e48032baa62cbe7467833b9e057900602f4b9 (diff) | |
download | uhd-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/cal/iq_cal.cpp')
-rw-r--r-- | host/lib/cal/iq_cal.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/host/lib/cal/iq_cal.cpp b/host/lib/cal/iq_cal.cpp index f5640b01e..f891f4f2c 100644 --- a/host/lib/cal/iq_cal.cpp +++ b/host/lib/cal/iq_cal.cpp @@ -34,31 +34,31 @@ public: { } - std::string get_name() const + std::string get_name() const override { return _name; } //! Return the name of this calibration table - std::string get_serial() const + std::string get_serial() const override { return _serial; } //! Timestamp of acquisition time - uint64_t get_timestamp() const + uint64_t get_timestamp() const override { return _timestamp; } - void set_interp_mode(const interp_mode interp) + void set_interp_mode(const interp_mode interp) override { UHD_ASSERT_THROW( interp == interp_mode::LINEAR || interp == interp_mode::NEAREST_NEIGHBOR); _interp = interp; } - std::complex<double> get_cal_coeff(const double freq) const + std::complex<double> get_cal_coeff(const double freq) const override { UHD_ASSERT_THROW(!_coeffs.empty()); // Find the first coefficient in the map that maps to a larger frequency @@ -95,13 +95,13 @@ public: void set_cal_coeff(const double freq, const std::complex<double> coeff, const double suppression_abs = 0, - const double suppression_delta = 0) + const double suppression_delta = 0) override { _coeffs[freq] = coeff; _supp[freq] = {suppression_abs, suppression_delta}; } - void clear() + void clear() override { _coeffs.clear(); _supp.clear(); @@ -110,7 +110,7 @@ public: /************************************************************************** * Container API (Serialization/Deserialization) *************************************************************************/ - std::vector<uint8_t> serialize() + std::vector<uint8_t> serialize() override { // This is a magic value to estimate the amount of space the builder will // have to reserve on top of the coeff data. @@ -151,7 +151,7 @@ public: // This will amend the existing table. If that's not desired, then it is // necessary to call clear() ahead of time. - void deserialize(const std::vector<uint8_t>& data) + void deserialize(const std::vector<uint8_t>& data) override { auto verifier = flatbuffers::Verifier(data.data(), data.size()); if (!VerifyIQCalCoeffsBuffer(verifier)) { |