diff options
author | Martin Braun <martin.braun@ettus.com> | 2021-01-08 09:33:36 +0100 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2021-03-04 08:07:26 -0600 |
commit | 107a49c0c236940da7d3bd0f57da4bc1e2a34cb4 (patch) | |
tree | fdeaad56030a02948377c45838dab97beb7a5c84 /host/tests/constrained_device_args_test.cpp | |
parent | 7d5e48032baa62cbe7467833b9e057900602f4b9 (diff) | |
download | uhd-107a49c0c236940da7d3bd0f57da4bc1e2a34cb4.tar.gz uhd-107a49c0c236940da7d3bd0f57da4bc1e2a34cb4.tar.bz2 uhd-107a49c0c236940da7d3bd0f57da4bc1e2a34cb4.zip |
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
Diffstat (limited to 'host/tests/constrained_device_args_test.cpp')
-rw-r--r-- | host/tests/constrained_device_args_test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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()]); |