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/rfnoc/keep_one_in_n_block_control.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'host/lib/rfnoc/keep_one_in_n_block_control.cpp') 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(PROP_KEY_N, static_cast(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(PROP_KEY_MODE, static_cast(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.at(chan).get()); } -- cgit v1.2.3