aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/property_tree.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/property_tree.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/property_tree.cpp')
-rw-r--r--host/lib/property_tree.cpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/host/lib/property_tree.cpp b/host/lib/property_tree.cpp
index 405c2ac6b..53268efd3 100644
--- a/host/lib/property_tree.cpp
+++ b/host/lib/property_tree.cpp
@@ -76,7 +76,7 @@ public:
_guts = std::make_shared<tree_guts_type>();
}
- sptr subtree(const fs_path& path_) const
+ sptr subtree(const fs_path& path_) const override
{
const fs_path path = _root / path_;
boost::mutex::scoped_lock lock(_guts->mutex);
@@ -86,7 +86,7 @@ public:
return sptr(subtree);
}
- void remove(const fs_path& path_)
+ void remove(const fs_path& path_) override
{
const fs_path path = _root / path_;
boost::mutex::scoped_lock lock(_guts->mutex);
@@ -104,7 +104,7 @@ public:
parent->pop(fs_path(path.leaf()));
}
- bool exists(const fs_path& path_) const
+ bool exists(const fs_path& path_) const override
{
const fs_path path = _root / path_;
boost::mutex::scoped_lock lock(_guts->mutex);
@@ -118,7 +118,7 @@ public:
return true;
}
- std::vector<std::string> list(const fs_path& path_) const
+ std::vector<std::string> list(const fs_path& path_) const override
{
const fs_path path = _root / path_;
boost::mutex::scoped_lock lock(_guts->mutex);
@@ -133,7 +133,7 @@ public:
return node->keys();
}
- std::shared_ptr<void> _pop(const fs_path& path_)
+ std::shared_ptr<void> _pop(const fs_path& path_) override
{
const fs_path path = _root / path_;
boost::mutex::scoped_lock lock(_guts->mutex);
@@ -156,8 +156,7 @@ public:
return prop;
}
- void _create(const fs_path& path_,
- const std::shared_ptr<void>& prop)
+ void _create(const fs_path& path_, const std::shared_ptr<void>& prop) override
{
const fs_path path = _root / path_;
boost::mutex::scoped_lock lock(_guts->mutex);
@@ -174,7 +173,7 @@ public:
node->prop = prop;
}
- std::shared_ptr<void>& _access(const fs_path& path_) const
+ std::shared_ptr<void>& _access(const fs_path& path_) const override
{
const fs_path path = _root / path_;
boost::mutex::scoped_lock lock(_guts->mutex);