summaryrefslogtreecommitdiffstats
path: root/src/docparser.cpp
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2004-12-31 14:25:22 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2004-12-31 14:25:22 (GMT)
commit8dc1328efbd82110ca3def379951286b09fddd15 (patch)
tree80d6e1da5b77f60b041b9a10aadb418c8b25933e /src/docparser.cpp
parent81adebde00a3fe5954b403f8c0d1a1a6ed833fa8 (diff)
downloadDoxygen-8dc1328efbd82110ca3def379951286b09fddd15.zip
Doxygen-8dc1328efbd82110ca3def379951286b09fddd15.tar.gz
Doxygen-8dc1328efbd82110ca3def379951286b09fddd15.tar.bz2
Release-1.4.0
Diffstat (limited to 'src/docparser.cpp')
-rw-r--r--src/docparser.cpp18
1 files changed, 13 insertions, 5 deletions
diff --git a/src/docparser.cpp b/src/docparser.cpp
index 74aa938..497f595 100644
--- a/src/docparser.cpp
+++ b/src/docparser.cpp
@@ -372,11 +372,12 @@ static void detectNoDocumentedParams()
if (!g_memberDef->hasDocumentedParams() &&
g_hasParamCommand)
{
+ //printf("%s->setHasDocumentedParams(TRUE);\n",g_memberDef->name().data());
g_memberDef->setHasDocumentedParams(TRUE);
}
else if (!g_memberDef->hasDocumentedParams())
{
- bool allDoc=TRUE;
+ bool allDoc=TRUE; // no paramater => all parameters are documented
if ( // member has parameters
al && // but the member has a parameter list
al->count()>0 // with at least one parameter (that is not void)
@@ -388,8 +389,12 @@ static void detectNoDocumentedParams()
// see if all parameters have documentation
for (ali.toFirst();(a=ali.current()) && allDoc;++ali)
{
- allDoc = !a->docs.isEmpty();
- //printf("a->name=%s doc=%s\n",a->name.data(),a->docs.data());
+ if (!a->name.isEmpty() && a->type!="void")
+ {
+ allDoc = !a->docs.isEmpty();
+ }
+ //printf("a->type=%s a->name=%s doc=%s\n",
+ // a->type.data(),a->name.data(),a->docs.data());
}
if (!allDoc && declAl) // try declaration arguments as well
{
@@ -398,16 +403,19 @@ static void detectNoDocumentedParams()
Argument *a;
for (ali.toFirst();(a=ali.current()) && allDoc;++ali)
{
- allDoc = !a->docs.isEmpty();
+ if (!a->name.isEmpty() && a->type!="void")
+ {
+ allDoc = !a->docs.isEmpty();
+ }
//printf("a->name=%s doc=%s\n",a->name.data(),a->docs.data());
}
}
}
if (allDoc)
{
+ //printf("%s->setHasDocumentedParams(TRUE);\n",g_memberDef->name().data());
g_memberDef->setHasDocumentedParams(TRUE);
}
-
}
//printf("Member %s hasReturnCommand=%d\n",g_memberDef->name().data(),g_hasReturnCommand);
if (!g_memberDef->hasDocumentedReturnType() && // docs not yet found