LLDB  mainline
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Private Member Functions | Private 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 IsNil ()
 
bool IsUninitialized ()
 
bool IsPtr ()
 
bool IsRef ()
 
bool IsInstancePointer ()
 
bool IsAggregate ()
 
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
 

Private Member Functions

 ValueObjectPrinter (const ValueObjectPrinter &)=delete
 
const ValueObjectPrinteroperator= (const ValueObjectPrinter &)=delete
 

Private Attributes

ValueObjectm_orig_valobj
 
ValueObjectm_valobj
 
Streamm_stream
 
DumpValueObjectOptions m_options
 
Flags m_type_flags
 
CompilerType m_compiler_type
 
DumpValueObjectOptions::PointerDepth m_ptr_depth
 
uint32_t m_curr_depth
 
LazyBool m_should_print
 
LazyBool m_is_nil
 
LazyBool m_is_uninit
 
LazyBool m_is_ptr
 
LazyBool m_is_ref
 
LazyBool m_is_aggregate
 
LazyBool m_is_instance_ptr
 
std::pair< TypeSummaryImpl *, bool > m_summary_formatter
 
std::string m_value
 
std::string m_summary
 
std::string m_error
 
bool m_val_summary_ok
 

Friends

struct StringSummaryFormat
 

Detailed Description

Definition at line 23 of file ValueObjectPrinter.h.

Member Typedef Documentation

◆ InstancePointersSet

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

Definition at line 35 of file ValueObjectPrinter.h.

◆ InstancePointersSetSP

Definition at line 36 of file ValueObjectPrinter.h.

Constructor & Destructor Documentation

◆ ValueObjectPrinter() [1/4]

ValueObjectPrinter::ValueObjectPrinter ( ValueObject valobj,
Stream s 
)

◆ ValueObjectPrinter() [2/4]

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

◆ ~ValueObjectPrinter()

lldb_private::ValueObjectPrinter::~ValueObjectPrinter ( )
inline

Definition at line 30 of file ValueObjectPrinter.h.

References PrintValueObject().

◆ ValueObjectPrinter() [3/4]

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.

◆ ValueObjectPrinter() [4/4]

lldb_private::ValueObjectPrinter::ValueObjectPrinter ( const ValueObjectPrinter )
privatedelete

Member Function Documentation

◆ CheckScopeIfNeeded()

bool ValueObjectPrinter::CheckScopeIfNeeded ( )
protected

Definition at line 315 of file ValueObjectPrinter.cpp.

◆ GenerateChild()

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

◆ GetDescriptionForDisplay()

const char * ValueObjectPrinter::GetDescriptionForDisplay ( )
protected

Definition at line 145 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 154 of file ValueObjectPrinter.cpp.

◆ GetSummaryFormatter()

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

Definition at line 321 of file ValueObjectPrinter.cpp.

◆ GetValueObjectForChildrenGeneration()

ValueObject * ValueObjectPrinter::GetValueObjectForChildrenGeneration ( )
protected

Definition at line 537 of file ValueObjectPrinter.cpp.

◆ GetValueSummaryError()

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

Definition at line 344 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

◆ operator=()

const ValueObjectPrinter& lldb_private::ValueObjectPrinter::operator= ( const ValueObjectPrinter )
privatedelete

◆ 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 656 of file ValueObjectPrinter.cpp.

◆ PrintChildrenIfNeeded()

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

◆ PrintChildrenOneLiner()

bool ValueObjectPrinter::PrintChildrenOneLiner ( bool  hide_names)
protected

◆ PrintChildrenPostamble()

void ValueObjectPrinter::PrintChildrenPostamble ( bool  print_dotdotdot)
protected

Definition at line 601 of file ValueObjectPrinter.cpp.

◆ PrintChildrenPreamble()

void ValueObjectPrinter::PrintChildrenPreamble ( )
protected

Definition at line 541 of file ValueObjectPrinter.cpp.

◆ PrintDecl()

void ValueObjectPrinter::PrintDecl ( )
protected

◆ PrintLocationIfNeeded()

bool ValueObjectPrinter::PrintLocationIfNeeded ( )
protected

Definition at line 214 of file ValueObjectPrinter.cpp.

◆ PrintObjectDescriptionIfNeeded()

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

Definition at line 434 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

◆ ShouldPrintValueObject()

bool ValueObjectPrinter::ShouldPrintValueObject ( )
protected

Friends And Related Function Documentation

◆ StringSummaryFormat

friend struct StringSummaryFormat
friend

Definition at line 142 of file ValueObjectPrinter.h.

Member Data Documentation

◆ m_compiler_type

CompilerType lldb_private::ValueObjectPrinter::m_compiler_type
private

Definition at line 126 of file ValueObjectPrinter.h.

◆ m_curr_depth

uint32_t lldb_private::ValueObjectPrinter::m_curr_depth
private

Definition at line 128 of file ValueObjectPrinter.h.

◆ m_error

std::string lldb_private::ValueObjectPrinter::m_error
private

Definition at line 139 of file ValueObjectPrinter.h.

◆ m_is_aggregate

LazyBool lldb_private::ValueObjectPrinter::m_is_aggregate
private

Definition at line 134 of file ValueObjectPrinter.h.

◆ m_is_instance_ptr

LazyBool lldb_private::ValueObjectPrinter::m_is_instance_ptr
private

Definition at line 135 of file ValueObjectPrinter.h.

◆ m_is_nil

LazyBool lldb_private::ValueObjectPrinter::m_is_nil
private

Definition at line 130 of file ValueObjectPrinter.h.

◆ m_is_ptr

LazyBool lldb_private::ValueObjectPrinter::m_is_ptr
private

Definition at line 132 of file ValueObjectPrinter.h.

◆ m_is_ref

LazyBool lldb_private::ValueObjectPrinter::m_is_ref
private

Definition at line 133 of file ValueObjectPrinter.h.

◆ m_is_uninit

LazyBool lldb_private::ValueObjectPrinter::m_is_uninit
private

Definition at line 131 of file ValueObjectPrinter.h.

◆ m_options

DumpValueObjectOptions lldb_private::ValueObjectPrinter::m_options
private

Definition at line 124 of file ValueObjectPrinter.h.

◆ m_orig_valobj

ValueObject* lldb_private::ValueObjectPrinter::m_orig_valobj
private

Definition at line 121 of file ValueObjectPrinter.h.

◆ m_printed_instance_pointers

InstancePointersSetSP lldb_private::ValueObjectPrinter::m_printed_instance_pointers
protected

Definition at line 38 of file ValueObjectPrinter.h.

◆ m_ptr_depth

DumpValueObjectOptions::PointerDepth lldb_private::ValueObjectPrinter::m_ptr_depth
private

Definition at line 127 of file ValueObjectPrinter.h.

◆ m_should_print

LazyBool lldb_private::ValueObjectPrinter::m_should_print
private

Definition at line 129 of file ValueObjectPrinter.h.

◆ m_stream

Stream* lldb_private::ValueObjectPrinter::m_stream
private

Definition at line 123 of file ValueObjectPrinter.h.

◆ m_summary

std::string lldb_private::ValueObjectPrinter::m_summary
private

Definition at line 138 of file ValueObjectPrinter.h.

◆ m_summary_formatter

std::pair<TypeSummaryImpl *, bool> lldb_private::ValueObjectPrinter::m_summary_formatter
private

Definition at line 136 of file ValueObjectPrinter.h.

◆ m_type_flags

Flags lldb_private::ValueObjectPrinter::m_type_flags
private

Definition at line 125 of file ValueObjectPrinter.h.

◆ m_val_summary_ok

bool lldb_private::ValueObjectPrinter::m_val_summary_ok
private

Definition at line 140 of file ValueObjectPrinter.h.

◆ m_valobj

ValueObject* lldb_private::ValueObjectPrinter::m_valobj
private

Definition at line 122 of file ValueObjectPrinter.h.

◆ m_value

std::string lldb_private::ValueObjectPrinter::m_value
private

Definition at line 137 of file ValueObjectPrinter.h.


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