File indexing completed on 2026-05-10 08:42:42
0001
0002
0003
0004
0005
0006
0007
0008
0009 #ifndef LLDB_API_SBSOURCEMANAGER_H
0010 #define LLDB_API_SBSOURCEMANAGER_H
0011
0012 #include "lldb/API/SBDefines.h"
0013
0014 #include <cstdio>
0015
0016 namespace lldb {
0017
0018 class LLDB_API SBSourceManager {
0019 public:
0020 SBSourceManager(const SBDebugger &debugger);
0021 SBSourceManager(const SBTarget &target);
0022 SBSourceManager(const SBSourceManager &rhs);
0023
0024 ~SBSourceManager();
0025
0026 const lldb::SBSourceManager &operator=(const lldb::SBSourceManager &rhs);
0027
0028 size_t DisplaySourceLinesWithLineNumbers(
0029 const lldb::SBFileSpec &file, uint32_t line, uint32_t context_before,
0030 uint32_t context_after, const char *current_line_cstr, lldb::SBStream &s);
0031
0032 size_t DisplaySourceLinesWithLineNumbersAndColumn(
0033 const lldb::SBFileSpec &file, uint32_t line, uint32_t column,
0034 uint32_t context_before, uint32_t context_after,
0035 const char *current_line_cstr, lldb::SBStream &s);
0036
0037 protected:
0038 friend class SBCommandInterpreter;
0039 friend class SBDebugger;
0040
0041 private:
0042 std::unique_ptr<lldb_private::SourceManagerImpl> m_opaque_up;
0043 };
0044
0045 }
0046
0047 #endif