summaryrefslogtreecommitdiff
path: root/shared/cplusplus/PrettyPrinter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'shared/cplusplus/PrettyPrinter.cpp')
-rw-r--r--shared/cplusplus/PrettyPrinter.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/shared/cplusplus/PrettyPrinter.cpp b/shared/cplusplus/PrettyPrinter.cpp
index d6addb855b..8a8b43bb37 100644
--- a/shared/cplusplus/PrettyPrinter.cpp
+++ b/shared/cplusplus/PrettyPrinter.cpp
@@ -366,6 +366,7 @@ bool PrettyPrinter::visit(DeclaratorAST *ast)
out << ' ';
}
if (ast->initializer) {
+ out << ' ';
out << '=';
out << ' ';
accept(ast->initializer);