Fixed type aliases handling

This commit is contained in:
Bartek Kryza
2024-01-25 00:33:08 +01:00
parent 9376b856cc
commit 757b4d0947
9 changed files with 52 additions and 30 deletions

View File

@@ -932,14 +932,12 @@ bool is_struct(const clang::NamedDecl *decl)
if (decl == nullptr)
return false;
if (const clang::CXXRecordDecl *record =
clang::dyn_cast<clang::CXXRecordDecl>(decl);
if (const auto *record = clang::dyn_cast<clang::CXXRecordDecl>(decl);
record) {
return record->isStruct();
}
if (const clang::TagDecl *tag = clang::dyn_cast<clang::TagDecl>(decl);
tag) {
if (const auto *tag = clang::dyn_cast<clang::TagDecl>(decl); tag) {
return tag->isStruct();
}

View File

@@ -29,7 +29,7 @@ class template_element : public element, public template_trait {
public:
using element::element;
virtual ~template_element() = default;
~template_element() override = default;
/**
* Whether or not the class is a template.
@@ -76,4 +76,4 @@ private:
bool is_template_{false};
};
}
} // namespace clanguml::common::model

View File

@@ -25,7 +25,6 @@
namespace clanguml::common::visitor {
// using class_diagram::model::class_;
using common::model::namespace_;
using common::model::relationship_t;
using common::model::template_parameter;
@@ -540,4 +539,4 @@ private:
on_argument_base_found_t on_argument_base_found_;
};
} // namespace clanguml::class_diagram::visitor
} // namespace clanguml::common::visitor