Skip to content

Commit daa7635

Browse files
committed
Incorrect waring in case of Python
For the aws cli project we got the warning: ``` awscli/botocore/vendored/six.py:779: warning: documented symbol 'print_(*args ** awscli::botocore::vendored::six::kwargs' was not declared or defined. ``` note the missing `,` and at the end the missing`)`. This is due to the fact that there was (twice) the definition `def print_(*args, **kwargs):` and here the `(*` for python was not handled properly.
1 parent 3b8b4a2 commit daa7635

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

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)