aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/experts/expert_container.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/experts/expert_container.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/experts/expert_container.cpp')
-rw-r--r--host/lib/experts/expert_container.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/host/lib/experts/expert_container.cpp b/host/lib/experts/expert_container.cpp
index 6f7dc2c78..0658e9fa3 100644
--- a/host/lib/experts/expert_container.cpp
+++ b/host/lib/experts/expert_container.cpp
@@ -67,17 +67,17 @@ private: // Visitor class for cycle detection algorithm
public:
expert_container_impl(const std::string& name) : _name(name) {}
- ~expert_container_impl()
+ ~expert_container_impl() override
{
clear();
}
- const std::string& get_name() const
+ const std::string& get_name() const override
{
return _name;
}
- void resolve_all(bool force = false)
+ void resolve_all(bool force = false) override
{
boost::lock_guard<boost::recursive_mutex> resolve_lock(_resolve_mutex);
boost::lock_guard<boost::mutex> lock(_mutex);
@@ -86,7 +86,7 @@ public:
_resolve_helper("", "", force);
}
- void resolve_from(const std::string&)
+ void resolve_from(const std::string&) override
{
boost::lock_guard<boost::recursive_mutex> resolve_lock(_resolve_mutex);
boost::lock_guard<boost::mutex> lock(_mutex);
@@ -96,7 +96,7 @@ public:
_resolve_helper("", "", false);
}
- void resolve_to(const std::string&)
+ void resolve_to(const std::string&) override
{
boost::lock_guard<boost::recursive_mutex> resolve_lock(_resolve_mutex);
boost::lock_guard<boost::mutex> lock(_mutex);
@@ -106,7 +106,7 @@ public:
_resolve_helper("", "", false);
}
- dag_vertex_t& retrieve(const std::string& name) const
+ dag_vertex_t& retrieve(const std::string& name) const override
{
try {
expert_graph_t::vertex_descriptor vertex = _lookup_vertex(name);
@@ -116,17 +116,17 @@ public:
}
}
- const dag_vertex_t& lookup(const std::string& name) const
+ const dag_vertex_t& lookup(const std::string& name) const override
{
return retrieve(name);
}
- const node_retriever_t& node_retriever() const
+ const node_retriever_t& node_retriever() const override
{
return *this;
}
- std::string to_dot() const
+ std::string to_dot() const override
{
static const std::string DATA_SHAPE("ellipse");
static const std::string WORKER_SHAPE("box");
@@ -161,7 +161,7 @@ public:
return dot_str;
}
- void debug_audit() const
+ void debug_audit() const override
{
#ifdef UHD_EXPERT_LOGGING
EX_LOG(0, "debug_audit()");
@@ -271,13 +271,13 @@ public:
#endif
}
- inline boost::recursive_mutex& resolve_mutex()
+ inline boost::recursive_mutex& resolve_mutex() override
{
return _resolve_mutex;
}
protected:
- void add_data_node(dag_vertex_t* data_node, auto_resolve_mode_t resolve_mode)
+ void add_data_node(dag_vertex_t* data_node, auto_resolve_mode_t resolve_mode) override
{
boost::lock_guard<boost::mutex> lock(_mutex);
@@ -328,7 +328,7 @@ protected:
}
}
- void add_worker(worker_node_t* worker)
+ void add_worker(worker_node_t* worker) override
{
boost::lock_guard<boost::mutex> lock(_mutex);
@@ -398,7 +398,7 @@ protected:
}
}
- void clear()
+ void clear() override
{
boost::lock_guard<boost::mutex> lock(_mutex);
EX_LOG(0, "clear()");