diff options
| author | Enrico Granata <egranata@apple.com> | 2012-07-13 18:55:41 +0000 |
|---|---|---|
| committer | Enrico Granata <egranata@apple.com> | 2012-07-13 18:55:41 +0000 |
| commit | 4b7b5aa0bccc73bb4bd644ddf84cd7e36556d575 (patch) | |
| tree | baa2cda449eeebe00c1032ad9ec7d5e885b765ca /lldb/source | |
| parent | 4ed7ef1f722e3ce8f2620b8a2ee4828171553dea (diff) | |
| download | bcm5719-llvm-4b7b5aa0bccc73bb4bd644ddf84cd7e36556d575.tar.gz bcm5719-llvm-4b7b5aa0bccc73bb4bd644ddf84cd7e36556d575.zip | |
<rdar://problem/11773899> Formatters for BOOL* and BOOL&
llvm-svn: 160181
Diffstat (limited to 'lldb/source')
| -rw-r--r-- | lldb/source/Core/FormatManager.cpp | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/lldb/source/Core/FormatManager.cpp b/lldb/source/Core/FormatManager.cpp index da03277d63a..cd689d6f6ff 100644 --- a/lldb/source/Core/FormatManager.cpp +++ b/lldb/source/Core/FormatManager.cpp @@ -884,8 +884,8 @@ FormatManager::LoadObjCFormatters() { TypeSummaryImpl::Flags objc_flags; objc_flags.SetCascades(false) - .SetSkipPointers(false) - .SetSkipReferences(false) + .SetSkipPointers(true) + .SetSkipReferences(true) .SetDontShowChildren(true) .SetDontShowValue(true) .SetShowMembersOneLiner(false) @@ -897,6 +897,18 @@ FormatManager::LoadObjCFormatters() TypeCategoryImpl::SharedPointer objc_category_sp = GetCategory(m_objc_category_name); objc_category_sp->GetSummaryNavigator()->Add(ConstString("BOOL"), ObjC_BOOL_summary); + + lldb::TypeSummaryImplSP ObjC_BOOLRef_summary(new ScriptSummaryFormat(objc_flags, + "lldb.formatters.objc.objc.BOOLRef_SummaryProvider", + "")); + objc_category_sp->GetSummaryNavigator()->Add(ConstString("BOOL &"), + ObjC_BOOLRef_summary); + lldb::TypeSummaryImplSP ObjC_BOOLPtr_summary(new ScriptSummaryFormat(objc_flags, + "lldb.formatters.objc.objc.BOOLPtr_SummaryProvider", + "")); + objc_category_sp->GetSummaryNavigator()->Add(ConstString("BOOL *"), + ObjC_BOOLPtr_summary); + // we need to skip pointers here since we are special casing a SEL* when retrieving its value objc_flags.SetSkipPointers(true); |

