Fixup for __attribute__ before variable name

This commit is contained in:
rfm 2023-11-20 20:18:39 +00:00
parent 3b3687afb3
commit 69dbfb6b43

View file

@ -1925,6 +1925,16 @@ another:
[d setObject: @"Variables" forKey: @"Kind"];
}
/* If there is an attribute before the variable name we must ignore it.
*/
if ([s isEqualToString: @"__attribute__"])
{
if ([self skipSpaces] < length && buffer[pos] == '(')
{
[self skipBlock]; // Skip the attributes
}
}
if (s == nil)
{
[self parseDeclaratorInto: d];