clang
8.0.0
|
A stat "cache" that can be used by FileManager to keep track of the results of stat() calls that occur throughout the execution of the front end. More...
#include "clang/Basic/FileSystemStatCache.h"
Public Types | |
using | iterator = llvm::StringMap< FileData, llvm::BumpPtrAllocator >::const_iterator |
![]() | |
enum | LookupResult { CacheExists, CacheMissing } |
Public Member Functions | |
iterator | begin () const |
iterator | end () const |
LookupResult | getStat (StringRef Path, FileData &Data, bool isFile, std::unique_ptr< llvm::vfs::File > *F, llvm::vfs::FileSystem &FS) override |
![]() | |
virtual | ~FileSystemStatCache ()=default |
Public Attributes | |
llvm::StringMap< FileData, llvm::BumpPtrAllocator > | StatCalls |
The set of stat() calls that have been seen. More... | |
Additional Inherited Members | |
![]() | |
static bool | get (StringRef Path, FileData &Data, bool isFile, std::unique_ptr< llvm::vfs::File > *F, FileSystemStatCache *Cache, llvm::vfs::FileSystem &FS) |
Get the 'stat' information for the specified path, using the cache to accelerate it if possible. More... | |
A stat "cache" that can be used by FileManager to keep track of the results of stat() calls that occur throughout the execution of the front end.
Definition at line 100 of file FileSystemStatCache.h.
using clang::MemorizeStatCalls::iterator = llvm::StringMap<FileData, llvm::BumpPtrAllocator>::const_iterator |
Definition at line 106 of file FileSystemStatCache.h.
|
inline |
Definition at line 108 of file FileSystemStatCache.h.
|
inline |
Definition at line 109 of file FileSystemStatCache.h.
|
overridevirtual |
Implements clang::FileSystemStatCache.
Definition at line 114 of file FileSystemStatCache.cpp.
References clang::FileSystemStatCache::CacheExists, clang::FileSystemStatCache::CacheMissing, and clang::FileData::IsDirectory.
llvm::StringMap<FileData, llvm::BumpPtrAllocator> clang::MemorizeStatCalls::StatCalls |
The set of stat() calls that have been seen.
Definition at line 103 of file FileSystemStatCache.h.