Skip to content

Commit

Permalink
issue #6690 Regression in handling of shorthand signed/unsigned types…
Browse files Browse the repository at this point in the history
… 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.
  • Loading branch information
albert-github committed Dec 20, 2018
1 parent 449a7e2 commit 6833f14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/defargs.l
Expand Up @@ -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;
}
Expand Down

0 comments on commit 6833f14

Please sign in to comment.