diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2003-09-04 19:14:10 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2003-09-04 19:14:10 (GMT) |
commit | d20edf5ddd0f90ea5b220ad743bf311f74383fc8 (patch) | |
tree | 9eaad18e2e95d04758839bfe77adefaaa1695f7d /src/doxygen.cpp | |
parent | 77a2ce8e15c967422cb1ff01dc78f5d9b1892c3d (diff) | |
download | Doxygen-d20edf5ddd0f90ea5b220ad743bf311f74383fc8.zip Doxygen-d20edf5ddd0f90ea5b220ad743bf311f74383fc8.tar.gz Doxygen-d20edf5ddd0f90ea5b220ad743bf311f74383fc8.tar.bz2 |
Release-1.3.3-20030904
Diffstat (limited to 'src/doxygen.cpp')
-rw-r--r-- | src/doxygen.cpp | 26 |
1 files changed, 21 insertions, 5 deletions
diff --git a/src/doxygen.cpp b/src/doxygen.cpp index 76ab5de..b380d07 100644 --- a/src/doxygen.cpp +++ b/src/doxygen.cpp @@ -2257,6 +2257,11 @@ static void buildFunctionList(Entry *root) matchArguments(md->argumentList(),root->argList,0,nsName,FALSE,unl,ucl) ) { + GroupDef *gd=0; + if (root->groups->first()!=0) + { + gd = Doxygen::groupSDict[root->groups->first()->groupname.data()]; + } //printf("match!\n"); // see if we need to create a new member found=(nd && rnd && nsName==rnsName) || // members are in the same namespace @@ -2265,6 +2270,11 @@ static void buildFunctionList(Entry *root) ) ); // otherwise, allow a duplicate global member with the same argument list + if (!found && gd && gd==md->getGroupDef()) + { + // member is already in the group, so we don't want to add it again. + found=TRUE; + } //printf("combining function with prototype found=%d in namespace %s\n", // found,nsName.data()); @@ -2325,12 +2335,13 @@ static void buildFunctionList(Entry *root) md->enableCallGraph(md->hasCallGraph() || root->callGraph); // merge ingroup specifiers - if (md->getGroupDef()==0 && root->groups->first()) + if (md->getGroupDef()==0 && root->groups->first()!=0) { + //printf("new member is grouped, existing member not\n"); // if we do addMemberToGroups here an undocumented declaration may prevent // the documented implementation below it from being added //addMemberToGroups(root,md); - GroupDef *gd=Doxygen::groupSDict[root->groups->first()->groupname.data()]; + //GroupDef *gd=Doxygen::groupSDict[root->groups->first()->groupname.data()]; if (gd) { bool success = gd->insertMember(md); @@ -2342,8 +2353,13 @@ static void buildFunctionList(Entry *root) } else if (md->getGroupDef()!=0 && root->groups->count()==0) { + //printf("existing member is grouped, new member not\n"); root->groups->append(new Grouping(md->getGroupDef()->name(), md->getGroupPri())); } + else if (md->getGroupDef()!=0 && root->groups->first()!=0) + { + //printf("both members are grouped\n"); + } } } } @@ -3338,12 +3354,12 @@ static bool findClassRelation( } baseClassName=stripTemplateSpecifiersFromScope (removeRedundantWhiteSpace(baseClassName)); - bool baseClassIsTypeDef; + MemberDef *baseClassTypeDef; QCString templSpec; ClassDef *baseClass=getResolvedClass(explicitGlobalScope ? 0 : cd, cd->getFileDef(), // todo: is this ok? baseClassName, - &baseClassIsTypeDef, + &baseClassTypeDef, &templSpec); //printf("baseClassName=%s baseClass=%p cd=%p\n",baseClassName.data(),baseClass,cd); //printf(" root->name=`%s' baseClassName=`%s' baseClass=%s templSpec=%s\n", @@ -3444,7 +3460,7 @@ static bool findClassRelation( else if (mode==DocumentedOnly) { QCString usedName; - if (baseClassIsTypeDef) usedName=biName; + if (baseClassTypeDef) usedName=biName; cd->insertBaseClass(baseClass,usedName,bi->prot,bi->virt,templSpec); // add this class as super class to the base class baseClass->insertSubClass(cd,bi->prot,bi->virt,templSpec); |