Commit 25d7933d authored by Erik Verbruggen's avatar Erik Verbruggen
Browse files

Fixed __attribute__ parsing after struct declarations.

Task-number: QTCREATORBUG-1358
Reviewed-by: Roberto Raggi
parent 647c5d9b
......@@ -3633,10 +3633,14 @@ bool Parser::maybeForwardOrClassDeclaration(SpecifierListAST *decl_specifier_seq
if (it) {
SpecifierAST *spec = it->value;
if (! it->next && (spec->asElaboratedTypeSpecifier() ||
spec->asEnumSpecifier() ||
spec->asClassSpecifier()))
if (spec->asElaboratedTypeSpecifier() ||
spec->asEnumSpecifier() ||
spec->asClassSpecifier()) {
for (it = it->next; it; it = it->next)
if (it->value->asAttributeSpecifier() == 0)
return false;
return true;
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment