mirror of
https://github.com/nasa/trick.git
synced 2025-06-21 08:29:39 +00:00
ATTRIBUTES for classes with non-locally typedef'd members is wrong
Interesting case. I found that we should process the canonical type names where we were not before. This resolves all typedefs and should be be more accurate in the future. When we process the canonical type we need to ignore the processing of the non-canonical type. We set a flag after the canonical type is processed to ignore any type that is processed after. refs #198
This commit is contained in:
@ -37,6 +37,7 @@ FieldDescription::FieldDescription(
|
||||
is_record(0) ,
|
||||
is_static(0) ,
|
||||
has_type(0) ,
|
||||
has_dims(0) ,
|
||||
num_dims(0) ,
|
||||
array_sizes() {} ;
|
||||
|
||||
@ -385,6 +386,14 @@ bool FieldDescription::hasType() {
|
||||
return has_type ;
|
||||
}
|
||||
|
||||
void FieldDescription::setHasDims( bool yes_no ) {
|
||||
has_dims = yes_no ;
|
||||
}
|
||||
|
||||
bool FieldDescription::hasDims() {
|
||||
return has_dims ;
|
||||
}
|
||||
|
||||
unsigned int FieldDescription::getNumDims() {
|
||||
return num_dims ;
|
||||
}
|
||||
|
Reference in New Issue
Block a user