Please use GitHub pull requests for new patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
lldb/source/Plugins/Language/CPlusPlus/BlockPointer.cpp
Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | |||||
CompilerType m_block_struct_type; | CompilerType m_block_struct_type; | ||||
}; | }; | ||||
} // namespace formatters | } // namespace formatters | ||||
} // namespace lldb_private | } // namespace lldb_private | ||||
bool lldb_private::formatters::BlockPointerSummaryProvider( | bool lldb_private::formatters::BlockPointerSummaryProvider( | ||||
ValueObject &valobj, Stream &s, const TypeSummaryOptions &) { | ValueObject &valobj, Stream &s, const TypeSummaryOptions &) { | ||||
lldb_private::SyntheticChildrenFrontEnd *synthetic_children = | std::unique_ptr<SyntheticChildrenFrontEnd> synthetic_children; | ||||
BlockPointerSyntheticFrontEndCreator(nullptr, valobj.GetSP()); | synthetic_children.reset( | ||||
if (!synthetic_children) { | BlockPointerSyntheticFrontEndCreator(nullptr, valobj.GetSP())); | ||||
if (!synthetic_children.get()) { | |||||
return false; | return false; | ||||
} | } | ||||
synthetic_children->Update(); | synthetic_children->Update(); | ||||
static const ConstString s_FuncPtr_name("__FuncPtr"); | static const ConstString s_FuncPtr_name("__FuncPtr"); | ||||
lldb::ValueObjectSP child_sp = synthetic_children->GetChildAtIndex( | lldb::ValueObjectSP child_sp = synthetic_children->GetChildAtIndex( | ||||
Show All 25 Lines |