diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2004-02-22 19:57:25 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2004-02-22 19:57:25 (GMT) |
commit | f13d78d4dfe3e075e0f91ee8d62603fadf18a3a9 (patch) | |
tree | bb6a2ec7453702ed2fe2348793b0bddf5d80042a /src/memberdef.cpp | |
parent | 2bf4cfeda1be93954baf688017e147b565c06d9b (diff) | |
download | Doxygen-f13d78d4dfe3e075e0f91ee8d62603fadf18a3a9.zip Doxygen-f13d78d4dfe3e075e0f91ee8d62603fadf18a3a9.tar.gz Doxygen-f13d78d4dfe3e075e0f91ee8d62603fadf18a3a9.tar.bz2 |
Release-1.3.6-20040222
Diffstat (limited to 'src/memberdef.cpp')
-rw-r--r-- | src/memberdef.cpp | 29 |
1 files changed, 22 insertions, 7 deletions
diff --git a/src/memberdef.cpp b/src/memberdef.cpp index 8a3b927..c47ab09 100644 --- a/src/memberdef.cpp +++ b/src/memberdef.cpp @@ -144,21 +144,24 @@ static void writeDefArgumentList(OutputList &ol,ClassDef *cd, { QCString n=a->type; if (md->isObjCMethod()) { n.prepend("("); n.append(")"); } - if (!cName.isEmpty()) n=addTemplateNames(n,cd->name(),cName); - linkifyText(TextGeneratorOLImpl(ol),cd,md->getBodyDef(),md->name(),n); + if (a->type!="...") + { + if (!cName.isEmpty()) n=addTemplateNames(n,cd->name(),cName); + linkifyText(TextGeneratorOLImpl(ol),cd,md->getBodyDef(),md->name(),n); + } } if (!md->isDefine()) { ol.endParameterType(); ol.startParameterName(defArgList->count()<2); } - if (!a->name.isEmpty()) // argument has a name + if (!a->name.isEmpty() || (a->name.isEmpty() && a->type=="...")) // argument has a name { ol.docify(" "); ol.disable(OutputGenerator::Man); ol.startEmphasis(); ol.enable(OutputGenerator::Man); - ol.docify(a->name); + if (a->name.isEmpty()) ol.docify(a->type); else ol.docify(a->name); ol.disable(OutputGenerator::Man); ol.endEmphasis(); ol.enable(OutputGenerator::Man); @@ -191,7 +194,8 @@ static void writeDefArgumentList(OutputList &ol,ClassDef *cd, { //printf("Found parameter keyword %s\n",a->attrib.data()); // strip [ and ] - key=a->attrib.mid(1,a->attrib.length()-2)+":"; + key=a->attrib.mid(1,a->attrib.length()-2); + if (key!=",") key+=":"; // for normal keywords add colon } ol.endParameterName(FALSE,FALSE); ol.startParameterType(FALSE,key); @@ -800,9 +804,9 @@ void MemberDef::writeDeclaration(OutputList &ol, if (prot!=Public) { Doxygen::tagFile << "\" protection=\""; - if (prot==Protected) Doxygen::tagFile << "public"; + if (prot==Protected) Doxygen::tagFile << "protected"; else if (prot==Package) Doxygen::tagFile << "package"; - else /* Private */ Doxygen::tagFile << "protected"; + else /* Private */ Doxygen::tagFile << "private"; } if (virt!=Normal) { @@ -1321,6 +1325,17 @@ void MemberDef::writeDocumentation(MemberList *ml,OutputList &ol, ol.startMemberDocName(isObjCMethod()); if (isObjCMethod()) { + // strip scope name + int ep = ldef.find("::"); + if (ep!=-1) + { + int sp=ldef.findRev(' ',ep); + if (sp!=-1) + { + ldef=ldef.left(sp+1)+ldef.mid(ep+2); + } + } + // strip keywords int dp = ldef.find(':'); if (dp!=-1) { |