aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp_clock/multi_usrp_clock.cpp
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2021-01-08 09:33:36 +0100
committerAaron Rossetto <aaron.rossetto@ni.com>2021-03-04 08:07:26 -0600
commit107a49c0c236940da7d3bd0f57da4bc1e2a34cb4 (patch)
treefdeaad56030a02948377c45838dab97beb7a5c84 /host/lib/usrp_clock/multi_usrp_clock.cpp
parent7d5e48032baa62cbe7467833b9e057900602f4b9 (diff)
downloaduhd-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/lib/usrp_clock/multi_usrp_clock.cpp')
-rw-r--r--host/lib/usrp_clock/multi_usrp_clock.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/host/lib/usrp_clock/multi_usrp_clock.cpp b/host/lib/usrp_clock/multi_usrp_clock.cpp
index c4bf081cc..e227f345b 100644
--- a/host/lib/usrp_clock/multi_usrp_clock.cpp
+++ b/host/lib/usrp_clock/multi_usrp_clock.cpp
@@ -28,12 +28,12 @@ public:
_tree = _dev->get_tree();
}
- device::sptr get_device(void)
+ device::sptr get_device(void) override
{
return _dev;
}
- std::string get_pp_string(void)
+ std::string get_pp_string(void) override
{
std::string buff = str(boost::format("%s USRP Clock Device\n")
% ((get_num_boards() > 1) ? "Multi" : "Single"));
@@ -46,26 +46,26 @@ public:
return buff;
}
- size_t get_num_boards(void)
+ size_t get_num_boards(void) override
{
return _tree->list("/mboards").size();
}
- uint32_t get_time(size_t board)
+ uint32_t get_time(size_t board) override
{
std::string board_str = str(boost::format("/mboards/%d") % board);
return _tree->access<uint32_t>(board_str / "time").get();
}
- sensor_value_t get_sensor(const std::string& name, size_t board)
+ sensor_value_t get_sensor(const std::string& name, size_t board) override
{
std::string board_str = str(boost::format("/mboards/%d") % board);
return _tree->access<sensor_value_t>(board_str / "sensors" / name).get();
}
- std::vector<std::string> get_sensor_names(size_t board)
+ std::vector<std::string> get_sensor_names(size_t board) override
{
std::string board_str = str(boost::format("/mboards/%d") % board);