SBSourceManager.h revision 63094e0bb161580564954dee512955c1c79d3476
1//===-- SBSourceManager.h ---------------------------------------*- C++ -*-===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// 9 10#ifndef LLDB_SBSourceManager_h_ 11#define LLDB_SBSourceManager_h_ 12 13#include "lldb/API/SBDefines.h" 14 15#include <stdio.h> 16 17namespace lldb { 18 19class SBSourceManager 20{ 21public: 22 ~SBSourceManager(); 23 24 size_t 25 DisplaySourceLinesWithLineNumbers (const lldb::SBFileSpec &file, 26 uint32_t line, 27 uint32_t context_before, 28 uint32_t context_after, 29 const char* current_line_cstr, 30 FILE *f); 31 32 33protected: 34 friend class SBCommandInterpreter; 35 friend class SBDebugger; 36 37 SBSourceManager(lldb_private::SourceManager &source_manager); 38 39 lldb_private::SourceManager & 40 GetLLDBManager (); 41 42private: 43 44 lldb_private::SourceManager &m_opaque_ref; 45}; 46 47} // namespace lldb 48 49#endif // LLDB_SBSourceManager_h_ 50