Пример #1
0
void GroupDef::addMemberToList(MemberListType lt,MemberDef *md)
{
  static bool sortBriefDocs = Config_getBool("SORT_BRIEF_DOCS");
  static bool sortMemberDocs = Config_getBool("SORT_MEMBER_DOCS");
  MemberList *ml = createMemberList(lt);
  ml->setNeedsSorting(
      ((ml->listType()&MemberListType_declarationLists) && sortBriefDocs) ||
      ((ml->listType()&MemberListType_documentationLists) && sortMemberDocs));
  ml->append(md);
}
Пример #2
0
void NamespaceDef::addMemberToList(MemberListType lt,MemberDef *md)
{
    static bool sortBriefDocs = Config_getBool("SORT_BRIEF_DOCS");
    static bool sortMemberDocs = Config_getBool("SORT_MEMBER_DOCS");
    MemberList *ml = createMemberList(lt);
    ml->setNeedsSorting(
        ((ml->listType()&MemberListType_declarationLists) && sortBriefDocs) ||
        ((ml->listType()&MemberListType_documentationLists) && sortMemberDocs));
    ml->append(md);

#if 0
    if (ml->needsSorting())
        ml->inSort(md);
    else
        ml->append(md);
#endif

    if (ml->listType()&MemberListType_declarationLists) md->setSectionList(this,ml);
}