Skip to content

Commit

Permalink
Bug 751455 - class scoped enum documentation appearing at group level…
Browse files Browse the repository at this point in the history
… instead of class level
  • Loading branch information
Dimitri van Heesch committed Jun 26, 2015
1 parent ae8f618 commit e4a9d06
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
9 changes: 9 additions & 0 deletions src/config.xml
Expand Up @@ -676,6 +676,15 @@ Go to the <a href="commands.html">next</a> section or return to the
tag is set to \c YES then doxygen will reuse the documentation of the first
member in the group (if any) for the other members of the group. By default
all members of a group must be documented explicitly.
]]>
</docs>
</option>
<option type='bool' id='GROUP_NESTED_COMPOUNDS' defval='0'>
<docs>
<![CDATA[
If one adds a struct or class to a group and this option is enabled, then also
any nested class or struct is added to the same group. By default this option
is disabled and one has to add nested compounds explicitly via @ingroup.
]]>
</docs>
</option>
Expand Down
3 changes: 2 additions & 1 deletion src/scanner.l
Expand Up @@ -6748,7 +6748,8 @@ static void parseCompounds(Entry *rt)
initEntry();

// deep copy group list from parent (see bug 727732)
if (rt->groups)
static bool autoGroupNested = Config_getBool("GROUP_NESTED_COMPOUNDS");
if (rt->groups && ce->section!=Entry::ENUM_SEC && !(ce->spec&Entry::Enum))
{
QListIterator<Grouping> gli(*rt->groups);
Grouping *g;
Expand Down

0 comments on commit e4a9d06

Please sign in to comment.