Coverage Report

Created: 2023-09-30 09:22

/Users/buildslave/jenkins/workspace/coverage/llvm-project/lldb/source/Core/ValueObjectConstResultCast.cpp
Line
Count
Source (jump to first uncovered line)
1
//===-- ValueObjectConstResultCast.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
9
#include "lldb/Core/ValueObjectConstResultCast.h"
10
11
namespace lldb_private {
12
class DataExtractor;
13
}
14
namespace lldb_private {
15
class Status;
16
}
17
namespace lldb_private {
18
class ValueObject;
19
}
20
21
using namespace lldb_private;
22
23
ValueObjectConstResultCast::ValueObjectConstResultCast(
24
    ValueObject &parent, ConstString name, const CompilerType &cast_type,
25
    lldb::addr_t live_address)
26
4
    : ValueObjectCast(parent, name, cast_type), m_impl(this, live_address) {
27
4
  m_name = name;
28
4
}
29
30
4
ValueObjectConstResultCast::~ValueObjectConstResultCast() = default;
31
32
0
lldb::ValueObjectSP ValueObjectConstResultCast::Dereference(Status &error) {
33
0
  return m_impl.Dereference(error);
34
0
}
35
36
lldb::ValueObjectSP ValueObjectConstResultCast::GetSyntheticChildAtOffset(
37
    uint32_t offset, const CompilerType &type, bool can_create,
38
0
    ConstString name_const_str) {
39
0
  return m_impl.GetSyntheticChildAtOffset(offset, type, can_create,
40
0
                                          name_const_str);
41
0
}
42
43
2
lldb::ValueObjectSP ValueObjectConstResultCast::AddressOf(Status &error) {
44
2
  return m_impl.AddressOf(error);
45
2
}
46
47
ValueObject *ValueObjectConstResultCast::CreateChildAtIndex(
48
2
    size_t idx, bool synthetic_array_member, int32_t synthetic_index) {
49
2
  return m_impl.CreateChildAtIndex(idx, synthetic_array_member,
50
2
                                   synthetic_index);
51
2
}
52
53
size_t ValueObjectConstResultCast::GetPointeeData(DataExtractor &data,
54
                                                  uint32_t item_idx,
55
0
                                                  uint32_t item_count) {
56
0
  return m_impl.GetPointeeData(data, item_idx, item_count);
57
0
}
58
59
lldb::ValueObjectSP
60
0
ValueObjectConstResultCast::DoCast(const CompilerType &compiler_type) {
61
0
  return m_impl.Cast(compiler_type);
62
0
}