aboutsummaryrefslogtreecommitdiff
path: root/source/Core/ValueObjectSyntheticFilter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/Core/ValueObjectSyntheticFilter.cpp')
-rw-r--r--source/Core/ValueObjectSyntheticFilter.cpp14
1 files changed, 12 insertions, 2 deletions
diff --git a/source/Core/ValueObjectSyntheticFilter.cpp b/source/Core/ValueObjectSyntheticFilter.cpp
index e266267981b8..867b52016298 100644
--- a/source/Core/ValueObjectSyntheticFilter.cpp
+++ b/source/Core/ValueObjectSyntheticFilter.cpp
@@ -7,8 +7,6 @@
//
//===----------------------------------------------------------------------===//
-#include "lldb/lldb-python.h"
-
#include "lldb/Core/ValueObjectSyntheticFilter.h"
// C Includes
@@ -304,3 +302,15 @@ ValueObjectSynthetic::SetValueFromCString (const char *value_str, Error& error)
{
return m_parent->SetValueFromCString(value_str, error);
}
+
+void
+ValueObjectSynthetic::SetFormat (lldb::Format format)
+{
+ if (m_parent)
+ {
+ m_parent->ClearUserVisibleData(eClearUserVisibleDataItemsAll);
+ m_parent->SetFormat(format);
+ }
+ this->ValueObject::SetFormat(format);
+ this->ClearUserVisibleData(eClearUserVisibleDataItemsAll);
+}