LLDB mainline
DataVisualization.h
Go to the documentation of this file.
1//===-- DataVisualization.h -------------------------------------*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9#ifndef LLDB_DATAFORMATTERS_DATAVISUALIZATION_H
10#define LLDB_DATAFORMATTERS_DATAVISUALIZATION_H
11
15
16namespace lldb_private {
17
18// this class is the high-level front-end of LLDB Data Visualization code in
19// FormatManager.h/cpp is the low-level implementation of this feature clients
20// should refer to this class as the entry-point into the data formatters
21// unless they have a good reason to bypass this and go to the backend
23public:
24 // use this call to force the FM to consider itself updated even when there
25 // is no apparent reason for that
26 static void ForceUpdate();
27
28 static uint32_t GetCurrentRevision();
29
30 static bool ShouldPrintAsOneLiner(ValueObject &valobj);
31
33 lldb::DynamicValueType use_dynamic);
34
37
40
43
46
49
52
54 public:
55 static bool GetSummaryFormat(ConstString type,
57
58 static void Add(ConstString type,
59 const lldb::TypeSummaryImplSP &entry);
60
61 static bool Delete(ConstString type);
62
63 static void Clear();
64
65 static void ForEach(std::function<bool(const TypeMatcher &,
67 callback);
68
69 static uint32_t GetCount();
70 };
71
72 class Categories {
73 public:
74 static bool GetCategory(ConstString category,
76 bool allow_create = true);
77
78 static bool GetCategory(lldb::LanguageType language,
80
81 static void Add(ConstString category);
82
83 static bool Delete(ConstString category);
84
85 static void Clear();
86
87 static void Clear(ConstString category);
88
89 static void Enable(ConstString category,
91
92 static void Enable(lldb::LanguageType lang_type);
93
94 static void Disable(ConstString category);
95
96 static void Disable(lldb::LanguageType lang_type);
97
98 static void Enable(const lldb::TypeCategoryImplSP &category,
100
101 static void Disable(const lldb::TypeCategoryImplSP &category);
102
103 static void EnableStar();
104
105 static void DisableStar();
106
107 static void ForEach(TypeCategoryMap::ForEachCallback callback);
108
109 static uint32_t GetCount();
110
112 };
113};
114
115} // namespace lldb_private
116
117#endif // LLDB_DATAFORMATTERS_DATAVISUALIZATION_H
A uniqued constant string class.
Definition ConstString.h:40
static bool Delete(ConstString category)
static void Add(ConstString category)
static void Disable(ConstString category)
static lldb::TypeCategoryImplSP GetCategoryAtIndex(size_t)
static void ForEach(TypeCategoryMap::ForEachCallback callback)
static void Enable(ConstString category, TypeCategoryMap::Position=TypeCategoryMap::Default)
static bool GetCategory(ConstString category, lldb::TypeCategoryImplSP &entry, bool allow_create=true)
static void Add(ConstString type, const lldb::TypeSummaryImplSP &entry)
static bool GetSummaryFormat(ConstString type, lldb::TypeSummaryImplSP &entry)
static void ForEach(std::function< bool(const TypeMatcher &, const lldb::TypeSummaryImplSP &)> callback)
static lldb::ScriptedSyntheticChildrenSP GetSyntheticForType(lldb::TypeNameSpecifierImplSP type_sp)
static lldb::TypeFilterImplSP GetFilterForType(lldb::TypeNameSpecifierImplSP type_sp)
static bool ShouldPrintAsOneLiner(ValueObject &valobj)
static lldb::TypeSummaryImplSP GetSummaryFormat(ValueObject &valobj, lldb::DynamicValueType use_dynamic)
static lldb::TypeFormatImplSP GetFormat(ValueObject &valobj, lldb::DynamicValueType use_dynamic)
static lldb::TypeFormatImplSP GetFormatForType(lldb::TypeNameSpecifierImplSP type_sp)
static lldb::SyntheticChildrenSP GetSyntheticChildren(ValueObject &valobj, lldb::DynamicValueType use_dynamic)
static lldb::TypeSummaryImplSP GetSummaryForType(lldb::TypeNameSpecifierImplSP type_sp)
std::function< bool(const lldb::TypeCategoryImplSP &)> ForEachCallback
static const Position Default
Class for matching type names.
A class that represents a running process on the host machine.
std::shared_ptr< lldb_private::TypeSummaryImpl > TypeSummaryImplSP
std::shared_ptr< lldb_private::TypeFormatImpl > TypeFormatImplSP
std::shared_ptr< lldb_private::TypeNameSpecifierImpl > TypeNameSpecifierImplSP
LanguageType
Programming language type.
std::shared_ptr< lldb_private::SyntheticChildren > SyntheticChildrenSP
std::shared_ptr< lldb_private::TypeCategoryImpl > TypeCategoryImplSP
std::shared_ptr< lldb_private::ScriptedSyntheticChildren > ScriptedSyntheticChildrenSP
std::shared_ptr< lldb_private::TypeFilterImpl > TypeFilterImplSP