summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2021-04-22 19:29:30 (GMT)
committerGitHub <noreply@github.com>2021-04-22 19:29:30 (GMT)
commit83eada424c3c78d69b7fb844c280334dbf54a5ab (patch)
treefa7f75ed2d8a85535aedc07bb40b6e4550fe89b7 /src
parent320857c359412e60106d5fa7c0956f792c43d72d (diff)
parenta4afb374c4aca216707f2e8ba2e4ccf98ef49b17 (diff)
downloadDoxygen-83eada424c3c78d69b7fb844c280334dbf54a5ab.zip
Doxygen-83eada424c3c78d69b7fb844c280334dbf54a5ab.tar.gz
Doxygen-83eada424c3c78d69b7fb844c280334dbf54a5ab.tar.bz2
Merge pull request #8430 from albert-github/feature/issue_8425
issue #8425 Would like a way to sort class list but not brief member list
Diffstat (limited to 'src')
-rw-r--r--src/namespacedef.cpp22
1 files changed, 9 insertions, 13 deletions
diff --git a/src/namespacedef.cpp b/src/namespacedef.cpp
index cb2e4de..db855ba 100644
--- a/src/namespacedef.cpp
+++ b/src/namespacedef.cpp
@@ -1391,23 +1391,19 @@ void NamespaceDefImpl::sortMemberLists()
if (ml->needsSorting()) { ml->sort(); ml->setNeedsSorting(FALSE); }
}
- if (Config_getBool(SORT_BRIEF_DOCS))
+ auto classComp = [](const ClassLinkedRefMap::Ptr &c1,const ClassLinkedRefMap::Ptr &c2)
{
- auto classComp = [](const ClassLinkedRefMap::Ptr &c1,const ClassLinkedRefMap::Ptr &c2)
- {
- return Config_getBool(SORT_BY_SCOPE_NAME) ?
- qstricmp(c1->name(), c2->name())<0 :
- qstricmp(c1->className(), c2->className())<0;
- };
+ return Config_getBool(SORT_BY_SCOPE_NAME) ?
+ qstricmp(c1->name(), c2->name())<0 :
+ qstricmp(c1->className(), c2->className())<0;
+ };
- std::sort(classes.begin(), classes.end(), classComp);
- std::sort(interfaces.begin(),interfaces.end(),classComp);
- std::sort(structs.begin(), structs.end(), classComp);
- std::sort(exceptions.begin(),exceptions.end(),classComp);
+ std::sort(classes.begin(), classes.end(), classComp);
+ std::sort(interfaces.begin(),interfaces.end(),classComp);
+ std::sort(structs.begin(), structs.end(), classComp);
+ std::sort(exceptions.begin(),exceptions.end(),classComp);
- }
- // TODO: inconsistent: should be only done when SORT_BRIEF_DOCS is enabled...
auto namespaceComp = [](const NamespaceLinkedRefMap::Ptr &n1,const NamespaceLinkedRefMap::Ptr &n2)
{
return qstricmp(n1->name(),n2->name())<0;