summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2018-07-14 17:28:02 (GMT)
committeralbert-github <albert.tests@gmail.com>2018-07-14 17:28:02 (GMT)
commit7ef7b137d38d7ddcbcef787704317531b44c2baf (patch)
treef7282443a37380fa96df6fcacc7790119a457024
parent657a6b5348d453fd1351b8c3238426e25acdbbb9 (diff)
downloadDoxygen-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.
-rw-r--r--src/defargs.l6
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;