Skip to content

Commit 47bd622

Browse files
authored
Merge pull request doxygen#11219 from albert-github/feature/bug_py_error
Incorrect warning in case of Python
2 parents 3b8b4a2 + daa7635 commit 47bd622

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/declinfo.l

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ struct declinfoYY_state
7070
QCString exceptionString;
7171
bool insideObjC;
7272
bool insidePHP;
73+
bool insidePython;
7374
};
7475

7576
[[maybe_unused]] static const char *stateToString(int state);
@@ -176,6 +177,7 @@ ID ([$a-z_A-Z\x80-\xFF][$a-z_A-Z0-9\x80-\xFF]*)|(@[0-9]+)
176177
}
177178
<Start>{B}*"("({ID}"::")*{B}*[&*]({B}*("const"|"volatile"){B}+)? {
178179
if (yyextra->insidePHP) REJECT;
180+
if (yyextra->insidePython) REJECT;
179181
addType(yyscanner);
180182
QCString text(yytext);
181183
yyextra->type+=text.stripWhiteSpace();
@@ -342,6 +344,7 @@ void parseFuncDecl(const QCString &decl,const SrcLangExt lang,QCString &cl,QCStr
342344
yyextra->funcTempListFound = FALSE;
343345
yyextra->insideObjC = lang==SrcLangExt::ObjC;
344346
yyextra->insidePHP = lang==SrcLangExt::PHP;
347+
yyextra->insidePython = lang==SrcLangExt::Python;
345348
yyextra->scope.clear();
346349
yyextra->className.clear();
347350
yyextra->classTempList.clear();

0 commit comments

Comments
 (0)