summaryrefslogtreecommitdiffstats
path: root/src/docparser.cpp
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2008-05-18 11:56:00 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2008-05-18 11:56:00 (GMT)
commit6cd51b02bf9b37f785fcd26648d1f9071205a2be (patch)
treee85f15dbfa5b5c3a1d2eb4031c403ae367dd15a8 /src/docparser.cpp
parent2f0a01b60fb0cb5f2fb42510039c22eabd86e786 (diff)
downloadDoxygen-6cd51b02bf9b37f785fcd26648d1f9071205a2be.zip
Doxygen-6cd51b02bf9b37f785fcd26648d1f9071205a2be.tar.gz
Doxygen-6cd51b02bf9b37f785fcd26648d1f9071205a2be.tar.bz2
Release-1.5.6
Diffstat (limited to 'src/docparser.cpp')
-rw-r--r--src/docparser.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/docparser.cpp b/src/docparser.cpp
index f24b916..279d0e9 100644
--- a/src/docparser.cpp
+++ b/src/docparser.cpp
@@ -400,7 +400,11 @@ static void checkUndocumentedParams()
QString argName = g_memberDef->isDefine() ? a->type : a->name;
argName=argName.stripWhiteSpace();
if (argName.right(3)=="...") argName=argName.left(argName.length()-3);
- if (!argName.isEmpty() && g_paramsFound.find(argName)==0 && a->docs.isEmpty())
+ if (getLanguageFromFileName(g_memberDef->getDefFileName())==SrcLangExt_Python && argName=="self")
+ {
+ // allow undocumented self parameter for Python
+ }
+ else if (!argName.isEmpty() && g_paramsFound.find(argName)==0 && a->docs.isEmpty())
{
found = TRUE;
break;
@@ -418,7 +422,11 @@ static void checkUndocumentedParams()
{
QString argName = g_memberDef->isDefine() ? a->type : a->name;
argName=argName.stripWhiteSpace();
- if (!argName.isEmpty() && g_paramsFound.find(argName)==0)
+ if (getLanguageFromFileName(g_memberDef->getDefFileName())==SrcLangExt_Python && argName=="self")
+ {
+ // allow undocumented self parameter for Python
+ }
+ else if (!argName.isEmpty() && g_paramsFound.find(argName)==0)
{
if (!first)
{