summaryrefslogtreecommitdiffstats
path: root/src/classdef.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2001-01-28 18:16:38 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2001-01-28 18:16:38 (GMT)
commit9d98e802c931c7d358c55c2f69dabdef78b1fb62 (patch)
tree26b976ebd24f845a5cf88ab76f81f928c47c4548 /src/classdef.cpp
parentcbf50dc79a88d3710287b312996da56f97154c56 (diff)
downloadDoxygen-9d98e802c931c7d358c55c2f69dabdef78b1fb62.zip
Doxygen-9d98e802c931c7d358c55c2f69dabdef78b1fb62.tar.gz
Doxygen-9d98e802c931c7d358c55c2f69dabdef78b1fb62.tar.bz2
Release-1.2.4-20010128
Diffstat (limited to 'src/classdef.cpp')
-rw-r--r--src/classdef.cpp23
1 files changed, 18 insertions, 5 deletions
diff --git a/src/classdef.cpp b/src/classdef.cpp
index b781c25..0fffcaf 100644
--- a/src/classdef.cpp
+++ b/src/classdef.cpp
@@ -897,7 +897,7 @@ void ClassDef::writeDocumentation(OutputList &ol)
}
// write link to list of all members (HTML only)
- if (allMemberNameInfoList->count()>0 /*&& compType==Class*/)
+ if (allMemberNameInfoList->count()>0 && !Config::optimizeForCFlag)
{
ol.disableAllBut(OutputGenerator::Html);
ol.startTextLink(memListFileName,0);
@@ -1179,7 +1179,7 @@ void ClassDef::writeDocumentation(OutputList &ol)
// write the list of all (inherited) members for this class
void ClassDef::writeMemberList(OutputList &ol)
{
- if (allMemberNameInfoList->count()==0) return;
+ if (allMemberNameInfoList->count()==0 || Config::optimizeForCFlag) return;
// only for HTML
ol.pushGeneratorState();
ol.disableAllBut(OutputGenerator::Html);
@@ -1208,7 +1208,6 @@ void ClassDef::writeMemberList(OutputList &ol)
if (mi->prot==Protected) // inherited protection
{
if (protect==Public) protect=Protected;
- else if (protect==Protected) protect=Private;
}
//printf("Member %s of class %s mi->prot=%d prot=%d\n",
@@ -1646,11 +1645,25 @@ void ClassDef::mergeMembers()
MemberInfo *mi;
for (;(mi=mnii.current());++mnii)
{
- if (mi->memberDef->protection()!=Private)
+ Protection prot = mi->memberDef->protection();
+ if (bcd->prot==Protected)
+ {
+ if (prot==Public) prot=Protected;
+ }
+ else if (bcd->prot==Private)
+ {
+ prot=Private;
+ }
+ //printf("%s::%s: prot=%d bcd->prot=%d result=%d\n",
+ // name().data(),mi->memberDef->name().data(),mi->memberDef->protection(),
+ // bcd->prot,prot);
+
+ if (prot!=Private)
{
Specifier virt=mi->virt;
if (mi->virt==Normal && bcd->virt!=Normal) virt=bcd->virt;
- MemberInfo *newMi=new MemberInfo(mi->memberDef,bcd->prot,virt);
+
+ MemberInfo *newMi=new MemberInfo(mi->memberDef,prot,virt);
newMi->scopePath=bClass->name()+"::"+mi->scopePath;
newMi->ambigClass=mi->ambigClass;
newMi->ambiguityResolutionScope=mi->ambiguityResolutionScope.copy();