Skip to content

Commit

Permalink
issue #8789: qhp/qch broken in master
Browse files Browse the repository at this point in the history
  • Loading branch information
doxygen committed Oct 22, 2021
1 parent 5a75d92 commit fed7b6f
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions src/doxygen.cpp
Expand Up @@ -7711,20 +7711,30 @@ static void addToIndices()
}
};

auto addMemberToIndices = [addMemberToSearchIndex](const MemberDef *md)
auto getScope = [](const MemberDef *md)
{
const Definition *scope = 0;
if (md->getGroupDef()) scope = md->getGroupDef();
else if (md->getClassDef()) scope = md->getClassDef();
else if (md->getNamespaceDef()) scope = md->getNamespaceDef();
else if (md->getFileDef()) scope = md->getFileDef();
return scope;
};

auto addMemberToIndices = [addMemberToSearchIndex,getScope](const MemberDef *md)
{
if (md->isLinkableInProject())
{
if (!(md->isEnumerate() && md->isAnonymous()))
{
Doxygen::indexList->addIndexItem(md->getOuterScope(),md);
Doxygen::indexList->addIndexItem(getScope(md),md);
addMemberToSearchIndex(md);
}
if (md->isEnumerate())
{
for (const auto &fmd : md->enumFieldList())
{
Doxygen::indexList->addIndexItem(md->getOuterScope(),fmd);
Doxygen::indexList->addIndexItem(getScope(fmd),fmd);
addMemberToSearchIndex(fmd);
}
}
Expand Down

0 comments on commit fed7b6f

Please sign in to comment.