clang API Documentation
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 <FileSystemStatCache.h>
Public Types | |
typedef llvm::StringMap < FileData, llvm::BumpPtrAllocator > ::const_iterator | iterator |
Public Member Functions | |
iterator | begin () const |
iterator | end () const |
LookupResult | getStat (const char *Path, FileData &Data, bool isFile, std::unique_ptr< vfs::File > *F, vfs::FileSystem &FS) override |
Public Attributes | |
llvm::StringMap< FileData, llvm::BumpPtrAllocator > | StatCalls |
The set of stat() calls that have been seen. |
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 113 of file FileSystemStatCache.h.
typedef llvm::StringMap<FileData, llvm::BumpPtrAllocator>::const_iterator clang::MemorizeStatCalls::iterator |
Definition at line 119 of file FileSystemStatCache.h.
iterator clang::MemorizeStatCalls::begin | ( | ) | const [inline] |
Definition at line 121 of file FileSystemStatCache.h.
References StatCalls.
iterator clang::MemorizeStatCalls::end | ( | ) | const [inline] |
Definition at line 122 of file FileSystemStatCache.h.
References StatCalls.
MemorizeStatCalls::LookupResult MemorizeStatCalls::getStat | ( | const char * | Path, |
FileData & | Data, | ||
bool | isFile, | ||
std::unique_ptr< vfs::File > * | F, | ||
vfs::FileSystem & | FS | ||
) | [override, virtual] |
Implements clang::FileSystemStatCache.
Definition at line 121 of file FileSystemStatCache.cpp.
References clang::FileSystemStatCache::CacheMissing, clang::FileData::IsDirectory, StatCalls, and clang::FileSystemStatCache::statChained().
llvm::StringMap<FileData, llvm::BumpPtrAllocator> clang::MemorizeStatCalls::StatCalls |
The set of stat() calls that have been seen.
Definition at line 116 of file FileSystemStatCache.h.