diff --git a/src/sequence_diagram/visitor/translation_unit_visitor.cc b/src/sequence_diagram/visitor/translation_unit_visitor.cc index 1db588550..34a530684 100644 --- a/src/sequence_diagram/visitor/translation_unit_visitor.cc +++ b/src/sequence_diagram/visitor/translation_unit_visitor.cc @@ -1708,7 +1708,9 @@ translation_unit_visitor::create_class_model(clang::CXXRecordDecl *cls) .get_participant( *id_opt); - assert(parent_class); + if (!parent_class) { + return {}; + } c.set_namespace(ns); if (cls->getNameAsString().empty()) { diff --git a/uml/class/filter_visitor_hierarchy_class.yml b/uml/class/filter_visitor_hierarchy_class.yml index 1985e5c17..2da58f4aa 100644 --- a/uml/class/filter_visitor_hierarchy_class.yml +++ b/uml/class/filter_visitor_hierarchy_class.yml @@ -3,7 +3,7 @@ title: Diagram filter visitor class hierarchy include_relations_also_as_members: true generate_packages: true glob: - - src/common/model/diagram_filter.cc + - src/common/model/filters/*.cc include: namespaces: - clanguml