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/window_block_control.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'host/lib/rfnoc/window_block_control.cpp') diff --git a/host/lib/rfnoc/window_block_control.cpp b/host/lib/rfnoc/window_block_control.cpp index 1bd6a1295..5d3201838 100644 --- a/host/lib/rfnoc/window_block_control.cpp +++ b/host/lib/rfnoc/window_block_control.cpp @@ -32,12 +32,12 @@ public: _register_props(); } - size_t get_max_num_coefficients(const size_t chan) const + size_t get_max_num_coefficients(const size_t chan) const override { return _max_len.at(chan); } - void set_coefficients(const std::vector& coeffs, const size_t chan) + void set_coefficients(const std::vector& coeffs, const size_t chan) override { if (coeffs.size() > _max_len.at(chan)) { std::string error_msg = "Too many window coefficients specified (max " @@ -49,7 +49,7 @@ public: _program_coefficients(chan); } - std::vector get_coefficients(const size_t chan) const + std::vector get_coefficients(const size_t chan) const override { return _coeffs.at(chan); } -- cgit v1.2.3