LLDB mainline
SBLineEntry.h
Go to the documentation of this file.
1//===-- SBLineEntry.h -------------------------------------------*- 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#ifndef LLDB_API_SBLINEENTRY_H
10#define LLDB_API_SBLINEENTRY_H
11
12#include "lldb/API/SBAddress.h"
13#include "lldb/API/SBDefines.h"
14#include "lldb/API/SBFileSpec.h"
15
16namespace lldb {
17
19public:
21
23
25
27
29
31
33 GetSameLineContiguousAddressRangeEnd(bool include_inlined_functions) const;
34
35 explicit operator bool() const;
36
37 bool IsValid() const;
38
40
41 uint32_t GetLine() const;
42
43 uint32_t GetColumn() const;
44
45 void SetFileSpec(lldb::SBFileSpec filespec);
46
47 void SetLine(uint32_t line);
48
49 void SetColumn(uint32_t column);
50
51 bool operator==(const lldb::SBLineEntry &rhs) const;
52
53 bool operator!=(const lldb::SBLineEntry &rhs) const;
54
55 bool GetDescription(lldb::SBStream &description);
56
57protected:
59
60private:
61 friend class SBAddress;
62 friend class SBCompileUnit;
63 friend class SBFrame;
64 friend class SBSymbolContext;
65
67
69
70 const lldb_private::LineEntry &ref() const;
71
72 SBLineEntry(const lldb_private::LineEntry *lldb_object_ptr);
73
74 void SetLineEntry(const lldb_private::LineEntry &lldb_object_ref);
75
76 std::unique_ptr<lldb_private::LineEntry> m_opaque_up;
77};
78
79} // namespace lldb
80
81#endif // LLDB_API_SBLINEENTRY_H
#define LLDB_API
Definition SBDefines.h:28
lldb::SBAddress GetStartAddress() const
lldb_private::LineEntry & ref()
bool GetDescription(lldb::SBStream &description)
void SetLineEntry(const lldb_private::LineEntry &lldb_object_ref)
void SetLine(uint32_t line)
bool operator!=(const lldb::SBLineEntry &rhs) const
lldb_private::LineEntry * get()
friend class SBSymbolContext
Definition SBLineEntry.h:64
friend class SBAddress
Definition SBLineEntry.h:61
uint32_t GetColumn() const
bool IsValid() const
std::unique_ptr< lldb_private::LineEntry > m_opaque_up
Definition SBLineEntry.h:76
const lldb_private::LineEntry * operator->() const
bool operator==(const lldb::SBLineEntry &rhs) const
uint32_t GetLine() const
friend class SBFrame
Definition SBLineEntry.h:63
lldb::SBFileSpec GetFileSpec() const
friend class SBCompileUnit
Definition SBLineEntry.h:62
void SetFileSpec(lldb::SBFileSpec filespec)
void SetColumn(uint32_t column)
lldb::SBAddress GetEndAddress() const
const lldb::SBLineEntry & operator=(const lldb::SBLineEntry &rhs)
lldb::SBAddress GetSameLineContiguousAddressRangeEnd(bool include_inlined_functions) const
A line table entry class.
Definition LineEntry.h:21