diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2008-06-26 19:24:36 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2008-06-26 19:24:36 (GMT) |
commit | 15c353fe21452d415876c93607a468c5a8e89b82 (patch) | |
tree | cc6b9b1f467451deab5096afece76012eec030b3 /src/docparser.cpp | |
parent | e436cad917e0d8e0cdb7de9d2fbafc7a44b6ab54 (diff) | |
download | Doxygen-15c353fe21452d415876c93607a468c5a8e89b82.zip Doxygen-15c353fe21452d415876c93607a468c5a8e89b82.tar.gz Doxygen-15c353fe21452d415876c93607a468c5a8e89b82.tar.bz2 |
Release-1.5.6-20080626
Diffstat (limited to 'src/docparser.cpp')
-rw-r--r-- | src/docparser.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/docparser.cpp b/src/docparser.cpp index 279d0e9..a434ac7 100644 --- a/src/docparser.cpp +++ b/src/docparser.cpp @@ -468,6 +468,7 @@ static void detectNoDocumentedParams() LockingPtr<ArgumentList> al = g_memberDef->argumentList(); LockingPtr<ArgumentList> declAl = g_memberDef->declArgumentList(); QString returnType = g_memberDef->typeString(); + bool isPython = getLanguageFromFileName(g_memberDef->getDefFileName())==SrcLangExt_Python; if (!g_memberDef->hasDocumentedParams() && g_hasParamCommand) @@ -489,7 +490,9 @@ static void detectNoDocumentedParams() // see if all parameters have documentation for (ali.toFirst();(a=ali.current()) && allDoc;++ali) { - if (!a->name.isEmpty() && a->type!="void") + if (!a->name.isEmpty() && a->type!="void" && + !(isPython && a->name=="self") + ) { allDoc = !a->docs.isEmpty(); } @@ -503,7 +506,9 @@ static void detectNoDocumentedParams() Argument *a; for (ali.toFirst();(a=ali.current()) && allDoc;++ali) { - if (!a->name.isEmpty() && a->type!="void") + if (!a->name.isEmpty() && a->type!="void" && + !(isPython && a->name=="self") + ) { allDoc = !a->docs.isEmpty(); } |