forked from qt-creator/qt-creator
Added support for C99 compound literals.
This commit is contained in:
@@ -1281,3 +1281,13 @@ bool PrettyPrinter::visit(QtMethodAST *ast)
|
||||
out << ')';
|
||||
return false;
|
||||
}
|
||||
|
||||
bool PrettyPrinter::visit(CompoundLiteralAST *ast)
|
||||
{
|
||||
out << '(';
|
||||
accept(ast->type_id);
|
||||
out << ')';
|
||||
out << ' ';
|
||||
accept(ast->initializer);
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user