Permalink
Browse files

Bug 727732 - Nested C structures/unions does not work with groups

  • Loading branch information...
Dimitri van Heesch
Dimitri van Heesch committed May 29, 2014
1 parent 84064ac commit f4388dc4a62e183b7ca4457eba7cb978a35804c2
Showing with 12 additions and 0 deletions.
  1. +12 −0 src/scanner.l
View
@@ -6675,6 +6675,18 @@ static void parseCompounds(Entry *rt)
current = new Entry;
gstat = FALSE;
initEntry();
// deep copy group list from parent (see bug 727732)
if (rt->groups)
{
QListIterator<Grouping> gli(*rt->groups);
Grouping *g;
for (;(g=gli.current());++gli)
{
ce->groups->append(new Grouping(*g));
}
}
int ni=ce->name.findRev("::"); if (ni==-1) ni=0; else ni+=2;
// set default protection based on the compound type
if( ce->section==Entry::CLASS_SEC ) // class

0 comments on commit f4388dc

Please sign in to comment.