Please use GitHub pull requests for new patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
lldb/source/DataFormatters/VectorType.cpp
Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | |||||
size_t m_num_children; | size_t m_num_children; | ||||
}; | }; | ||||
} // namespace formatters | } // namespace formatters | ||||
} // namespace lldb_private | } // namespace lldb_private | ||||
bool lldb_private::formatters::VectorTypeSummaryProvider( | bool lldb_private::formatters::VectorTypeSummaryProvider( | ||||
ValueObject &valobj, Stream &s, const TypeSummaryOptions &) { | ValueObject &valobj, Stream &s, const TypeSummaryOptions &) { | ||||
auto synthetic_children = | std::unique_ptr<SyntheticChildrenFrontEnd> synthetic_children; | ||||
VectorTypeSyntheticFrontEndCreator(nullptr, valobj.GetSP()); | synthetic_children.reset( | ||||
if (!synthetic_children) | VectorTypeSyntheticFrontEndCreator(nullptr, valobj.GetSP())); | ||||
if (!synthetic_children.get()) | |||||
return false; | return false; | ||||
synthetic_children->Update(); | synthetic_children->Update(); | ||||
s.PutChar('('); | s.PutChar('('); | ||||
bool first = true; | bool first = true; | ||||
size_t idx = 0, len = synthetic_children->CalculateNumChildren(); | size_t idx = 0, len = synthetic_children->CalculateNumChildren(); | ||||
Show All 31 Lines |