File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed
lldb/source/Plugins/Language Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -132,6 +132,20 @@ bool lldb_private::formatters::NSTimeZoneSummaryProvider(
132
132
stream.Printf (" %s" , summary_stream.GetData ());
133
133
return true ;
134
134
}
135
+ } else if (class_name == " _NSSwiftTimeZone" ) {
136
+ llvm::ArrayRef<ConstString> identifier_path = {
137
+ ConstString (" timeZone" ),
138
+ ConstString (" _timeZone" ),
139
+ ConstString (" some" ),
140
+ ConstString (" identifier" ),
141
+ };
142
+ if (auto identifier_sp = valobj.GetChildAtNamePath (identifier_path)) {
143
+ std::string desc;
144
+ if (identifier_sp->GetSummaryAsCString (desc, options)) {
145
+ stream.PutCString (desc);
146
+ return true ;
147
+ }
148
+ }
135
149
}
136
150
137
151
return false ;
Original file line number Diff line number Diff line change @@ -636,6 +636,11 @@ LoadFoundationValueTypesFormatters(lldb::TypeCategoryImplSP swift_category_sp) {
636
636
" Decimal summary provider" , ConstString (" Foundation.Decimal" ),
637
637
TypeSummaryImpl::Flags (summary_flags).SetDontShowChildren (true ));
638
638
639
+ lldb_private::formatters::AddCXXSummary (
640
+ swift_category_sp, lldb_private::formatters::NSTimeZoneSummaryProvider,
641
+ " NSTimeZone summary provider" , ConstString (" Foundation._NSSwiftTimeZone" ),
642
+ TypeSummaryImpl::Flags (summary_flags).SetDontShowChildren (true ));
643
+
639
644
lldb_private::formatters::AddCXXSynthetic (
640
645
swift_category_sp,
641
646
lldb_private::formatters::swift::URLComponentsSyntheticFrontEndCreator,
You can’t perform that action at this time.
0 commit comments