LLDB mainline
|
#include <TypeSynthetic.h>
Public Types | |
typedef std::shared_ptr< SyntheticChildrenFrontEnd > | SharedPointer |
typedef std::unique_ptr< SyntheticChildrenFrontEnd > | AutoPointer |
Public Member Functions | |
SyntheticChildrenFrontEnd (ValueObject &backend) | |
virtual | ~SyntheticChildrenFrontEnd ()=default |
virtual llvm::Expected< uint32_t > | CalculateNumChildren ()=0 |
virtual llvm::Expected< uint32_t > | CalculateNumChildren (uint32_t max) |
uint32_t | CalculateNumChildrenIgnoringErrors (uint32_t max=UINT32_MAX) |
virtual lldb::ValueObjectSP | GetChildAtIndex (uint32_t idx)=0 |
virtual size_t | GetIndexOfChildWithName (ConstString name)=0 |
virtual lldb::ChildCacheState | Update ()=0 |
This function is assumed to always succeed and if it fails, the front-end should know to deal with it in the correct way (most probably, by refusing to return any children). | |
virtual bool | MightHaveChildren ()=0 |
virtual lldb::ValueObjectSP | GetSyntheticValue () |
virtual ConstString | GetSyntheticTypeName () |
Protected Member Functions | |
void | SetValid (bool valid) |
bool | IsValid () |
lldb::ValueObjectSP | CreateValueObjectFromExpression (llvm::StringRef name, llvm::StringRef expression, const ExecutionContext &exe_ctx) |
lldb::ValueObjectSP | CreateValueObjectFromAddress (llvm::StringRef name, uint64_t address, const ExecutionContext &exe_ctx, CompilerType type) |
lldb::ValueObjectSP | CreateValueObjectFromData (llvm::StringRef name, const DataExtractor &data, const ExecutionContext &exe_ctx, CompilerType type) |
Protected Attributes | |
ValueObject & | m_backend |
Private Member Functions | |
SyntheticChildrenFrontEnd (const SyntheticChildrenFrontEnd &)=delete | |
const SyntheticChildrenFrontEnd & | operator= (const SyntheticChildrenFrontEnd &)=delete |
Private Attributes | |
bool | m_valid |
Definition at line 27 of file TypeSynthetic.h.
typedef std::unique_ptr<SyntheticChildrenFrontEnd> lldb_private::SyntheticChildrenFrontEnd::AutoPointer |
Definition at line 84 of file TypeSynthetic.h.
typedef std::shared_ptr<SyntheticChildrenFrontEnd> lldb_private::SyntheticChildrenFrontEnd::SharedPointer |
Definition at line 83 of file TypeSynthetic.h.
|
inline |
Definition at line 36 of file TypeSynthetic.h.
|
virtualdefault |
|
privatedelete |
|
pure virtual |
Implemented in lldb_private::SyntheticValueProviderFrontEnd, lldb_private::TypeFilterImpl::FrontEnd, lldb_private::ScriptedSyntheticChildren::FrontEnd, lldb_private::formatters::VectorIteratorSyntheticFrontEnd, lldb_private::formatters::VectorTypeSyntheticFrontEnd, lldb_private::formatters::BlockPointerSyntheticFrontEnd, lldb_private::formatters::StdlibCoroutineHandleSyntheticFrontEnd, lldb_private::formatters::LibcxxSharedPtrSyntheticFrontEnd, lldb_private::formatters::LibcxxUniquePtrSyntheticFrontEnd, lldb_private::formatters::LibcxxStdAtomicSyntheticFrontEnd, lldb_private::formatters::LibcxxInitializerListSyntheticFrontEnd, lldb_private::formatters::LibcxxStdMapSyntheticFrontEnd, lldb_private::formatters::LibCxxMapIteratorSyntheticFrontEnd, lldb_private::formatters::LibcxxStdProxyArraySyntheticFrontEnd, lldb_private::formatters::LibcxxStdRangesRefViewSyntheticFrontEnd, lldb_private::formatters::LibcxxStdSliceArraySyntheticFrontEnd, lldb_private::formatters::LibcxxStdSpanSyntheticFrontEnd, lldb_private::formatters::LibcxxStdUnorderedMapSyntheticFrontEnd, lldb_private::formatters::LibCxxUnorderedMapIteratorSyntheticFrontEnd, lldb_private::formatters::LibcxxStdValarraySyntheticFrontEnd, lldb_private::formatters::LibcxxStdVectorSyntheticFrontEnd, lldb_private::formatters::LibcxxVectorBoolSyntheticFrontEnd, ObjCClassSyntheticChildrenFrontEnd, lldb_private::formatters::NSArrayMSyntheticFrontEndBase, lldb_private::formatters::GenericNSArrayISyntheticFrontEnd< D32, D64, Inline >, lldb_private::formatters::NSArray0SyntheticFrontEnd, lldb_private::formatters::NSArray1SyntheticFrontEnd, lldb_private::formatters::NSDictionaryISyntheticFrontEnd, lldb_private::formatters::NSConstantDictionarySyntheticFrontEnd, lldb_private::formatters::NSCFDictionarySyntheticFrontEnd, lldb_private::formatters::NSDictionary1SyntheticFrontEnd, lldb_private::formatters::GenericNSDictionaryMSyntheticFrontEnd< D32, D64 >, lldb_private::formatters::Foundation1100::NSDictionaryMSyntheticFrontEnd, NSErrorSyntheticFrontEnd, NSExceptionSyntheticFrontEnd, NSIndexPathSyntheticFrontEnd, lldb_private::formatters::NSSetISyntheticFrontEnd, lldb_private::formatters::NSCFSetSyntheticFrontEnd, lldb_private::formatters::GenericNSSetMSyntheticFrontEnd< D32, D64 >, lldb_private::formatters::NSSetCodeRunningSyntheticFrontEnd, and DummySyntheticFrontEnd.
Referenced by CalculateNumChildren(), and CalculateNumChildrenIgnoringErrors().
|
inlinevirtual |
Reimplemented in lldb_private::ScriptedSyntheticChildren::FrontEnd.
Definition at line 43 of file TypeSynthetic.h.
References CalculateNumChildren().
uint32_t SyntheticChildrenFrontEnd::CalculateNumChildrenIgnoringErrors | ( | uint32_t | max = UINT32_MAX | ) |
Definition at line 119 of file TypeSynthetic.cpp.
References CalculateNumChildren(), lldb_private::DataFormatters, lldb_private::GetLog(), and LLDB_LOG_ERRORV.
Referenced by lldb_private::formatters::BlockPointerSyntheticFrontEnd::GetChildAtIndex(), lldb_private::formatters::VectorTypeSyntheticFrontEnd::GetIndexOfChildWithName(), and NSIndexPathSyntheticFrontEnd::GetIndexOfChildWithName().
|
protected |
Definition at line 138 of file TypeSynthetic.cpp.
References lldb_private::ValueObject::CreateValueObjectFromAddress().
Referenced by lldb_private::formatters::VectorIteratorSyntheticFrontEnd::Update().
|
protected |
Definition at line 148 of file TypeSynthetic.cpp.
References lldb_private::ValueObject::CreateValueObjectFromData().
Referenced by NSErrorSyntheticFrontEnd::Update().
|
protected |
Definition at line 128 of file TypeSynthetic.cpp.
References lldb_private::ValueObject::CreateValueObjectFromExpression().
|
pure virtual |
Implemented in lldb_private::SyntheticValueProviderFrontEnd, lldb_private::TypeFilterImpl::FrontEnd, lldb_private::ScriptedSyntheticChildren::FrontEnd, lldb_private::formatters::VectorIteratorSyntheticFrontEnd, lldb_private::formatters::VectorTypeSyntheticFrontEnd, lldb_private::formatters::BlockPointerSyntheticFrontEnd, lldb_private::formatters::StdlibCoroutineHandleSyntheticFrontEnd, lldb_private::formatters::LibcxxSharedPtrSyntheticFrontEnd, lldb_private::formatters::LibcxxUniquePtrSyntheticFrontEnd, lldb_private::formatters::LibcxxStdAtomicSyntheticFrontEnd, lldb_private::formatters::LibcxxInitializerListSyntheticFrontEnd, lldb_private::formatters::LibcxxStdMapSyntheticFrontEnd, lldb_private::formatters::LibCxxMapIteratorSyntheticFrontEnd, lldb_private::formatters::LibcxxStdProxyArraySyntheticFrontEnd, lldb_private::formatters::LibcxxStdRangesRefViewSyntheticFrontEnd, lldb_private::formatters::LibcxxStdSliceArraySyntheticFrontEnd, lldb_private::formatters::LibcxxStdSpanSyntheticFrontEnd, lldb_private::formatters::LibcxxStdUnorderedMapSyntheticFrontEnd, lldb_private::formatters::LibCxxUnorderedMapIteratorSyntheticFrontEnd, lldb_private::formatters::LibcxxStdValarraySyntheticFrontEnd, lldb_private::formatters::LibcxxStdVectorSyntheticFrontEnd, lldb_private::formatters::LibcxxVectorBoolSyntheticFrontEnd, ObjCClassSyntheticChildrenFrontEnd, lldb_private::formatters::NSArrayMSyntheticFrontEndBase, lldb_private::formatters::GenericNSArrayISyntheticFrontEnd< D32, D64, Inline >, lldb_private::formatters::NSArray0SyntheticFrontEnd, lldb_private::formatters::NSArray1SyntheticFrontEnd, lldb_private::formatters::NSDictionaryISyntheticFrontEnd, lldb_private::formatters::NSConstantDictionarySyntheticFrontEnd, lldb_private::formatters::NSCFDictionarySyntheticFrontEnd, lldb_private::formatters::NSDictionary1SyntheticFrontEnd, lldb_private::formatters::GenericNSDictionaryMSyntheticFrontEnd< D32, D64 >, lldb_private::formatters::Foundation1100::NSDictionaryMSyntheticFrontEnd, NSErrorSyntheticFrontEnd, NSExceptionSyntheticFrontEnd, NSIndexPathSyntheticFrontEnd, lldb_private::formatters::NSSetISyntheticFrontEnd, lldb_private::formatters::NSCFSetSyntheticFrontEnd, lldb_private::formatters::GenericNSSetMSyntheticFrontEnd< D32, D64 >, lldb_private::formatters::NSSetCodeRunningSyntheticFrontEnd, and DummySyntheticFrontEnd.
Referenced by lldb_private::formatters::BlockPointerSummaryProvider().
|
pure virtual |
Implemented in lldb_private::SyntheticValueProviderFrontEnd, lldb_private::TypeFilterImpl::FrontEnd, lldb_private::ScriptedSyntheticChildren::FrontEnd, lldb_private::formatters::VectorIteratorSyntheticFrontEnd, lldb_private::formatters::VectorTypeSyntheticFrontEnd, lldb_private::formatters::BlockPointerSyntheticFrontEnd, lldb_private::formatters::StdlibCoroutineHandleSyntheticFrontEnd, lldb_private::formatters::LibcxxSharedPtrSyntheticFrontEnd, lldb_private::formatters::LibcxxUniquePtrSyntheticFrontEnd, lldb_private::formatters::LibcxxStdAtomicSyntheticFrontEnd, lldb_private::formatters::LibcxxInitializerListSyntheticFrontEnd, lldb_private::formatters::LibcxxStdMapSyntheticFrontEnd, lldb_private::formatters::LibCxxMapIteratorSyntheticFrontEnd, lldb_private::formatters::LibcxxStdProxyArraySyntheticFrontEnd, lldb_private::formatters::LibcxxStdRangesRefViewSyntheticFrontEnd, lldb_private::formatters::LibcxxStdSliceArraySyntheticFrontEnd, lldb_private::formatters::LibcxxStdSpanSyntheticFrontEnd, lldb_private::formatters::LibcxxStdUnorderedMapSyntheticFrontEnd, lldb_private::formatters::LibCxxUnorderedMapIteratorSyntheticFrontEnd, lldb_private::formatters::LibcxxStdValarraySyntheticFrontEnd, lldb_private::formatters::LibcxxStdVectorSyntheticFrontEnd, lldb_private::formatters::LibcxxVectorBoolSyntheticFrontEnd, ObjCClassSyntheticChildrenFrontEnd, lldb_private::formatters::NSArrayMSyntheticFrontEndBase, lldb_private::formatters::GenericNSArrayISyntheticFrontEnd< D32, D64, Inline >, lldb_private::formatters::NSArray0SyntheticFrontEnd, lldb_private::formatters::NSArray1SyntheticFrontEnd, lldb_private::formatters::NSDictionaryISyntheticFrontEnd, lldb_private::formatters::NSConstantDictionarySyntheticFrontEnd, lldb_private::formatters::NSCFDictionarySyntheticFrontEnd, lldb_private::formatters::NSDictionary1SyntheticFrontEnd, lldb_private::formatters::GenericNSDictionaryMSyntheticFrontEnd< D32, D64 >, lldb_private::formatters::Foundation1100::NSDictionaryMSyntheticFrontEnd, NSErrorSyntheticFrontEnd, NSExceptionSyntheticFrontEnd, NSIndexPathSyntheticFrontEnd, lldb_private::formatters::NSSetISyntheticFrontEnd, lldb_private::formatters::NSCFSetSyntheticFrontEnd, lldb_private::formatters::GenericNSSetMSyntheticFrontEnd< D32, D64 >, lldb_private::formatters::NSSetCodeRunningSyntheticFrontEnd, and DummySyntheticFrontEnd.
Referenced by lldb_private::formatters::BlockPointerSummaryProvider().
|
inlinevirtual |
Reimplemented in lldb_private::ScriptedSyntheticChildren::FrontEnd.
Definition at line 81 of file TypeSynthetic.h.
|
inlinevirtual |
Reimplemented in lldb_private::ScriptedSyntheticChildren::FrontEnd, NSIndexPathSyntheticFrontEnd, and lldb_private::SyntheticValueProviderFrontEnd.
Definition at line 76 of file TypeSynthetic.h.
|
inlineprotected |
Definition at line 33 of file TypeSynthetic.h.
References m_valid.
|
pure virtual |
Implemented in lldb_private::SyntheticValueProviderFrontEnd, lldb_private::TypeFilterImpl::FrontEnd, lldb_private::ScriptedSyntheticChildren::FrontEnd, lldb_private::formatters::VectorIteratorSyntheticFrontEnd, lldb_private::formatters::VectorTypeSyntheticFrontEnd, lldb_private::formatters::BlockPointerSyntheticFrontEnd, lldb_private::formatters::StdlibCoroutineHandleSyntheticFrontEnd, lldb_private::formatters::LibcxxSharedPtrSyntheticFrontEnd, lldb_private::formatters::LibcxxUniquePtrSyntheticFrontEnd, lldb_private::formatters::LibcxxStdAtomicSyntheticFrontEnd, lldb_private::formatters::LibcxxInitializerListSyntheticFrontEnd, lldb_private::formatters::LibcxxStdMapSyntheticFrontEnd, lldb_private::formatters::LibCxxMapIteratorSyntheticFrontEnd, lldb_private::formatters::LibcxxStdProxyArraySyntheticFrontEnd, lldb_private::formatters::LibcxxStdRangesRefViewSyntheticFrontEnd, lldb_private::formatters::LibcxxStdSliceArraySyntheticFrontEnd, lldb_private::formatters::LibcxxStdSpanSyntheticFrontEnd, lldb_private::formatters::LibcxxStdUnorderedMapSyntheticFrontEnd, lldb_private::formatters::LibCxxUnorderedMapIteratorSyntheticFrontEnd, lldb_private::formatters::LibcxxStdValarraySyntheticFrontEnd, lldb_private::formatters::LibcxxStdVectorSyntheticFrontEnd, lldb_private::formatters::LibcxxVectorBoolSyntheticFrontEnd, ObjCClassSyntheticChildrenFrontEnd, lldb_private::formatters::NSArrayMSyntheticFrontEndBase, lldb_private::formatters::GenericNSArrayISyntheticFrontEnd< D32, D64, Inline >, lldb_private::formatters::NSArray0SyntheticFrontEnd, lldb_private::formatters::NSArray1SyntheticFrontEnd, lldb_private::formatters::NSDictionaryISyntheticFrontEnd, lldb_private::formatters::NSConstantDictionarySyntheticFrontEnd, lldb_private::formatters::NSCFDictionarySyntheticFrontEnd, lldb_private::formatters::NSDictionary1SyntheticFrontEnd, lldb_private::formatters::GenericNSDictionaryMSyntheticFrontEnd< D32, D64 >, lldb_private::formatters::Foundation1100::NSDictionaryMSyntheticFrontEnd, NSErrorSyntheticFrontEnd, NSExceptionSyntheticFrontEnd, NSIndexPathSyntheticFrontEnd, lldb_private::formatters::NSSetISyntheticFrontEnd, lldb_private::formatters::NSCFSetSyntheticFrontEnd, lldb_private::formatters::GenericNSSetMSyntheticFrontEnd< D32, D64 >, lldb_private::formatters::NSSetCodeRunningSyntheticFrontEnd, and DummySyntheticFrontEnd.
|
privatedelete |
|
inlineprotected |
Definition at line 31 of file TypeSynthetic.h.
References m_valid.
|
pure virtual |
This function is assumed to always succeed and if it fails, the front-end should know to deal with it in the correct way (most probably, by refusing to return any children).
The return value of Update should actually be interpreted as "ValueObjectSyntheticFilter cache is good/bad". If this function returns lldb::ChildCacheState::eReuse, ValueObjectSyntheticFilter is allowed to use the children it fetched previously and cached. Otherwise, ValueObjectSyntheticFilter must throw away its cache, and query again for children.
Implemented in lldb_private::SyntheticValueProviderFrontEnd, lldb_private::TypeFilterImpl::FrontEnd, lldb_private::ScriptedSyntheticChildren::FrontEnd, lldb_private::formatters::VectorIteratorSyntheticFrontEnd, lldb_private::formatters::VectorTypeSyntheticFrontEnd, lldb_private::formatters::BlockPointerSyntheticFrontEnd, lldb_private::formatters::StdlibCoroutineHandleSyntheticFrontEnd, lldb_private::formatters::LibcxxSharedPtrSyntheticFrontEnd, lldb_private::formatters::LibcxxUniquePtrSyntheticFrontEnd, lldb_private::formatters::LibcxxStdAtomicSyntheticFrontEnd, lldb_private::formatters::LibcxxInitializerListSyntheticFrontEnd, lldb_private::formatters::LibcxxStdMapSyntheticFrontEnd, lldb_private::formatters::LibCxxMapIteratorSyntheticFrontEnd, lldb_private::formatters::LibcxxStdProxyArraySyntheticFrontEnd, lldb_private::formatters::LibcxxStdRangesRefViewSyntheticFrontEnd, lldb_private::formatters::LibcxxStdSliceArraySyntheticFrontEnd, lldb_private::formatters::LibcxxStdSpanSyntheticFrontEnd, lldb_private::formatters::LibcxxStdUnorderedMapSyntheticFrontEnd, lldb_private::formatters::LibCxxUnorderedMapIteratorSyntheticFrontEnd, lldb_private::formatters::LibcxxStdValarraySyntheticFrontEnd, lldb_private::formatters::LibcxxStdVectorSyntheticFrontEnd, lldb_private::formatters::LibcxxVectorBoolSyntheticFrontEnd, ObjCClassSyntheticChildrenFrontEnd, lldb_private::formatters::GenericNSArrayMSyntheticFrontEnd< D32, D64 >, lldb_private::formatters::GenericNSArrayISyntheticFrontEnd< D32, D64, Inline >, lldb_private::formatters::NSArray0SyntheticFrontEnd, lldb_private::formatters::NSArray1SyntheticFrontEnd, lldb_private::formatters::NSDictionaryISyntheticFrontEnd, lldb_private::formatters::NSConstantDictionarySyntheticFrontEnd, lldb_private::formatters::NSCFDictionarySyntheticFrontEnd, lldb_private::formatters::NSDictionary1SyntheticFrontEnd, lldb_private::formatters::GenericNSDictionaryMSyntheticFrontEnd< D32, D64 >, lldb_private::formatters::Foundation1100::NSDictionaryMSyntheticFrontEnd, NSErrorSyntheticFrontEnd, NSExceptionSyntheticFrontEnd, NSIndexPathSyntheticFrontEnd, lldb_private::formatters::NSSetISyntheticFrontEnd, lldb_private::formatters::NSCFSetSyntheticFrontEnd, lldb_private::formatters::GenericNSSetMSyntheticFrontEnd< D32, D64 >, lldb_private::formatters::NSSetCodeRunningSyntheticFrontEnd, DummySyntheticFrontEnd, and lldb_private::formatters::NSArrayMSyntheticFrontEndBase.
Referenced by lldb_private::formatters::BlockPointerSummaryProvider().
|
protected |
Definition at line 29 of file TypeSynthetic.h.
Referenced by lldb_private::formatters::BlockPointerSyntheticFrontEnd::BlockPointerSyntheticFrontEnd(), DummySyntheticFrontEnd::CalculateNumChildren(), lldb_private::TypeFilterImpl::FrontEnd::GetChildAtIndex(), lldb_private::formatters::VectorTypeSyntheticFrontEnd::GetChildAtIndex(), lldb_private::formatters::BlockPointerSyntheticFrontEnd::GetChildAtIndex(), DummySyntheticFrontEnd::GetChildAtIndex(), DummySyntheticFrontEnd::GetIndexOfChildWithName(), DummySyntheticFrontEnd::MightHaveChildren(), NSIndexPathSyntheticFrontEnd::NSIndexPathSyntheticFrontEnd(), lldb_private::formatters::VectorIteratorSyntheticFrontEnd::Update(), lldb_private::formatters::VectorTypeSyntheticFrontEnd::Update(), NSErrorSyntheticFrontEnd::Update(), NSExceptionSyntheticFrontEnd::Update(), and NSIndexPathSyntheticFrontEnd::Update().
|
private |
Definition at line 103 of file TypeSynthetic.h.
Referenced by IsValid(), and SetValid().