@@ -596,47 +596,47 @@ class CommandObjectObjC_ClassTable_Dump : public CommandObjectParsed
596
596
{
597
597
auto iterators_pair = objc_runtime->GetDescriptorIteratorPair ();
598
598
auto iterator = iterators_pair.first ;
599
- Stream & stdout ( result.GetOutputStream () );
599
+ auto &out = result.GetOutputStream ();
600
600
for (; iterator != iterators_pair.second ; iterator++)
601
601
{
602
602
if (iterator->second )
603
603
{
604
604
const char * class_name = iterator->second ->GetClassName ().AsCString (" <unknown>" );
605
605
if (regex_up && class_name && !regex_up->Execute (class_name))
606
606
continue ;
607
- stdout .Printf (" isa = 0x%" PRIx64, iterator->first );
608
- stdout .Printf (" name = %s" , class_name);
609
- stdout .Printf (" instance size = %" PRIu64, iterator->second ->GetInstanceSize ());
610
- stdout .Printf (" num ivars = %" PRIuPTR, (uintptr_t )iterator->second ->GetNumIVars ());
607
+ out .Printf (" isa = 0x%" PRIx64, iterator->first );
608
+ out .Printf (" name = %s" , class_name);
609
+ out .Printf (" instance size = %" PRIu64, iterator->second ->GetInstanceSize ());
610
+ out .Printf (" num ivars = %" PRIuPTR, (uintptr_t )iterator->second ->GetNumIVars ());
611
611
if (auto superclass = iterator->second ->GetSuperclass ())
612
612
{
613
- stdout .Printf (" superclass = %s" , superclass->GetClassName ().AsCString (" <unknown>" ));
613
+ out .Printf (" superclass = %s" , superclass->GetClassName ().AsCString (" <unknown>" ));
614
614
}
615
- stdout .Printf (" \n " );
615
+ out .Printf (" \n " );
616
616
if (m_options.m_verbose )
617
617
{
618
618
for (size_t i = 0 ;
619
619
i < iterator->second ->GetNumIVars ();
620
620
i++)
621
621
{
622
622
auto ivar = iterator->second ->GetIVarAtIndex (i);
623
- stdout .Printf (" ivar name = %s type = %s size = %" PRIu64 " offset = %" PRId32 " \n " ,
623
+ out .Printf (" ivar name = %s type = %s size = %" PRIu64 " offset = %" PRId32 " \n " ,
624
624
ivar.m_name .AsCString (" <unknown>" ),
625
625
ivar.m_type .GetDisplayTypeName ().AsCString (" <unknown>" ),
626
626
ivar.m_size ,
627
627
ivar.m_offset );
628
628
}
629
629
iterator->second ->Describe (nullptr ,
630
- [objc_runtime, &stdout ] (const char * name, const char * type) -> bool {
631
- stdout .Printf (" instance method name = %s type = %s\n " ,
632
- name,
633
- type);
630
+ [objc_runtime, &out ] (const char * name, const char * type) -> bool {
631
+ out .Printf (" instance method name = %s type = %s\n " ,
632
+ name,
633
+ type);
634
634
return false ;
635
635
},
636
- [objc_runtime, &stdout ] (const char * name, const char * type) -> bool {
637
- stdout .Printf (" class method name = %s type = %s\n " ,
638
- name,
639
- type);
636
+ [objc_runtime, &out ] (const char * name, const char * type) -> bool {
637
+ out .Printf (" class method name = %s type = %s\n " ,
638
+ name,
639
+ type);
640
640
return false ;
641
641
},
642
642
nullptr );
@@ -646,7 +646,7 @@ class CommandObjectObjC_ClassTable_Dump : public CommandObjectParsed
646
646
{
647
647
if (regex_up && !regex_up->Execute (" " ))
648
648
continue ;
649
- stdout .Printf (" isa = 0x%" PRIx64 " has no associated class.\n " , iterator->first );
649
+ out .Printf (" isa = 0x%" PRIx64 " has no associated class.\n " , iterator->first );
650
650
}
651
651
}
652
652
result.SetStatus (lldb::eReturnStatusSuccessFinishResult);
0 commit comments