clang
10.0.0git
|
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< llvm::vfs::Status, llvm::BumpPtrAllocator >::const_iterator |
Public Member Functions | |
iterator | begin () const |
iterator | end () const |
std::error_code | getStat (StringRef Path, llvm::vfs::Status &Status, bool isFile, std::unique_ptr< llvm::vfs::File > *F, llvm::vfs::FileSystem &FS) override |
![]() | |
virtual | ~FileSystemStatCache ()=default |
Public Attributes | |
llvm::StringMap< llvm::vfs::Status, llvm::BumpPtrAllocator > | StatCalls |
The set of stat() calls that have been seen. More... | |
Additional Inherited Members | |
![]() | |
static std::error_code | get (StringRef Path, llvm::vfs::Status &Status, 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 68 of file FileSystemStatCache.h.
using clang::MemorizeStatCalls::iterator = llvm::StringMap<llvm::vfs::Status, llvm::BumpPtrAllocator>::const_iterator |
Definition at line 75 of file FileSystemStatCache.h.
|
inline |
Definition at line 77 of file FileSystemStatCache.h.
|
inline |
Definition at line 78 of file FileSystemStatCache.h.
References clang::FileSystemStatCache::getStat().
|
overridevirtual |
Implements clang::FileSystemStatCache.
Definition at line 102 of file FileSystemStatCache.cpp.
llvm::StringMap<llvm::vfs::Status, llvm::BumpPtrAllocator> clang::MemorizeStatCalls::StatCalls |
The set of stat() calls that have been seen.
Definition at line 71 of file FileSystemStatCache.h.