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
36
37 const char *GetTypeName();
38
39 uint32_t GetOptions();
40
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
51
53
55
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
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
bool GetDescription(lldb::SBStream &description, lldb::DescriptionLevel description_level)
bool operator!=(lldb::SBTypeFormat &rhs)
void SetSP(const lldb::TypeFormatImplSP &typeformat_impl_sp)
friend class SBDebugger
const char * GetTypeName()
lldb::SBTypeFormat & operator=(const lldb::SBTypeFormat &rhs)
friend class SBValue
void SetOptions(uint32_t)
lldb::TypeFormatImplSP m_opaque_sp
bool IsValid() const
lldb::Format GetFormat()
lldb::TypeFormatImplSP GetSP()
void SetFormat(lldb::Format)
friend class SBTypeCategory
void SetTypeName(const char *)
bool IsEqualTo(lldb::SBTypeFormat &rhs)
bool operator==(lldb::SBTypeFormat &rhs)
DescriptionLevel
Description levels for "void GetDescription(Stream *, DescriptionLevel)" calls.
std::shared_ptr< lldb_private::TypeFormatImpl > TypeFormatImplSP
Format
Display format definitions.