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
|
||||
{
|
||||
auto type = is_struct() ? "struct" : "class";
|
||||
const auto *type = is_struct() ? "struct" : "class";
|
||||
|
||||
auto name = name_and_ns();
|
||||
util::replace_all(name, "_", "__");
|
||||
|
||||
@@ -32,7 +32,7 @@ public:
|
||||
class_element(
|
||||
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;
|
||||
std::string name() const;
|
||||
|
||||
@@ -70,9 +70,9 @@ std::string concept_::full_name(bool relative) const
|
||||
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
|
||||
|
||||
@@ -53,7 +53,7 @@ public:
|
||||
|
||||
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;
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ public:
|
||||
method_parameter(
|
||||
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);
|
||||
std::string type() const;
|
||||
|
||||
Reference in New Issue
Block a user