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/rfnoc/keep_one_in_n_block_control.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/rfnoc/keep_one_in_n_block_control.cpp')
-rw-r--r-- | host/lib/rfnoc/keep_one_in_n_block_control.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/host/lib/rfnoc/keep_one_in_n_block_control.cpp b/host/lib/rfnoc/keep_one_in_n_block_control.cpp index baec58fbf..da0dcda90 100644 --- a/host/lib/rfnoc/keep_one_in_n_block_control.cpp +++ b/host/lib/rfnoc/keep_one_in_n_block_control.cpp @@ -35,27 +35,27 @@ public: _register_props(); } - size_t get_max_n() const + size_t get_max_n() const override { return _max_n; } - void set_n(const size_t n, const size_t chan = 0) + void set_n(const size_t n, const size_t chan = 0) override { set_property<int>(PROP_KEY_N, static_cast<int>(n), chan); } - size_t get_n(const size_t chan = 0) const + size_t get_n(const size_t chan = 0) const override { return _n.at(chan).get(); } - void set_mode(const mode mode, const size_t chan = 0) + void set_mode(const mode mode, const size_t chan = 0) override { set_property<int>(PROP_KEY_MODE, static_cast<int>(mode), chan); } - mode get_mode(const size_t chan = 0) const + mode get_mode(const size_t chan = 0) const override { return static_cast<mode>(_mode.at(chan).get()); } |