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/fosphor_block_control.cpp | 58 ++++++++++++++++---------------- 1 file changed, 29 insertions(+), 29 deletions(-) (limited to 'host/lib/rfnoc/fosphor_block_control.cpp') diff --git a/host/lib/rfnoc/fosphor_block_control.cpp b/host/lib/rfnoc/fosphor_block_control.cpp index 6bf621982..9734c17d4 100644 --- a/host/lib/rfnoc/fosphor_block_control.cpp +++ b/host/lib/rfnoc/fosphor_block_control.cpp @@ -80,150 +80,150 @@ public: _register_props(); } - void set_enable_histogram(const bool enable_histogram) + void set_enable_histogram(const bool enable_histogram) override { set_property(PROP_KEY_ENABLE_HISTOGRAM, enable_histogram); } - bool get_enable_histogram() const + bool get_enable_histogram() const override { return _prop_enable_histogram.get(); } - void set_enable_waterfall(const bool enable_waterfall) + void set_enable_waterfall(const bool enable_waterfall) override { set_property(PROP_KEY_ENABLE_WATERFALL, enable_waterfall); } - bool get_enable_waterfall() const + bool get_enable_waterfall() const override { return _prop_enable_waterfall.get(); } - void clear_history() + void clear_history() override { set_property(PROP_KEY_CLEAR_HISTORY, true); } - void set_enable_dither(const bool enable_dither) + void set_enable_dither(const bool enable_dither) override { set_property(PROP_KEY_ENABLE_DITHER, enable_dither); } - bool get_enable_dither() const + bool get_enable_dither() const override { return _prop_enable_dither.get(); } - void set_enable_noise(const bool enable_noise) + void set_enable_noise(const bool enable_noise) override { set_property(PROP_KEY_ENABLE_NOISE, enable_noise); } - bool get_enable_noise() const + bool get_enable_noise() const override { return _prop_enable_noise.get(); } - void set_histogram_decimation(const uint16_t decimation) + void set_histogram_decimation(const uint16_t decimation) override { set_property(PROP_KEY_HIST_DECIMATION, decimation); } - uint16_t get_histogram_decimation() const + uint16_t get_histogram_decimation() const override { return _prop_hist_decimation.get(); } - void set_histogram_offset(const uint16_t offset) + void set_histogram_offset(const uint16_t offset) override { set_property(PROP_KEY_OFFSET, offset); } - uint16_t get_histogram_offset() const + uint16_t get_histogram_offset() const override { return _prop_offset.get(); } - void set_histogram_scale(const uint16_t scale) + void set_histogram_scale(const uint16_t scale) override { set_property(PROP_KEY_SCALE, scale); } - uint16_t get_histogram_scale() const + uint16_t get_histogram_scale() const override { return _prop_scale.get(); } - void set_histogram_rise_rate(const uint16_t rise_rate) + void set_histogram_rise_rate(const uint16_t rise_rate) override { set_property(PROP_KEY_RISE_TIME, rise_rate); } - uint16_t get_histogram_rise_rate() const + uint16_t get_histogram_rise_rate() const override { return _prop_trise.get(); } - void set_histogram_decay_rate(const uint16_t decay_rate) + void set_histogram_decay_rate(const uint16_t decay_rate) override { set_property(PROP_KEY_DECAY_TIME, decay_rate); } - uint16_t get_histogram_decay_rate() const + uint16_t get_histogram_decay_rate() const override { return _prop_tdecay.get(); } - void set_spectrum_alpha(const uint16_t alpha) + void set_spectrum_alpha(const uint16_t alpha) override { set_property(PROP_KEY_ALPHA, alpha); } - uint16_t get_spectrum_alpha() const + uint16_t get_spectrum_alpha() const override { return _prop_alpha.get(); } - void set_spectrum_max_hold_decay(const uint16_t epsilon) + void set_spectrum_max_hold_decay(const uint16_t epsilon) override { set_property(PROP_KEY_EPSILON, epsilon); } - uint16_t get_spectrum_max_hold_decay() const + uint16_t get_spectrum_max_hold_decay() const override { return _prop_epsilon.get(); } void set_waterfall_predivision( - const fosphor_waterfall_predivision_ratio waterfall_predivision) + const fosphor_waterfall_predivision_ratio waterfall_predivision) override { set_property( PROP_KEY_WF_PREDIVISION_RATIO, static_cast(waterfall_predivision)); } - fosphor_waterfall_predivision_ratio get_waterfall_predivision() const + fosphor_waterfall_predivision_ratio get_waterfall_predivision() const override { return static_cast( _prop_wf_prediv_ratio.get()); } - void set_waterfall_mode(const fosphor_waterfall_mode waterfall_mode) + void set_waterfall_mode(const fosphor_waterfall_mode waterfall_mode) override { set_property(PROP_KEY_WF_MODE, static_cast(waterfall_mode)); } - fosphor_waterfall_mode get_waterfall_mode() const + fosphor_waterfall_mode get_waterfall_mode() const override { return static_cast(_prop_wf_mode.get()); } - void set_waterfall_decimation(const uint16_t waterfall_decimation) + void set_waterfall_decimation(const uint16_t waterfall_decimation) override { set_property(PROP_KEY_WF_DECIMATION, waterfall_decimation); } - uint16_t get_waterfall_decimation() const + uint16_t get_waterfall_decimation() const override { return _prop_wf_decim.get(); } -- cgit v1.2.3