mirror of
https://github.com/opnsense/src.git
synced 2026-02-28 12:20:54 -05:00
99 lines
2.5 KiB
C++
99 lines
2.5 KiB
C++
//===-- LanguageCategory.h----------------------------------------*- C++ -*-===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef lldb_LanguageCategory_h_
|
|
#define lldb_LanguageCategory_h_
|
|
|
|
// C Includes
|
|
// C++ Includes
|
|
|
|
// Other libraries and framework includes
|
|
// Project includes
|
|
#include "lldb/lldb-public.h"
|
|
#include "lldb/DataFormatters/FormatCache.h"
|
|
#include "lldb/DataFormatters/FormatClasses.h"
|
|
|
|
#include <memory>
|
|
|
|
namespace lldb_private {
|
|
|
|
class LanguageCategory
|
|
{
|
|
public:
|
|
typedef std::unique_ptr<LanguageCategory> UniquePointer;
|
|
|
|
LanguageCategory (lldb::LanguageType lang_type);
|
|
|
|
bool
|
|
Get (FormattersMatchData& match_data,
|
|
lldb::TypeFormatImplSP& format_sp);
|
|
|
|
bool
|
|
Get (FormattersMatchData& match_data,
|
|
lldb::TypeSummaryImplSP& format_sp);
|
|
|
|
bool
|
|
Get (FormattersMatchData& match_data,
|
|
lldb::SyntheticChildrenSP& format_sp);
|
|
|
|
bool
|
|
Get (FormattersMatchData& match_data,
|
|
lldb::TypeValidatorImplSP& format_sp);
|
|
|
|
bool
|
|
GetHardcoded (FormatManager& fmt_mgr,
|
|
FormattersMatchData& match_data,
|
|
lldb::TypeFormatImplSP& format_sp);
|
|
|
|
bool
|
|
GetHardcoded (FormatManager& fmt_mgr,
|
|
FormattersMatchData& match_data,
|
|
lldb::TypeSummaryImplSP& format_sp);
|
|
|
|
bool
|
|
GetHardcoded (FormatManager& fmt_mgr,
|
|
FormattersMatchData& match_data,
|
|
lldb::SyntheticChildrenSP& format_sp);
|
|
|
|
bool
|
|
GetHardcoded (FormatManager& fmt_mgr,
|
|
FormattersMatchData& match_data,
|
|
lldb::TypeValidatorImplSP& format_sp);
|
|
|
|
lldb::TypeCategoryImplSP
|
|
GetCategory () const;
|
|
|
|
FormatCache&
|
|
GetFormatCache ();
|
|
|
|
void
|
|
Enable ();
|
|
|
|
void
|
|
Disable ();
|
|
|
|
bool
|
|
IsEnabled ();
|
|
|
|
private:
|
|
lldb::TypeCategoryImplSP m_category_sp;
|
|
|
|
HardcodedFormatters::HardcodedFormatFinder m_hardcoded_formats;
|
|
HardcodedFormatters::HardcodedSummaryFinder m_hardcoded_summaries;
|
|
HardcodedFormatters::HardcodedSyntheticFinder m_hardcoded_synthetics;
|
|
HardcodedFormatters::HardcodedValidatorFinder m_hardcoded_validators;
|
|
|
|
lldb_private::FormatCache m_format_cache;
|
|
|
|
bool m_enabled;
|
|
};
|
|
|
|
} // namespace lldb_private
|
|
|
|
#endif // lldb_LanguageCategory_h_
|