LLDB mainline
SBTypeCategory.h
Go to the documentation of this file.
1//===-- SBTypeCategory.h --------------------------------------------*- C++
2//-*-===//
3//
4// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5// See https://llvm.org/LICENSE.txt for license information.
6// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7//
8//===----------------------------------------------------------------------===//
9
10#ifndef LLDB_API_SBTYPECATEGORY_H
11#define LLDB_API_SBTYPECATEGORY_H
12
13#include "lldb/API/SBDefines.h"
14
15namespace lldb {
16
18public:
20
22
24
25 explicit operator bool() const;
26
27 bool IsValid() const;
28
29 bool GetEnabled();
30
31 void SetEnabled(bool);
32
33 const char *GetName();
34
36
37 uint32_t GetNumLanguages();
38
39 void AddLanguage(lldb::LanguageType language);
40
41 bool GetDescription(lldb::SBStream &description,
42 lldb::DescriptionLevel description_level);
43
44 uint32_t GetNumFormats();
45
46 uint32_t GetNumSummaries();
47
48 uint32_t GetNumFilters();
49
50 uint32_t GetNumSynthetics();
51
53
55
57
59
61
63
65
67
69
71
73
75
77
79
81
83
85
87
89
91
93
95
97
98protected:
99 friend class SBDebugger;
100
102
103 void SetSP(const lldb::TypeCategoryImplSP &typecategory_impl_sp);
104
106
108
109 SBTypeCategory(const char *);
110
111 bool IsDefaultCategory();
112};
113
114} // namespace lldb
115
116#endif // LLDB_API_SBTYPECATEGORY_H
#define LLDB_API
Definition SBDefines.h:28
static llvm::StringRef GetName(XcodeSDK::Type type)
Definition XcodeSDK.cpp:21
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)
friend class SBDebugger
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)
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)
bool AddTypeSummary(SBTypeNameSpecifier, SBTypeSummary)
DescriptionLevel
Description levels for "void GetDescription(Stream *, DescriptionLevel)" calls.
LanguageType
Programming language type.
std::shared_ptr< lldb_private::TypeCategoryImpl > TypeCategoryImplSP