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
26 const lldb::SBLineEntry &operator=(const lldb::SBLineEntry &rhs);
27
28 lldb::SBAddress GetStartAddress() const;
29
30 lldb::SBAddress GetEndAddress() const;
31
33 GetSameLineContiguousAddressRangeEnd(bool include_inlined_functions) const;
34
35 explicit operator bool() const;
36
37 bool IsValid() const;
38
39 lldb::SBFileSpec GetFileSpec() const;
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
66 const lldb_private::LineEntry *operator->() const;
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
std::unique_ptr< lldb_private::LineEntry > m_opaque_up
Definition: SBLineEntry.h:76
Definition: SBAddress.h:15
bool LLDB_API operator==(const SBAddress &lhs, const SBAddress &rhs)
Definition: SBAddress.cpp:60
A line table entry class.
Definition: LineEntry.h:21