LLDB mainline
SBTypeFormat.h
Go to the documentation of this file.
1//===-- SBTypeFormat.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_SBTYPEFORMAT_H
11#define LLDB_API_SBTYPEFORMAT_H
12
13#include "lldb/API/SBDefines.h"
14
15namespace lldb {
16
18public:
20
22 uint32_t options = 0); // see lldb::eTypeOption values
23
24 SBTypeFormat(const char *type,
25 uint32_t options = 0); // see lldb::eTypeOption values
26
28
30
31 explicit operator bool() const;
32
33 bool IsValid() const;
34
35 lldb::Format GetFormat();
36
37 const char *GetTypeName();
38
39 uint32_t GetOptions();
40
41 void SetFormat(lldb::Format);
42
43 void SetTypeName(const char *);
44
45 void SetOptions(uint32_t);
46
47 bool GetDescription(lldb::SBStream &description,
48 lldb::DescriptionLevel description_level);
49
50 lldb::SBTypeFormat &operator=(const lldb::SBTypeFormat &rhs);
51
52 bool IsEqualTo(lldb::SBTypeFormat &rhs);
53
55
56 bool operator!=(lldb::SBTypeFormat &rhs);
57
58protected:
59 friend class SBDebugger;
60 friend class SBTypeCategory;
61 friend class SBValue;
62
64
65 void SetSP(const lldb::TypeFormatImplSP &typeformat_impl_sp);
66
68
70
71 enum class Type { eTypeKeepSame, eTypeFormat, eTypeEnum };
72
73 bool CopyOnWrite_Impl(Type);
74};
75
76} // namespace lldb
77
78#endif // LLDB_API_SBTYPEFORMAT_H
#define LLDB_API
Definition: SBDefines.h:28
lldb::TypeFormatImplSP m_opaque_sp
Definition: SBTypeFormat.h:67
Definition: SBAddress.h:15
DescriptionLevel
Description levels for "void GetDescription(Stream *, DescriptionLevel)" calls.
std::shared_ptr< lldb_private::TypeFormatImpl > TypeFormatImplSP
Definition: lldb-forward.h:468
Format
Display format definitions.
bool LLDB_API operator==(const SBAddress &lhs, const SBAddress &rhs)
Definition: SBAddress.cpp:60