LLDB mainline
LanguageCategory.h
Go to the documentation of this file.
1//===-- LanguageCategory.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_DATAFORMATTERS_LANGUAGECATEGORY_H
11#define LLDB_DATAFORMATTERS_LANGUAGECATEGORY_H
12
15#include "lldb/lldb-public.h"
16
17#include <memory>
18
19namespace lldb_private {
20
22public:
23 typedef std::unique_ptr<LanguageCategory> UniquePointer;
24
26
27 template <typename ImplSP>
28 bool Get(FormattersMatchData &match_data, ImplSP &format_sp);
29 template <typename ImplSP>
30 bool GetHardcoded(FormatManager &fmt_mgr, FormattersMatchData &match_data,
31 ImplSP &format_sp);
32
34
36
37 void Enable();
38
39 void Disable();
40
41 bool IsEnabled();
42
43private:
45
49
50 template <typename ImplSP>
52
54
56};
57
58} // namespace lldb_private
59
60#endif // LLDB_DATAFORMATTERS_LANGUAGECATEGORY_H
HardcodedFormatterFinders< SyntheticChildren > HardcodedSyntheticFinder
Definition: FormatClasses.h:42
HardcodedFormatterFinders< TypeSummaryImpl > HardcodedSummaryFinder
Definition: FormatClasses.h:41
HardcodedFormatterFinders< TypeFormatImpl > HardcodedFormatFinder
Definition: FormatClasses.h:40
HardcodedFormatters::HardcodedSummaryFinder m_hardcoded_summaries
lldb::TypeCategoryImplSP GetCategory() const
HardcodedFormatters::HardcodedFormatFinder m_hardcoded_formats
HardcodedFormatters::HardcodedSyntheticFinder m_hardcoded_synthetics
std::unique_ptr< LanguageCategory > UniquePointer
bool Get(FormattersMatchData &match_data, ImplSP &format_sp)
lldb::TypeCategoryImplSP m_category_sp
lldb_private::FormatCache m_format_cache
bool GetHardcoded(FormatManager &fmt_mgr, FormattersMatchData &match_data, ImplSP &format_sp)
A class that represents a running process on the host machine.
LanguageType
Programming language type.
std::shared_ptr< lldb_private::TypeCategoryImpl > TypeCategoryImplSP
Definition: lldb-forward.h:459