diff options
author | albert-github <albert.tests@gmail.com> | 2018-07-14 17:28:02 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2018-07-14 17:28:02 (GMT) |
commit | 7ef7b137d38d7ddcbcef787704317531b44c2baf (patch) | |
tree | f7282443a37380fa96df6fcacc7790119a457024 /src/defargs.l | |
parent | 657a6b5348d453fd1351b8c3238426e25acdbbb9 (diff) | |
download | Doxygen-7ef7b137d38d7ddcbcef787704317531b44c2baf.zip Doxygen-7ef7b137d38d7ddcbcef787704317531b44c2baf.tar.gz Doxygen-7ef7b137d38d7ddcbcef787704317531b44c2baf.tar.bz2 |
Bug 436883 - Handling of unnamed parameters (C/C++) unclear
Also the name should not be a reserved type of word.
Diffstat (limited to 'src/defargs.l')
-rw-r--r-- | src/defargs.l | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/defargs.l b/src/defargs.l index f925ffb..47fa763 100644 --- a/src/defargs.l +++ b/src/defargs.l @@ -104,8 +104,10 @@ static int yyread(char *buf,int max_size) } /* bug_520975 */ -static bool checkSpecialType(QCString &typ) +static bool checkSpecialType(QCString &typ, QCString &nam) { + if (nam == "unsigned" || nam == "signed" || + nam == "volatile" || nam == "const") return TRUE; QStringList qsl=QStringList::split(' ',typ); for(uint j=0;j<qsl.count();j++) { @@ -396,7 +398,7 @@ RAWEND ")"[^ \t\(\)\\]{0,16}\" a->type.mid(sv)=="union" || a->type.mid(sv)=="class" || a->type.mid(sv)=="typename" || - checkSpecialType(a->type) + checkSpecialType(a->type, a->name) ) { a->type = a->type + " " + a->name; |