diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2007-09-25 19:13:15 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2007-09-25 19:13:15 (GMT) |
commit | f57b7d974fec18d1d8f325c102efd8be5930131d (patch) | |
tree | bbe4c051e635c620ab57fcc7ca8279d0427777d8 /src/xmlgen.cpp | |
parent | 8e4a092e4d51347f8f6c61d87154ee74edb13d20 (diff) | |
download | Doxygen-f57b7d974fec18d1d8f325c102efd8be5930131d.zip Doxygen-f57b7d974fec18d1d8f325c102efd8be5930131d.tar.gz Doxygen-f57b7d974fec18d1d8f325c102efd8be5930131d.tar.bz2 |
Release-1.5.3-20070925
Diffstat (limited to 'src/xmlgen.cpp')
-rw-r--r-- | src/xmlgen.cpp | 51 |
1 files changed, 28 insertions, 23 deletions
diff --git a/src/xmlgen.cpp b/src/xmlgen.cpp index fb21518..9b316c4 100644 --- a/src/xmlgen.cpp +++ b/src/xmlgen.cpp @@ -539,6 +539,7 @@ static void stripQualifiers(QCString &typeStr) if (typeStr.stripPrefix("static ")); else if (typeStr.stripPrefix("virtual ")); else if (typeStr.stripPrefix("volatile ")); + else if (typeStr=="virtual") typeStr=""; else done=TRUE; } } @@ -563,6 +564,7 @@ static void generateXMLForMember(MemberDef *md,QTextStream &ti,QTextStream &t,De // enum values are written as part of the enum if (md->memberType()==MemberDef::EnumValue) return; if (md->isHidden()) return; + if (md->name().at(0)=='@') return; // anonymous member // group members are only visible in their group //if (def->definitionType()!=Definition::TypeGroup && md->getGroupDef()) return; @@ -1012,31 +1014,34 @@ static void writeListOfAllMembers(ClassDef *cd,QTextStream &t) for (mii.toFirst();(mi=mii.current());++mii) { MemberDef *md=mi->memberDef; - Protection prot = mi->prot; - Specifier virt=md->virtualness(); - t << " <member refid=\"" << md->getOutputFileBase() << "_1" << - md->anchor() << "\" prot=\""; - switch (prot) + if (md->name().at(0)!='@') // skip anonymous members { - case Public: t << "public"; break; - case Protected: t << "protected"; break; - case Private: t << "private"; break; - case Package: t << "package"; break; - } - t << "\" virt=\""; - switch(virt) - { - case Normal: t << "non-virtual"; break; - case Virtual: t << "virtual"; break; - case Pure: t << "pure-virtual"; break; - } - t << "\""; - if (!mi->ambiguityResolutionScope.isEmpty()) - { - t << " ambiguityscope=\"" << convertToXML(mi->ambiguityResolutionScope) << "\""; + Protection prot = mi->prot; + Specifier virt=md->virtualness(); + t << " <member refid=\"" << md->getOutputFileBase() << "_1" << + md->anchor() << "\" prot=\""; + switch (prot) + { + case Public: t << "public"; break; + case Protected: t << "protected"; break; + case Private: t << "private"; break; + case Package: t << "package"; break; + } + t << "\" virt=\""; + switch(virt) + { + case Normal: t << "non-virtual"; break; + case Virtual: t << "virtual"; break; + case Pure: t << "pure-virtual"; break; + } + t << "\""; + if (!mi->ambiguityResolutionScope.isEmpty()) + { + t << " ambiguityscope=\"" << convertToXML(mi->ambiguityResolutionScope) << "\""; + } + t << "><scope>" << convertToXML(cd->name()) << "</scope><name>" << + convertToXML(md->name()) << "</name></member>" << endl; } - t << "><scope>" << convertToXML(cd->name()) << "</scope><name>" << - convertToXML(md->name()) << "</name></member>" << endl; } } } |