1 //===-- SBSourceManager.h ---------------------------------------*- C++ -*-===//
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
7 //===----------------------------------------------------------------------===//
9 #ifndef LLDB_SBSourceManager_h_
10 #define LLDB_SBSourceManager_h_
12 #include "lldb/API/SBDefines.h"
18 class LLDB_API SBSourceManager {
20 SBSourceManager(const SBDebugger &debugger);
21 SBSourceManager(const SBTarget &target);
22 SBSourceManager(const SBSourceManager &rhs);
26 const lldb::SBSourceManager &operator=(const lldb::SBSourceManager &rhs);
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);
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);
38 friend class SBCommandInterpreter;
39 friend class SBDebugger;
42 std::unique_ptr<lldb_private::SourceManagerImpl> m_opaque_up;
47 #endif // LLDB_SBSourceManager_h_