diff --git a/shared/cplusplus/PrettyPrinter.cpp b/shared/cplusplus/PrettyPrinter.cpp
index d6addb855b0e606b186cd9b72ff8c663a017fea8..8a8b43bb37b0bacd64e693735c7980166e27749f 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);