Fix clang-tidy warning after upgrading to clang-tidy-15
This commit is contained in:
@@ -126,7 +126,7 @@ int class_::calculate_template_specialization_match(
|
||||
{
|
||||
int res{};
|
||||
|
||||
std::string left = name_and_ns();
|
||||
const std::string left = name_and_ns();
|
||||
// TODO: handle variadic templates
|
||||
if ((name_and_ns() != full_name) ||
|
||||
(templates().size() != other.templates().size())) {
|
||||
|
||||
@@ -32,6 +32,8 @@ public:
|
||||
class_element(
|
||||
common::model::access_t scope, std::string name, std::string type);
|
||||
|
||||
virtual ~class_element() = default;
|
||||
|
||||
common::model::access_t access() const;
|
||||
std::string name() const;
|
||||
std::string type() const;
|
||||
|
||||
@@ -28,7 +28,7 @@ public:
|
||||
class_member(common::model::access_t access, const std::string &name,
|
||||
const std::string &type);
|
||||
|
||||
virtual ~class_member() = default;
|
||||
~class_member() override = default;
|
||||
|
||||
bool is_relationship() const;
|
||||
void is_relationship(bool is_relationship);
|
||||
|
||||
@@ -34,7 +34,7 @@ public:
|
||||
class_method(common::model::access_t access, const std::string &name,
|
||||
const std::string &type);
|
||||
|
||||
virtual ~class_method() = default;
|
||||
~class_method() override = default;
|
||||
|
||||
bool is_pure_virtual() const;
|
||||
void is_pure_virtual(bool is_pure_virtual);
|
||||
|
||||
Reference in New Issue
Block a user