|
|
|
@ -751,14 +751,21 @@ void Checker::check_bitvector(const ToCheck & item)
|
|
|
|
|
|
|
|
|
|
void Checker::check_struct(const ToCheck & item)
|
|
|
|
|
{
|
|
|
|
|
auto identity = static_cast<struct_identity *>(item.identity);
|
|
|
|
|
for (auto identity = static_cast<struct_identity *>(item.identity); identity; identity = identity->getParent())
|
|
|
|
|
{
|
|
|
|
|
auto fields = identity->getFields();
|
|
|
|
|
if (!fields)
|
|
|
|
|
{
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
for (auto field = identity->getFields(); field->mode != struct_field_info::END; field++)
|
|
|
|
|
for (auto field = fields; field->mode != struct_field_info::END; field++)
|
|
|
|
|
{
|
|
|
|
|
ToCheck child(item, std::string(".") + field->name, PTR_ADD(item.ptr, field->offset), field->type);
|
|
|
|
|
|
|
|
|
|
queue_field(std::move(child), field);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void Checker::check_virtual(const ToCheck & item)
|
|
|
|
|