]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm-project/lldb/tools/lldb-mi/MICmnMIValue.cpp
Merge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp
[FreeBSD/FreeBSD.git] / contrib / llvm-project / lldb / tools / lldb-mi / MICmnMIValue.cpp
1 //===-- MICmnMIValue.cpp ----------------------------------------*- 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 // In-house headers:
10 #include "MICmnMIValue.h"
11 #include "MICmnResources.h"
12
13 //++
14 // Details: CMICmnMIValue constructor.
15 // Type:    Method.
16 // Args:    None.
17 // Return:  None.
18 // Throws:  None.
19 //--
20 CMICmnMIValue::CMICmnMIValue()
21     : m_strValue(MIRSRC(IDS_WORD_INVALIDBRKTS)), m_bJustConstructed(true) {}
22
23 //++
24 // Details: CMICmnMIValue destructor.
25 // Type:    Overrideable.
26 // Args:    None.
27 // Return:  None.
28 // Throws:  None.
29 //--
30 CMICmnMIValue::~CMICmnMIValue() {}
31
32 //++
33 // Details: Return the MI value as a string. The string is a direct result of
34 //          work done on *this value so if not enough data is added then it is
35 //          possible to return a malformed value. If nothing has been set or
36 //          added to *this MI value object then text "<Invalid>" will be
37 //          returned.
38 // Type:    Method.
39 // Args:    None.
40 // Return:  CMIUtilString & - MI output text.
41 // Throws:  None.
42 //--
43 const CMIUtilString &CMICmnMIValue::GetString() const { return m_strValue; }