LLDB mainline
FormatClasses.cpp
Go to the documentation of this file.
1//===-- FormatClasses.cpp -------------------------------------------------===//
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
10
12
13
14
15
16
17using namespace lldb;
18using namespace lldb_private;
19
21 lldb::DynamicValueType use_dynamic)
22 : m_valobj(valobj), m_dynamic_value_type(use_dynamic),
23 m_formatters_match_vector({}, false), m_type_for_cache(),
24 m_candidate_languages() {
25 m_type_for_cache = FormatManager::GetTypeForCache(valobj, use_dynamic);
26 m_candidate_languages =
27 FormatManager::GetCandidateLanguages(valobj.GetObjectRuntimeLanguage());
28}
29
31 if (!m_formatters_match_vector.second) {
32 m_formatters_match_vector.second = true;
35 }
36 return m_formatters_match_vector.first;
37}
38
40
43}
44
46
49}
A uniqued constant string class.
Definition: ConstString.h:40
static ConstString GetTypeForCache(ValueObject &, lldb::DynamicValueType)
static FormattersMatchVector GetPossibleMatches(ValueObject &valobj, lldb::DynamicValueType use_dynamic)
static std::vector< lldb::LanguageType > GetCandidateLanguages(lldb::LanguageType lang_type)
CandidateLanguagesVector m_candidate_languages
CandidateLanguagesVector GetCandidateLanguages()
std::pair< FormattersMatchVector, bool > m_formatters_match_vector
lldb::DynamicValueType GetDynamicValueType()
FormattersMatchVector GetMatchesVector()
FormattersMatchData(ValueObject &, lldb::DynamicValueType)
lldb::DynamicValueType m_dynamic_value_type
A class that represents a running process on the host machine.
std::vector< FormattersMatchCandidate > FormattersMatchVector
std::vector< lldb::LanguageType > CandidateLanguagesVector
Definition: SBAddress.h:15