summaryrefslogtreecommitdiffstats
path: root/src/docparser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/docparser.cpp')
-rw-r--r--src/docparser.cpp9
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();
}