Fixed type aliases handling
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user