LLDB mainline
SBSourceManager.h
Go to the documentation of this file.
1//===-- SBSourceManager.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_SBSOURCEMANAGER_H
10#define LLDB_API_SBSOURCEMANAGER_H
11
12#include "lldb/API/SBDefines.h"
13
14#include <cstdio>
15
16namespace lldb {
17
19public:
20 SBSourceManager(const SBDebugger &debugger);
21 SBSourceManager(const SBTarget &target);
23
25
26 const lldb::SBSourceManager &operator=(const lldb::SBSourceManager &rhs);
27
28 size_t DisplaySourceLinesWithLineNumbers(
29 const lldb::SBFileSpec &file, uint32_t line, uint32_t context_before,
30 uint32_t context_after, const char *current_line_cstr, lldb::SBStream &s);
31
32 size_t DisplaySourceLinesWithLineNumbersAndColumn(
33 const lldb::SBFileSpec &file, uint32_t line, uint32_t column,
34 uint32_t context_before, uint32_t context_after,
35 const char *current_line_cstr, lldb::SBStream &s);
36
37protected:
39 friend class SBDebugger;
40
41private:
42 std::unique_ptr<lldb_private::SourceManagerImpl> m_opaque_up;
43};
44
45} // namespace lldb
46
47#endif // LLDB_API_SBSOURCEMANAGER_H
#define LLDB_API
Definition: SBDefines.h:28
std::unique_ptr< lldb_private::SourceManagerImpl > m_opaque_up
Definition: SBAddress.h:15