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/include/uhdlib/usrp/constrained_device_args.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'host/lib/include/uhdlib/usrp/constrained_device_args.hpp') diff --git a/host/lib/include/uhdlib/usrp/constrained_device_args.hpp b/host/lib/include/uhdlib/usrp/constrained_device_args.hpp index 7588462c4..bdd492752 100644 --- a/host/lib/include/uhdlib/usrp/constrained_device_args.hpp +++ b/host/lib/include/uhdlib/usrp/constrained_device_args.hpp @@ -79,7 +79,7 @@ public: // Types { set(str_rep); } - inline virtual std::string to_string() const + inline std::string to_string() const override { return key() + "=" + get(); } @@ -125,7 +125,7 @@ public: // Types % ex.what())); } } - inline virtual std::string to_string() const + inline std::string to_string() const override { return key() + "=" + std::to_string(get()); } @@ -179,7 +179,7 @@ public: // Types set(_str_values.at(str_rep_lowercase)); } - inline virtual std::string to_string() const + inline std::string to_string() const override { std::string repr; for (const auto& value : _str_values) { @@ -232,7 +232,7 @@ public: // Types % key() % ex.what())); } } - inline virtual std::string to_string() const + inline std::string to_string() const override { return key() + "=" + (get() ? "true" : "false"); } -- cgit v1.2.3