clang
3.7.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 <FileSystemStatCache.h>
Public Types | |
typedef llvm::StringMap < FileData, llvm::BumpPtrAllocator > ::const_iterator | iterator |
![]() | |
enum | LookupResult { CacheExists, CacheMissing } |
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 |
![]() | |
virtual | ~FileSystemStatCache () |
void | setNextStatCache (std::unique_ptr< FileSystemStatCache > Cache) |
Sets the next stat call cache in the chain of stat caches. Takes ownership of the given stat cache. More... | |
FileSystemStatCache * | getNextStatCache () |
Retrieve the next stat call cache in the chain. More... | |
std::unique_ptr < FileSystemStatCache > | takeNextStatCache () |
Retrieve the next stat call cache in the chain, transferring ownership of this cache (and, transitively, all of the remaining caches) to the caller. More... | |
Public Attributes | |
llvm::StringMap< FileData, llvm::BumpPtrAllocator > | StatCalls |
The set of stat() calls that have been seen. More... | |
Additional Inherited Members | |
![]() | |
static bool | get (const char *Path, FileData &Data, bool isFile, std::unique_ptr< vfs::File > *F, FileSystemStatCache *Cache, vfs::FileSystem &FS) |
Get the 'stat' information for the specified path, using the cache to accelerate it if possible. More... | |
![]() | |
LookupResult | statChained (const char *Path, FileData &Data, bool isFile, std::unique_ptr< vfs::File > *F, vfs::FileSystem &FS) |
![]() | |
std::unique_ptr < FileSystemStatCache > | NextStatCache |
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.
|
inline |
Definition at line 121 of file FileSystemStatCache.h.
References StatCalls.
|
inline |
Definition at line 122 of file FileSystemStatCache.h.
References StatCalls.
|
overridevirtual |
Implements clang::FileSystemStatCache.
Definition at line 110 of file FileSystemStatCache.cpp.
References clang::FileSystemStatCache::CacheMissing, clang::FileData::IsDirectory, clang::Result, 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.