27typedef std::pair<lldb::TypeCategoryImplSP, user_id_t>
ImplType;
36 : m_opaque_sp(rhs.m_opaque_sp) {
44 return this->
operator bool();
46SBTypeCategory::operator bool()
const {
49 return (m_opaque_sp.get() !=
nullptr);
142 m_opaque_sp->GetTypeNameSpecifierForFilterAtIndex(index));
152 m_opaque_sp->GetTypeNameSpecifierForFormatAtIndex(index));
162 m_opaque_sp->GetTypeNameSpecifierForSummaryAtIndex(index));
172 m_opaque_sp->GetTypeNameSpecifierForSyntheticAtIndex(index));
191 std::static_pointer_cast<TypeFilterImpl>(children_sp);
247 std::static_pointer_cast<ScriptedSyntheticChildren>(children_sp);
260 if (!children_sp.get())
264 std::static_pointer_cast<TypeFilterImpl>(children_sp);
293 if (!children_sp.get())
297 std::static_pointer_cast<ScriptedSyntheticChildren>(children_sp);
351 const void *name_token =
353 const char *script = summary.
GetData();
357 bool need_set =
true;
358 for (uint32_t j = 0; j < num_debuggers; j++) {
362 debugger_sp->GetScriptInterpreter();
363 if (interpreter_ptr) {
443 const void *name_token =
445 const char *script = synth.
GetData();
449 bool need_set =
true;
450 for (uint32_t j = 0; j < num_debuggers; j++) {
454 debugger_sp->GetScriptInterpreter();
455 if (interpreter_ptr) {
492 description.Printf(
"Category name: %s\n",
GetName());
537 : m_opaque_sp(typecategory_impl_sp) {}
543 return (strcmp(
m_opaque_sp->GetName(),
"default") == 0);
#define LLDB_INSTRUMENT_VA(...)
std::pair< lldb::TypeCategoryImplSP, user_id_t > ImplType
SBTypeSynthetic GetSyntheticForType(SBTypeNameSpecifier)
bool AddTypeFilter(SBTypeNameSpecifier, SBTypeFilter)
lldb::SBTypeCategory & operator=(const lldb::SBTypeCategory &rhs)
SBTypeFormat GetFormatAtIndex(uint32_t)
lldb::LanguageType GetLanguageAtIndex(uint32_t idx)
TypeCategoryImplSP m_opaque_sp
bool DeleteTypeFilter(SBTypeNameSpecifier)
SBTypeSynthetic GetSyntheticAtIndex(uint32_t)
uint32_t GetNumLanguages()
SBTypeNameSpecifier GetTypeNameSpecifierForSyntheticAtIndex(uint32_t)
SBTypeFormat GetFormatForType(SBTypeNameSpecifier)
bool DeleteTypeFormat(SBTypeNameSpecifier)
bool operator==(lldb::SBTypeCategory &rhs)
bool AddTypeSynthetic(SBTypeNameSpecifier, SBTypeSynthetic)
void SetSP(const lldb::TypeCategoryImplSP &typecategory_impl_sp)
SBTypeFilter GetFilterForType(SBTypeNameSpecifier)
bool DeleteTypeSummary(SBTypeNameSpecifier)
SBTypeNameSpecifier GetTypeNameSpecifierForFilterAtIndex(uint32_t)
uint32_t GetNumSummaries()
bool GetDescription(lldb::SBStream &description, lldb::DescriptionLevel description_level)
bool AddTypeFormat(SBTypeNameSpecifier, SBTypeFormat)
bool DeleteTypeSynthetic(SBTypeNameSpecifier)
void AddLanguage(lldb::LanguageType language)
lldb::TypeCategoryImplSP GetSP()
SBTypeSummary GetSummaryAtIndex(uint32_t)
SBTypeSummary GetSummaryForType(SBTypeNameSpecifier)
SBTypeFilter GetFilterAtIndex(uint32_t)
SBTypeNameSpecifier GetTypeNameSpecifierForFormatAtIndex(uint32_t)
bool operator!=(lldb::SBTypeCategory &rhs)
SBTypeNameSpecifier GetTypeNameSpecifierForSummaryAtIndex(uint32_t)
uint32_t GetNumSynthetics()
bool AddTypeSummary(SBTypeNameSpecifier, SBTypeSummary)
lldb::TypeFilterImplSP GetSP()
lldb::TypeNameSpecifierImplSP GetSP()
void SetFunctionName(const char *data)
lldb::TypeSummaryImplSP GetSP()
lldb::ScriptedSyntheticChildrenSP GetSP()
void SetClassName(const char *data)
A uniqued constant string class.
const char * GetCString() const
Get the string value as a C string.
static void Disable(ConstString category)
static void Enable(ConstString category, TypeCategoryMap::Position=TypeCategoryMap::Default)
static bool GetCategory(ConstString category, lldb::TypeCategoryImplSP &entry, bool allow_create=true)
static lldb::DebuggerSP GetDebuggerAtIndex(size_t index)
static size_t GetNumDebuggers()
virtual bool GenerateTypeScriptFunction(const char *oneliner, std::string &output, const void *name_token=nullptr)
virtual bool GenerateTypeSynthClass(StringList &input, std::string &output, const void *name_token=nullptr)
size_t SplitIntoLines(const std::string &lines)
A class that represents a running process on the host machine.
std::shared_ptr< lldb_private::TypeSummaryImpl > TypeSummaryImplSP
DescriptionLevel
Description levels for "void GetDescription(Stream *, DescriptionLevel)" calls.
std::shared_ptr< lldb_private::TypeFormatImpl > TypeFormatImplSP
LanguageType
Programming language type.
@ eLanguageTypeUnknown
Unknown or invalid language value.
std::shared_ptr< lldb_private::Debugger > DebuggerSP
std::shared_ptr< lldb_private::SyntheticChildren > SyntheticChildrenSP
std::shared_ptr< lldb_private::TypeCategoryImpl > TypeCategoryImplSP
std::shared_ptr< lldb_private::ScriptedSyntheticChildren > ScriptedSyntheticChildrenSP
std::shared_ptr< lldb_private::TypeFilterImpl > TypeFilterImplSP