Fixed clang-tidy warnings
This commit is contained in:
@@ -138,7 +138,7 @@ bool class_::template_specialization_found() const
|
|||||||
|
|
||||||
std::optional<std::string> class_::doxygen_link() const
|
std::optional<std::string> class_::doxygen_link() const
|
||||||
{
|
{
|
||||||
auto type = is_struct() ? "struct" : "class";
|
const auto *type = is_struct() ? "struct" : "class";
|
||||||
|
|
||||||
auto name = name_and_ns();
|
auto name = name_and_ns();
|
||||||
util::replace_all(name, "_", "__");
|
util::replace_all(name, "_", "__");
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ public:
|
|||||||
class_element(
|
class_element(
|
||||||
common::model::access_t scope, std::string name, std::string type);
|
common::model::access_t scope, std::string name, std::string type);
|
||||||
|
|
||||||
virtual ~class_element() = default;
|
~class_element() override = default;
|
||||||
|
|
||||||
common::model::access_t access() const;
|
common::model::access_t access() const;
|
||||||
std::string name() const;
|
std::string name() const;
|
||||||
|
|||||||
@@ -70,9 +70,9 @@ std::string concept_::full_name(bool relative) const
|
|||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
void concept_::add_parameter(method_parameter mp)
|
void concept_::add_parameter(const method_parameter &mp)
|
||||||
{
|
{
|
||||||
requires_parameters_.emplace_back(std::move(mp));
|
requires_parameters_.emplace_back(mp);
|
||||||
}
|
}
|
||||||
|
|
||||||
const std::vector<method_parameter> &concept_::requires_parameters() const
|
const std::vector<method_parameter> &concept_::requires_parameters() const
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ public:
|
|||||||
|
|
||||||
std::string full_name_no_ns() const override;
|
std::string full_name_no_ns() const override;
|
||||||
|
|
||||||
void add_parameter(method_parameter mp);
|
void add_parameter(const method_parameter &mp);
|
||||||
|
|
||||||
const std::vector<method_parameter> &requires_parameters() const;
|
const std::vector<method_parameter> &requires_parameters() const;
|
||||||
|
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ public:
|
|||||||
method_parameter(
|
method_parameter(
|
||||||
std::string type, std::string name, std::string default_value = {});
|
std::string type, std::string name, std::string default_value = {});
|
||||||
|
|
||||||
virtual ~method_parameter() = default;
|
~method_parameter() override = default;
|
||||||
|
|
||||||
void set_type(const std::string &type);
|
void set_type(const std::string &type);
|
||||||
std::string type() const;
|
std::string type() const;
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ public:
|
|||||||
|
|
||||||
diagram_element();
|
diagram_element();
|
||||||
|
|
||||||
virtual ~diagram_element() = default;
|
~diagram_element() override = default;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Returns diagram element id.
|
* @brief Returns diagram element id.
|
||||||
|
|||||||
@@ -251,7 +251,7 @@ tvl::value_t namespace_filter::match(const diagram &d, const element &e) const
|
|||||||
if (is_inclusive)
|
if (is_inclusive)
|
||||||
return e_ns.starts_with(nsit_ns) ||
|
return e_ns.starts_with(nsit_ns) ||
|
||||||
nsit_ns.starts_with(e_ns) || e_ns == nsit_ns;
|
nsit_ns.starts_with(e_ns) || e_ns == nsit_ns;
|
||||||
else
|
|
||||||
return e_ns.starts_with(nsit_ns) || e_ns == nsit_ns;
|
return e_ns.starts_with(nsit_ns) || e_ns == nsit_ns;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ public:
|
|||||||
std::string multiplicity_source = "",
|
std::string multiplicity_source = "",
|
||||||
std::string multiplicity_destination = "");
|
std::string multiplicity_destination = "");
|
||||||
|
|
||||||
virtual ~relationship() = default;
|
~relationship() override = default;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the type of relatinoship.
|
* Set the type of relatinoship.
|
||||||
|
|||||||
Reference in New Issue
Block a user