LLDB mainline
|
#include <TypeList.h>
Public Types | |
typedef std::vector< lldb::TypeSP > | collection |
typedef AdaptedIterable< collection, lldb::TypeSP, vector_adapter > | TypeIterable |
Public Member Functions | |
TypeList () | |
virtual | ~TypeList () |
void | Clear () |
void | Dump (Stream *s, bool show_context) |
TypeList | FindTypes (ConstString name) |
void | Insert (const lldb::TypeSP &type) |
uint32_t | GetSize () const |
bool | Empty () const |
lldb::TypeSP | GetTypeAtIndex (uint32_t idx) |
TypeIterable | Types () |
void | ForEach (std::function< bool(const lldb::TypeSP &type_sp)> const &callback) const |
void | ForEach (std::function< bool(lldb::TypeSP &type_sp)> const &callback) |
void | RemoveMismatchedTypes (llvm::StringRef qualified_typename, bool exact_match) |
void | RemoveMismatchedTypes (llvm::StringRef type_scope, llvm::StringRef type_basename, lldb::TypeClass type_class, bool exact_match) |
void | RemoveMismatchedTypes (lldb::TypeClass type_class) |
Private Types | |
typedef collection::iterator | iterator |
typedef collection::const_iterator | const_iterator |
Private Member Functions | |
TypeList (const TypeList &)=delete | |
const TypeList & | operator= (const TypeList &)=delete |
Private Attributes | |
collection | m_types |
Definition at line 20 of file TypeList.h.
typedef std::vector<lldb::TypeSP> lldb_private::TypeList::collection |
Definition at line 41 of file TypeList.h.
|
private |
Definition at line 63 of file TypeList.h.
|
private |
Definition at line 62 of file TypeList.h.
typedef AdaptedIterable<collection, lldb::TypeSP, vector_adapter> lldb_private::TypeList::TypeIterable |
Definition at line 43 of file TypeList.h.
TypeList::TypeList | ( | ) |
Definition at line 22 of file TypeList.cpp.
|
virtualdefault |
|
privatedelete |
void TypeList::Clear | ( | ) |
Definition at line 58 of file TypeList.cpp.
References m_types.
void TypeList::Dump | ( | Stream * | s, |
bool | show_context | ||
) |
Definition at line 94 of file TypeList.cpp.
References m_types.
Referenced by lldb_private::SymbolFileCommon::Dump().
|
inline |
Definition at line 37 of file TypeList.h.
References GetSize().
Referenced by lldb::SBModule::FindTypes(), lldb_private::TypeFormatImpl_EnumType::FormatObject(), lldb_private::ItaniumABILanguageRuntime::GetTypeInfoFromVTableAddress(), LookupTypeHere(), and LookupTypeInModule().
TypeList lldb_private::TypeList::FindTypes | ( | ConstString | name | ) |
void TypeList::ForEach | ( | std::function< bool(const lldb::TypeSP &type_sp)> const & | callback | ) | const |
Definition at line 78 of file TypeList.cpp.
References m_types.
Referenced by lldb_private::TypeListImpl::Append(), and lldb_private::SymbolContext::SortTypeList().
void TypeList::ForEach | ( | std::function< bool(lldb::TypeSP &type_sp)> const & | callback | ) |
Definition at line 86 of file TypeList.cpp.
References m_types.
uint32_t TypeList::GetSize | ( | ) | const |
Definition at line 60 of file TypeList.cpp.
References m_types.
Referenced by CommandObjectMemoryRead::DoExecute(), lldb_private::TypeSystemClang::DumpFromSymbolFile(), Empty(), lldb_private::ClangASTSource::FindCompleteType(), lldb_private::ClangASTSource::FindExternalVisibleDecls(), lldb_private::Module::FindFirstType(), lldb::SBModule::FindTypes(), lldb::SBTarget::FindTypes(), lldb_private::ModuleList::FindTypes(), GetTypeAtIndex(), lldb_private::ItaniumABILanguageRuntime::GetTypeInfoFromVTableAddress(), lldb_private::ObjCLanguageRuntime::LookupInCompleteClassCache(), LookupTypeHere(), LookupTypeInModule(), lldb_private::npdb::SymbolFileNativePDB::ParseTypes(), and lldb_private::SymbolContext::SortTypeList().
TypeSP TypeList::GetTypeAtIndex | ( | uint32_t | idx | ) |
Definition at line 66 of file TypeList.cpp.
References GetSize(), and m_types.
Referenced by CommandObjectMemoryRead::DoExecute(), lldb_private::TypeSystemClang::DumpFromSymbolFile(), lldb_private::ClangASTSource::FindCompleteType(), lldb_private::ClangASTSource::FindExternalVisibleDecls(), lldb_private::Module::FindFirstType(), lldb::SBModule::FindTypes(), lldb::SBTarget::FindTypes(), lldb_private::ItaniumABILanguageRuntime::GetTypeInfoFromVTableAddress(), lldb_private::ObjCLanguageRuntime::LookupInCompleteClassCache(), LookupTypeHere(), and lldb_private::SymbolContext::SortTypeList().
void TypeList::Insert | ( | const lldb::TypeSP & | type | ) |
Definition at line 27 of file TypeList.cpp.
References m_types.
Referenced by lldb_private::SymbolFileCommon::CopyType(), lldb_private::npdb::SymbolFileNativePDB::GetOrCreateType(), SymbolFilePDB::GetTypes(), lldb_private::SymbolFileCommon::MakeType(), and lldb_private::SymbolContext::SortTypeList().
void lldb_private::TypeList::RemoveMismatchedTypes | ( | lldb::TypeClass | type_class | ) |
void TypeList::RemoveMismatchedTypes | ( | llvm::StringRef | qualified_typename, |
bool | exact_match | ||
) |
Definition at line 100 of file TypeList.cpp.
References lldb_private::Type::GetTypeScopeAndBasename(), and RemoveMismatchedTypes().
Referenced by RemoveMismatchedTypes().
void lldb_private::TypeList::RemoveMismatchedTypes | ( | llvm::StringRef | type_scope, |
llvm::StringRef | type_basename, | ||
lldb::TypeClass | type_class, | ||
bool | exact_match | ||
) |
|
inline |
Definition at line 45 of file TypeList.h.
References m_types.
Referenced by lldb_private::Language::ImageListTypeScavenger::Find_Impl(), lldb_private::TypeFormatImpl_EnumType::FormatObject(), and LookupTypeInModule().
|
private |
Definition at line 65 of file TypeList.h.
Referenced by Clear(), Dump(), ForEach(), GetSize(), GetTypeAtIndex(), Insert(), and Types().