LLDB  mainline
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Friends | List of all members
lldb_private::ValueObjectPrinter Class Reference

#include <ValueObjectPrinter.h>

Collaboration diagram for lldb_private::ValueObjectPrinter:
Collaboration graph
[legend]

Public Member Functions

 ValueObjectPrinter (ValueObject *valobj, Stream *s)
 
 ValueObjectPrinter (ValueObject *valobj, Stream *s, const DumpValueObjectOptions &options)
 
 ~ValueObjectPrinter ()
 
bool PrintValueObject ()
 

Protected Types

typedef std::set< uint64_t > InstancePointersSet
 
typedef std::shared_ptr< InstancePointersSetInstancePointersSetSP
 

Protected Member Functions

 ValueObjectPrinter (ValueObject *valobj, Stream *s, const DumpValueObjectOptions &options, const DumpValueObjectOptions::PointerDepth &ptr_depth, uint32_t curr_depth, InstancePointersSetSP printed_instance_pointers)
 
void Init (ValueObject *valobj, Stream *s, const DumpValueObjectOptions &options, const DumpValueObjectOptions::PointerDepth &ptr_depth, uint32_t curr_depth, InstancePointersSetSP printed_instance_pointers)
 
bool GetMostSpecializedValue ()
 
const char * GetDescriptionForDisplay ()
 
const char * GetRootNameForDisplay (const char *if_fail=nullptr)
 
bool ShouldPrintValueObject ()
 
bool ShouldPrintValidation ()
 
bool IsNil ()
 
bool IsUninitialized ()
 
bool IsPtr ()
 
bool IsRef ()
 
bool IsInstancePointer ()
 
bool IsAggregate ()
 
bool PrintValidationMarkerIfNeeded ()
 
bool PrintValidationErrorIfNeeded ()
 
bool PrintLocationIfNeeded ()
 
void PrintDecl ()
 
bool CheckScopeIfNeeded ()
 
bool ShouldPrintEmptyBrackets (bool value_printed, bool summary_printed)
 
TypeSummaryImplGetSummaryFormatter (bool null_if_omitted=true)
 
void GetValueSummaryError (std::string &value, std::string &summary, std::string &error)
 
bool PrintValueAndSummaryIfNeeded (bool &value_printed, bool &summary_printed)
 
bool PrintObjectDescriptionIfNeeded (bool value_printed, bool summary_printed)
 
bool ShouldPrintChildren (bool is_failed_description, DumpValueObjectOptions::PointerDepth &curr_ptr_depth)
 
bool ShouldExpandEmptyAggregates ()
 
ValueObjectGetValueObjectForChildrenGeneration ()
 
void PrintChildrenPreamble ()
 
void PrintChildrenPostamble (bool print_dotdotdot)
 
lldb::ValueObjectSP GenerateChild (ValueObject *synth_valobj, size_t idx)
 
void PrintChild (lldb::ValueObjectSP child_sp, const DumpValueObjectOptions::PointerDepth &curr_ptr_depth)
 
uint32_t GetMaxNumChildrenToPrint (bool &print_dotdotdot)
 
void PrintChildren (bool value_printed, bool summary_printed, const DumpValueObjectOptions::PointerDepth &curr_ptr_depth)
 
void PrintChildrenIfNeeded (bool value_printed, bool summary_printed)
 
bool PrintChildrenOneLiner (bool hide_names)
 

Protected Attributes

InstancePointersSetSP m_printed_instance_pointers
 

Friends

struct StringSummaryFormat
 

Detailed Description

Definition at line 24 of file ValueObjectPrinter.h.

Member Typedef Documentation

◆ InstancePointersSet

typedef std::set<uint64_t> lldb_private::ValueObjectPrinter::InstancePointersSet
protected

Definition at line 36 of file ValueObjectPrinter.h.

◆ InstancePointersSetSP

Definition at line 37 of file ValueObjectPrinter.h.

Constructor & Destructor Documentation

◆ ValueObjectPrinter() [1/3]

ValueObjectPrinter::ValueObjectPrinter ( ValueObject valobj,
Stream s 
)

◆ ValueObjectPrinter() [2/3]

ValueObjectPrinter::ValueObjectPrinter ( ValueObject valobj,
Stream s,
const DumpValueObjectOptions options 
)

◆ ~ValueObjectPrinter()

lldb_private::ValueObjectPrinter::~ValueObjectPrinter ( )
inline

Definition at line 31 of file ValueObjectPrinter.h.

References PrintValueObject().

◆ ValueObjectPrinter() [3/3]

ValueObjectPrinter::ValueObjectPrinter ( ValueObject valobj,
Stream s,
const DumpValueObjectOptions options,
const DumpValueObjectOptions::PointerDepth ptr_depth,
uint32_t  curr_depth,
InstancePointersSetSP  printed_instance_pointers 
)
protected

Definition at line 36 of file ValueObjectPrinter.cpp.

Member Function Documentation

◆ CheckScopeIfNeeded()

bool ValueObjectPrinter::CheckScopeIfNeeded ( )
protected

Definition at line 321 of file ValueObjectPrinter.cpp.

◆ GenerateChild()

ValueObjectSP ValueObjectPrinter::GenerateChild ( ValueObject synth_valobj,
size_t  idx 
)
protected

◆ GetDescriptionForDisplay()

const char * ValueObjectPrinter::GetDescriptionForDisplay ( )
protected

Definition at line 149 of file ValueObjectPrinter.cpp.

◆ GetMaxNumChildrenToPrint()

uint32_t ValueObjectPrinter::GetMaxNumChildrenToPrint ( bool &  print_dotdotdot)
protected

◆ GetMostSpecializedValue()

bool ValueObjectPrinter::GetMostSpecializedValue ( )
protected

◆ GetRootNameForDisplay()

const char * ValueObjectPrinter::GetRootNameForDisplay ( const char *  if_fail = nullptr)
protected

Definition at line 158 of file ValueObjectPrinter.cpp.

◆ GetSummaryFormatter()

TypeSummaryImpl * ValueObjectPrinter::GetSummaryFormatter ( bool  null_if_omitted = true)
protected

Definition at line 327 of file ValueObjectPrinter.cpp.

◆ GetValueObjectForChildrenGeneration()

ValueObject * ValueObjectPrinter::GetValueObjectForChildrenGeneration ( )
protected

Definition at line 542 of file ValueObjectPrinter.cpp.

◆ GetValueSummaryError()

void ValueObjectPrinter::GetValueSummaryError ( std::string &  value,
std::string &  summary,
std::string &  error 
)
protected

Definition at line 350 of file ValueObjectPrinter.cpp.

References lldb::eFormatDefault.

◆ Init()

void ValueObjectPrinter::Init ( ValueObject valobj,
Stream s,
const DumpValueObjectOptions options,
const DumpValueObjectOptions::PointerDepth ptr_depth,
uint32_t  curr_depth,
InstancePointersSetSP  printed_instance_pointers 
)
protected

Definition at line 43 of file ValueObjectPrinter.cpp.

References lldb_private::eLazyBoolCalculate.

◆ IsAggregate()

bool ValueObjectPrinter::IsAggregate ( )
protected

◆ IsInstancePointer()

bool ValueObjectPrinter::IsInstancePointer ( )
protected

◆ IsNil()

bool ValueObjectPrinter::IsNil ( )
protected

◆ IsPtr()

bool ValueObjectPrinter::IsPtr ( )
protected

◆ IsRef()

bool ValueObjectPrinter::IsRef ( )
protected

◆ IsUninitialized()

bool ValueObjectPrinter::IsUninitialized ( )
protected

◆ PrintChild()

void ValueObjectPrinter::PrintChild ( lldb::ValueObjectSP  child_sp,
const DumpValueObjectOptions::PointerDepth curr_ptr_depth 
)
protected

◆ PrintChildren()

void ValueObjectPrinter::PrintChildren ( bool  value_printed,
bool  summary_printed,
const DumpValueObjectOptions::PointerDepth curr_ptr_depth 
)
protected

Definition at line 661 of file ValueObjectPrinter.cpp.

◆ PrintChildrenIfNeeded()

void ValueObjectPrinter::PrintChildrenIfNeeded ( bool  value_printed,
bool  summary_printed 
)
protected

Definition at line 751 of file ValueObjectPrinter.cpp.

References LLDB_INVALID_ADDRESS.

◆ PrintChildrenOneLiner()

bool ValueObjectPrinter::PrintChildrenOneLiner ( bool  hide_names)
protected

◆ PrintChildrenPostamble()

void ValueObjectPrinter::PrintChildrenPostamble ( bool  print_dotdotdot)
protected

Definition at line 606 of file ValueObjectPrinter.cpp.

◆ PrintChildrenPreamble()

void ValueObjectPrinter::PrintChildrenPreamble ( )
protected

Definition at line 546 of file ValueObjectPrinter.cpp.

◆ PrintDecl()

void ValueObjectPrinter::PrintDecl ( )
protected

◆ PrintLocationIfNeeded()

bool ValueObjectPrinter::PrintLocationIfNeeded ( )
protected

Definition at line 218 of file ValueObjectPrinter.cpp.

◆ PrintObjectDescriptionIfNeeded()

bool ValueObjectPrinter::PrintObjectDescriptionIfNeeded ( bool  value_printed,
bool  summary_printed 
)
protected

Definition at line 439 of file ValueObjectPrinter.cpp.

◆ PrintValidationErrorIfNeeded()

bool ValueObjectPrinter::PrintValidationErrorIfNeeded ( )
protected

Definition at line 815 of file ValueObjectPrinter.cpp.

◆ PrintValidationMarkerIfNeeded()

bool ValueObjectPrinter::PrintValidationMarkerIfNeeded ( )
protected

Definition at line 801 of file ValueObjectPrinter.cpp.

◆ PrintValueAndSummaryIfNeeded()

bool ValueObjectPrinter::PrintValueAndSummaryIfNeeded ( bool &  value_printed,
bool &  summary_printed 
)
protected

◆ PrintValueObject()

bool ValueObjectPrinter::PrintValueObject ( )

◆ ShouldExpandEmptyAggregates()

bool ValueObjectPrinter::ShouldExpandEmptyAggregates ( )
protected

◆ ShouldPrintChildren()

bool ValueObjectPrinter::ShouldPrintChildren ( bool  is_failed_description,
DumpValueObjectOptions::PointerDepth curr_ptr_depth 
)
protected

◆ ShouldPrintEmptyBrackets()

bool ValueObjectPrinter::ShouldPrintEmptyBrackets ( bool  value_printed,
bool  summary_printed 
)
protected

◆ ShouldPrintValidation()

bool ValueObjectPrinter::ShouldPrintValidation ( )
protected

Definition at line 797 of file ValueObjectPrinter.cpp.

◆ ShouldPrintValueObject()

bool ValueObjectPrinter::ShouldPrintValueObject ( )
protected

Friends And Related Function Documentation

◆ StringSummaryFormat

friend struct StringSummaryFormat
friend

Definition at line 150 of file ValueObjectPrinter.h.

Member Data Documentation

◆ m_printed_instance_pointers

InstancePointersSetSP lldb_private::ValueObjectPrinter::m_printed_instance_pointers
protected

Definition at line 39 of file ValueObjectPrinter.h.


The documentation for this class was generated from the following files: