clang
7.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< vfs::File > *F, vfs::FileSystem &FS) override |
![]() | |
virtual | ~FileSystemStatCache ()=default |
void | setNextStatCache (std::unique_ptr< FileSystemStatCache > Cache) |
Sets the next stat call cache in the chain of stat caches. 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 (StringRef 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 (StringRef 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 126 of file FileSystemStatCache.h.
using clang::MemorizeStatCalls::iterator = llvm::StringMap<FileData, llvm::BumpPtrAllocator>::const_iterator |
Definition at line 132 of file FileSystemStatCache.h.
|
inline |
Definition at line 134 of file FileSystemStatCache.h.
|
inline |
Definition at line 135 of file FileSystemStatCache.h.
|
overridevirtual |
Implements clang::FileSystemStatCache.
Definition at line 113 of file FileSystemStatCache.cpp.
References clang::FileSystemStatCache::CacheMissing, clang::FileData::IsDirectory, clang::Result, and clang::FileSystemStatCache::statChained().
llvm::StringMap<FileData, llvm::BumpPtrAllocator> clang::MemorizeStatCalls::StatCalls |
The set of stat() calls that have been seen.
Definition at line 129 of file FileSystemStatCache.h.