Fixed handling of nested anonymous arrays of structs

This commit is contained in:
Bartek Kryza
2024-06-01 14:16:05 +02:00
parent c9b3f92dbe
commit d599bb6715
4 changed files with 21 additions and 2 deletions

View File

@@ -1795,6 +1795,10 @@ void translation_unit_visitor::process_field(
relationship_hint = relationship_t::kAssociation;
field_type = field_type.getNonReferenceType();
}
else if (field_type->isArrayType()) {
relationship_hint = relationship_t::kAggregation;
field_type = field_type->getAsArrayTypeUnsafe()->getElementType();
}
else if (field_type->isRValueReferenceType()) {
field_type = field_type.getNonReferenceType();
}