LLDB mainline
|
The SourceFileCache class separates the source manager from the cache of source files. More...
#include <SourceManager.h>
Public Member Functions | |
SourceFileCache ()=default | |
~SourceFileCache ()=default | |
void | AddSourceFile (const FileSpec &file_spec, FileSP file_sp) |
void | RemoveSourceFile (const FileSP &file_sp) |
FileSP | FindSourceFile (const FileSpec &file_spec) const |
void | Clear () |
void | Dump (Stream &stream) const |
Private Types | |
typedef std::map< FileSpec, FileSP > | FileCache |
Private Member Functions | |
void | AddSourceFileImpl (const FileSpec &file_spec, FileSP file_sp) |
Private Attributes | |
FileCache | m_file_cache |
llvm::sys::RWMutex | m_mutex |
The SourceFileCache class separates the source manager from the cache of source files.
There is one source manager per Target but both the Debugger and the Process have their own source caches.
The SourceFileCache just handles adding, storing, removing and looking up source files. The caching policies are implemented in SourceManager::GetFile.
Definition at line 108 of file SourceManager.h.
|
private |
Definition at line 126 of file SourceManager.h.
|
default |
|
default |
Definition at line 774 of file SourceManager.cpp.
|
private |
Definition at line 802 of file SourceManager.cpp.
|
inline |
Definition at line 119 of file SourceManager.h.
References m_file_cache.
Referenced by CommandObjectSourceCacheClear::DoExecute(), lldb_private::Debugger::SetPropertyValue(), and lldb_private::Debugger::SetUseSourceCache().
void SourceManager::SourceFileCache::Dump | ( | Stream & | stream | ) | const |
Definition at line 823 of file SourceManager.cpp.
References lldb_private::Stream::Format().
Referenced by CommandObjectSourceCacheDump::DoExecute().
SourceManager::FileSP SourceManager::SourceFileCache::FindSourceFile | ( | const FileSpec & | file_spec | ) | const |
Definition at line 813 of file SourceManager.cpp.
void SourceManager::SourceFileCache::RemoveSourceFile | ( | const FileSP & | file_sp | ) |
Definition at line 786 of file SourceManager.cpp.
|
private |
Definition at line 127 of file SourceManager.h.
Referenced by Clear().
|
mutableprivate |
Definition at line 129 of file SourceManager.h.