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
38 SBType GetType();
39
40 lldb::FormatterMatchType GetMatchType();
41
42 bool IsRegex();
43
44 bool GetDescription(lldb::SBStream &description,
45 lldb::DescriptionLevel description_level);
46
48
49 bool IsEqualTo(lldb::SBTypeNameSpecifier &rhs);
50
52
53 bool operator!=(lldb::SBTypeNameSpecifier &rhs);
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
lldb::TypeNameSpecifierImplSP m_opaque_sp
Definition: SBAddress.h:15
DescriptionLevel
Description levels for "void GetDescription(Stream *, DescriptionLevel)" calls.
std::shared_ptr< lldb_private::TypeNameSpecifierImpl > TypeNameSpecifierImplSP
Definition: lldb-forward.h:470
FormatterMatchType
Type of match to be performed when looking for a formatter for a data type.
bool LLDB_API operator==(const SBAddress &lhs, const SBAddress &rhs)
Definition: SBAddress.cpp:60