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:
Alex Lin
2016-03-10 10:42:59 -06:00
parent 0f76eec7a1
commit 1754995396
3 changed files with 49 additions and 4 deletions

View File

@ -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 ;
}