Fixes: Parsing of GCC asm definitions.

This commit is contained in:
Roberto Raggi
2009-02-05 11:37:51 +01:00
committed by Roberto Raggi
parent 40eabdd008
commit d7defc6fe0
5 changed files with 92 additions and 25 deletions

View File

@@ -101,10 +101,8 @@ bool PrettyPrinter::visit(ArrayInitializerAST *ast)
bool PrettyPrinter::visit(AsmDefinitionAST *ast)
{
out << spell(ast->asm_token);
for (SpecifierAST *it = ast->cv_qualifier_seq; it; it = it->next) {
out << ' ';
accept(it);
}
if (ast->volatile_token)
out << ' ' << spell(ast->volatile_token) << ' ';
out << '(';
out << "/* ### implement me */";
out << ");";