summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2020-10-19 14:03:07 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2020-10-19 14:03:07 (GMT)
commit33b0f4d25dff25b0e50d62eff68155106e88d58d (patch)
tree1075a610e57d341001e72995e99a77edd483b4bc /src
parentade26d54258e932274b2605bdc67ca45af4b398a (diff)
downloadDoxygen-33b0f4d25dff25b0e50d62eff68155106e88d58d.zip
Doxygen-33b0f4d25dff25b0e50d62eff68155106e88d58d.tar.gz
Doxygen-33b0f4d25dff25b0e50d62eff68155106e88d58d.tar.bz2
issue #8103: C++ Table of content, namespace list does not contains namespace without class (part 2)
Diffstat (limited to 'src')
-rw-r--r--src/index.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/index.cpp b/src/index.cpp
index 5dcdf82..afe66f4 100644
--- a/src/index.cpp
+++ b/src/index.cpp
@@ -1619,9 +1619,7 @@ static void writeClassTree(ClassSDict *clDict,FTVHelp *ftv,bool addToIndex,bool
{
ftv->addContentsItem(count>0,cd->displayName(FALSE),cd->getReference(),
cd->getOutputFileBase(),cd->anchor(),FALSE,TRUE,cd);
- if (addToIndex &&
- /*cd->partOfGroups()==0 &&*/
- (cd->getOuterScope()==0 ||
+ if ((cd->getOuterScope()==0 ||
cd->getOuterScope()->definitionType()!=Definition::TypeClass
)
)
@@ -1629,7 +1627,7 @@ static void writeClassTree(ClassSDict *clDict,FTVHelp *ftv,bool addToIndex,bool
addMembersToIndex(cd,LayoutDocManager::Class,
cd->displayName(FALSE),
cd->anchor(),
- cd->partOfGroups()==0 && !cd->isSimple());
+ addToIndex && cd->partOfGroups()==0 && !cd->isSimple());
}
if (count>0)
{
@@ -1711,7 +1709,8 @@ static void writeNamespaceTree(const NamespaceSDict *nsDict,FTVHelp *ftv,
(!rootOnly || nd->getOuterScope()==Doxygen::globalScope))
{
- bool hasChildren = namespaceHasNestedNamespace(nd);
+ bool hasChildren = namespaceHasNestedNamespace(nd) ||
+ namespaceHasNestedClass(nd,false,ClassDef::Class);
bool isLinkable = nd->isLinkableInProject();
int visibleMembers = countVisibleMembers(nd);
@@ -1750,6 +1749,7 @@ static void writeNamespaceTree(const NamespaceSDict *nsDict,FTVHelp *ftv,
{
ftv->incContentsDepth();
writeNamespaceTree(nd->getNamespaceSDict(),ftv,FALSE,addToIndex);
+ writeClassTree(nd->getClassSDict(),ftv,FALSE,FALSE,ClassDef::Class);
writeNamespaceMembers(nd,addToIndex);
ftv->decContentsDepth();
}