Commit f4388dc4 authored by Dimitri van Heesch's avatar Dimitri van Heesch

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

parent 84064ac4
...@@ -6675,6 +6675,18 @@ static void parseCompounds(Entry *rt) ...@@ -6675,6 +6675,18 @@ static void parseCompounds(Entry *rt)
current = new Entry; current = new Entry;
gstat = FALSE; gstat = FALSE;
initEntry(); 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; int ni=ce->name.findRev("::"); if (ni==-1) ni=0; else ni+=2;
// set default protection based on the compound type // set default protection based on the compound type
if( ce->section==Entry::CLASS_SEC ) // class if( ce->section==Entry::CLASS_SEC ) // class
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment