Pretty print declarator list.

This commit is contained in:
Roberto Raggi
2009-01-05 16:10:56 +01:00
parent 129a807f21
commit ab474061a6

View File

@@ -35,7 +35,6 @@
#include "AST.h"
#include <iostream>
#include <string>
#include <assert.h>
CPLUSPLUS_USE_NAMESPACE
@@ -385,9 +384,13 @@ bool PrettyPrinter::visit(DeclaratorIdAST *ast)
return false;
}
bool PrettyPrinter::visit(DeclaratorListAST *)
bool PrettyPrinter::visit(DeclaratorListAST *ast)
{
assert(0);
for (DeclaratorListAST *it = ast; it; it = it->next) {
accept(it->declarator);
if (it->next)
out << ", ";
}
return false;
}