LLDB mainline
SBTypeNameSpecifier.h
Go to the documentation of this file.
1//===-- SBTypeNameSpecifier.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_SBTYPENAMESPECIFIER_H
11#define LLDB_API_SBTYPENAMESPECIFIER_H
12
13#include "lldb/API/SBDefines.h"
14
15namespace lldb {
16
18public:
20
21 SBTypeNameSpecifier(const char *name, bool is_regex = false);
22
23 SBTypeNameSpecifier(const char *name,
24 lldb::FormatterMatchType match_type);
25
27
29
31
32 explicit operator bool() const;
33
34 bool IsValid() const;
35
36 const char *GetName();
37
39
41
42 bool IsRegex();
43
44 bool GetDescription(lldb::SBStream &description,
45 lldb::DescriptionLevel description_level);
46
48
50
52
54
55protected:
56 friend class SBDebugger;
57 friend class SBTypeCategory;
58
60
61 void SetSP(const lldb::TypeNameSpecifierImplSP &type_namespec_sp);
62
64
66};
67
68} // namespace lldb
69
70#endif // LLDB_API_SBTYPENAMESPECIFIER_H
#define LLDB_API
Definition SBDefines.h:28
static llvm::StringRef GetName(XcodeSDK::Type type)
Definition XcodeSDK.cpp:21
void SetSP(const lldb::TypeNameSpecifierImplSP &type_namespec_sp)
bool operator==(lldb::SBTypeNameSpecifier &rhs)
lldb::TypeNameSpecifierImplSP GetSP()
bool IsEqualTo(lldb::SBTypeNameSpecifier &rhs)
lldb::TypeNameSpecifierImplSP m_opaque_sp
lldb::FormatterMatchType GetMatchType()
bool GetDescription(lldb::SBStream &description, lldb::DescriptionLevel description_level)
lldb::SBTypeNameSpecifier & operator=(const lldb::SBTypeNameSpecifier &rhs)
bool operator!=(lldb::SBTypeNameSpecifier &rhs)
DescriptionLevel
Description levels for "void GetDescription(Stream *, DescriptionLevel)" calls.
std::shared_ptr< lldb_private::TypeNameSpecifierImpl > TypeNameSpecifierImplSP
FormatterMatchType
Type of match to be performed when looking for a formatter for a data type.