diff options
author | Roberto Raggi <qtc-committer@nokia.com> | 2009-01-13 14:58:29 +0100 |
---|---|---|
committer | Roberto Raggi <qtc-committer@nokia.com> | 2009-01-13 15:04:01 +0100 |
commit | 248480b7c952b2b981e3ec9c40bf0f0761c12ac5 (patch) | |
tree | 3278da759fff46c1d93491fd5c4d0bad52577c34 /shared/cplusplus/PrettyPrinter.cpp | |
parent | dd235e2b4827ce76c7dff86a1c3e35400161a33b (diff) | |
download | qt-creator-248480b7c952b2b981e3ec9c40bf0f0761c12ac5.tar.gz |
Added support for C99 compound literals.
Diffstat (limited to 'shared/cplusplus/PrettyPrinter.cpp')
-rw-r--r-- | shared/cplusplus/PrettyPrinter.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/shared/cplusplus/PrettyPrinter.cpp b/shared/cplusplus/PrettyPrinter.cpp index 72338576b6..af80cee197 100644 --- a/shared/cplusplus/PrettyPrinter.cpp +++ b/shared/cplusplus/PrettyPrinter.cpp @@ -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; +} |