Added the ability to get an set the desired format for SBValue objects.
Fixed the display of complex numbers in lldb_private::DataExtractor::Dump(...)
and also fixed other edge display cases in lldb_private::ClangASTType::DumpTypeValue(...).
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@122895 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/API/SBValue.cpp b/source/API/SBValue.cpp
index 8161c95..ffc5084 100644
--- a/source/API/SBValue.cpp
+++ b/source/API/SBValue.cpp
@@ -489,3 +489,19 @@
return true;
}
+
+lldb::Format
+SBValue::GetFormat () const
+{
+ if (m_opaque_sp)
+ return m_opaque_sp->GetFormat();
+ return eFormatDefault;
+}
+
+void
+SBValue::SetFormat (lldb::Format format)
+{
+ if (m_opaque_sp)
+ m_opaque_sp->SetFormat(format);
+}
+