summaryrefslogtreecommitdiffstats
path: root/src/defargs.l
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2018-12-20 15:55:41 (GMT)
committeralbert-github <albert.tests@gmail.com>2018-12-20 15:55:41 (GMT)
commit6833f142284376d256688511c5111dda6df9d79d (patch)
treed0915cb9373fc5e0ab7e35560a97e1b0bba0fad6 /src/defargs.l
parent449a7e2b4ff114a72be573013558bae19672ebbc (diff)
downloadDoxygen-6833f142284376d256688511c5111dda6df9d79d.zip
Doxygen-6833f142284376d256688511c5111dda6df9d79d.tar.gz
Doxygen-6833f142284376d256688511c5111dda6df9d79d.tar.bz2
issue #6690 Regression in handling of shorthand signed/unsigned types in function parameters (with bisect and test case)
For some keywords not the value of the 'type' should decide whether the 'name' in the name field is part of the 'type' or is the 'name' in the argument.
Diffstat (limited to 'src/defargs.l')
-rw-r--r--src/defargs.l4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/defargs.l b/src/defargs.l
index 52052fa..86e2529 100644
--- a/src/defargs.l
+++ b/src/defargs.l
@@ -107,12 +107,12 @@ static int yyread(char *buf,int max_size)
static bool checkSpecialType(QCString &typ, QCString &nam)
{
if (nam == "unsigned" || nam == "signed" ||
+ nam == "int" || nam == "long" ||
nam == "volatile" || nam == "const") return TRUE;
QCStringList qsl=QCStringList::split(' ',typ);
for (uint j=0;j<qsl.count();j++)
{
- if (!(qsl[j] == "unsigned" || qsl[j] == "signed" ||
- qsl[j] == "volatile" || qsl[j] == "const")) return FALSE;
+ if (!(qsl[j] == "volatile" || qsl[j] == "const")) return FALSE;
}
return TRUE;
}