Process named and elaborated type specifiers.

This commit is contained in:
Roberto Raggi
2010-08-13 10:59:22 +02:00
parent fc17a4226b
commit 4479410246

View File

@@ -2309,18 +2309,17 @@ bool Bind::visit(ClassSpecifierAST *ast)
bool Bind::visit(NamedTypeSpecifierAST *ast)
{
/*const Name *name =*/ this->name(ast->name);
_type.setType(control()->namedType(this->name(ast->name)));
return false;
}
bool Bind::visit(ElaboratedTypeSpecifierAST *ast)
{
// unsigned classkey_token = ast->classkey_token;
FullySpecifiedType type;
for (SpecifierListAST *it = ast->attribute_list; it; it = it->next) {
type = this->specifier(it->value, type);
_type = this->specifier(it->value, _type);
}
/*const Name *name =*/ this->name(ast->name);
_type.setType(control()->namedType(this->name(ast->name)));
return false;
}