Fix clang-tidy warning after upgrading to clang-tidy-15

This commit is contained in:
Bartek Kryza
2023-03-02 00:33:28 +01:00
parent 884e021b9a
commit 464d80eca3
25 changed files with 114 additions and 78 deletions

View File

@@ -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())) {

View File

@@ -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;

View File

@@ -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);

View File

@@ -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);