Fixed expression result printing to have the expression result type be in
parens and to have a space before the value.
Before:
(lldb) expr 3 + 1
int4
(lldb) expr 3 + 1
(int) 4
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@109793 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Commands/CommandObjectExpression.cpp b/source/Commands/CommandObjectExpression.cpp
index cd5c8f3..d0c8295 100644
--- a/source/Commands/CommandObjectExpression.cpp
+++ b/source/Commands/CommandObjectExpression.cpp
@@ -464,7 +464,7 @@
if (clang_type)
{
if (m_options.show_types)
- output_stream.PutCString(ClangASTType::GetClangTypeName (clang_type).GetCString());
+ output_stream.Printf("(%s) ", ClangASTType::GetClangTypeName (clang_type).GetCString());
ClangASTType::DumpValue (ast_context, // The ASTContext that the clang type belongs to
clang_type, // The opaque clang type we want to dump that value of