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/convert/convert_unpack_sc12.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'host/lib/convert/convert_unpack_sc12.cpp') diff --git a/host/lib/convert/convert_unpack_sc12.cpp b/host/lib/convert/convert_unpack_sc12.cpp index 9ec43a5c3..6d8a48876 100644 --- a/host/lib/convert/convert_unpack_sc12.cpp +++ b/host/lib/convert/convert_unpack_sc12.cpp @@ -17,7 +17,7 @@ struct convert_sc12_item32_1_to_star_1 : public converter // NOP } - void set_scalar(const double scalar) + void set_scalar(const double scalar) override { const int unpack_growth = 16; _scalar = scalar / unpack_growth; @@ -31,8 +31,9 @@ struct convert_sc12_item32_1_to_star_1 : public converter * converter must be aware where it is supposed to start within 3 lines. * */ - void operator()( - const input_type& inputs, const output_type& outputs, const size_t nsamps) + void operator()(const input_type& inputs, + const output_type& outputs, + const size_t nsamps) override { /* * Looking at the line structure above we can identify 4 cases. -- cgit v1.2.3