LLDB mainline
|
This is a minimal wrapper of a TypeSystem shared pointer as returned by CompilerType which conventien dyn_cast support. More...
#include <CompilerType.h>
Public Member Functions | |
TypeSystemSPWrapper ()=default | |
TypeSystemSPWrapper (lldb::TypeSystemSP typesystem_sp) | |
template<class TypeSystemType> | |
bool | isa_and_nonnull () |
template<class TypeSystemType> | |
std::shared_ptr< TypeSystemType > | dyn_cast_or_null () |
Return a shared_ptr<TypeSystemType> if dyn_cast succeeds. | |
operator bool () const | |
bool | operator== (const TypeSystemSPWrapper &other) const |
bool | operator!= (const TypeSystemSPWrapper &other) const |
TypeSystem * | operator-> () const |
Only to be used in a one-off situations like if (typesystem && typesystem->method()) Do not store this pointer! | |
lldb::TypeSystemSP | GetSharedPointer () const |
Private Attributes | |
lldb::TypeSystemSP | m_typesystem_sp |
This is a minimal wrapper of a TypeSystem shared pointer as returned by CompilerType which conventien dyn_cast support.
Definition at line 50 of file CompilerType.h.
|
default |
Referenced by operator!=().
|
inline |
Definition at line 55 of file CompilerType.h.
References m_typesystem_sp.
|
inline |
Return a shared_ptr<TypeSystemType> if dyn_cast succeeds.
Definition at line 66 of file CompilerType.h.
References isa_and_nonnull(), and m_typesystem_sp.
Referenced by lldb_private::CompilerType::GetTypeSystem().
|
inline |
Definition at line 86 of file CompilerType.h.
References m_typesystem_sp.
Referenced by lldb_private::TypeSystemClang::AddEnumerationValueToEnumerationType(), lldb_private::ClangExpressionDeclMap::DeportType(), lldb_private::CompilerType::SetCompilerType(), and lldb_private::formatters::VectorTypeSyntheticFrontEnd::Update().
|
inline |
Definition at line 58 of file CompilerType.h.
References m_typesystem_sp.
Referenced by dyn_cast_or_null().
|
inlineexplicit |
Definition at line 73 of file CompilerType.h.
References m_typesystem_sp.
|
inline |
Definition at line 77 of file CompilerType.h.
References TypeSystemSPWrapper().
TypeSystem * CompilerType::TypeSystemSPWrapper::operator-> | ( | ) | const |
Only to be used in a one-off situations like if (typesystem && typesystem->method()) Do not store this pointer!
Definition at line 1233 of file CompilerType.cpp.
References m_typesystem_sp.
bool CompilerType::TypeSystemSPWrapper::operator== | ( | const TypeSystemSPWrapper & | other | ) | const |
Definition at line 1224 of file CompilerType.cpp.
References m_typesystem_sp.
|
private |
Definition at line 51 of file CompilerType.h.
Referenced by dyn_cast_or_null(), GetSharedPointer(), isa_and_nonnull(), operator bool(), operator->(), operator==(), and TypeSystemSPWrapper().