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(...). llvm-svn: 122895
This commit is contained in:
@@ -489,3 +489,19 @@ SBValue::GetDescription (SBStream &description)
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user