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/tests/constrained_device_args_test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'host/tests/constrained_device_args_test.cpp') diff --git a/host/tests/constrained_device_args_test.cpp b/host/tests/constrained_device_args_test.cpp index 2fe7e5c16..fc234ae01 100644 --- a/host/tests/constrained_device_args_test.cpp +++ b/host/tests/constrained_device_args_test.cpp @@ -48,14 +48,14 @@ public: return _enum_arg.get(); } - inline virtual std::string to_string() const + inline std::string to_string() const override { return _double_arg.to_string() + ", " + _size_t_arg.to_string() + ", " + _bool_arg.to_string() + ", " + _enum_arg.to_string(); } private: - virtual void _parse(const uhd::device_addr_t& dev_args) + void _parse(const uhd::device_addr_t& dev_args) override { if (dev_args.has_key(_double_arg.key())) _double_arg.parse(dev_args[_double_arg.key()]); -- cgit v1.2.3