clang  3.9.0
Public Types | Public Member Functions | Public Attributes | List of all members
clang::MemorizeStatCalls Class Reference

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>

Inheritance diagram for clang::MemorizeStatCalls:
[legend]
Collaboration diagram for clang::MemorizeStatCalls:
[legend]

Public Types

typedef llvm::StringMap
< FileData,
llvm::BumpPtrAllocator >
::const_iterator 
iterator
 
- Public Types inherited from clang::FileSystemStatCache
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
 
- Public Member Functions inherited from clang::FileSystemStatCache
virtual ~FileSystemStatCache ()
 
void setNextStatCache (std::unique_ptr< FileSystemStatCache > Cache)
 Sets the next stat call cache in the chain of stat caches. More...
 
FileSystemStatCachegetNextStatCache ()
 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 Public Member Functions inherited from clang::FileSystemStatCache
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...
 
- Protected Member Functions inherited from clang::FileSystemStatCache
LookupResult statChained (const char *Path, FileData &Data, bool isFile, std::unique_ptr< vfs::File > *F, vfs::FileSystem &FS)
 
- Protected Attributes inherited from clang::FileSystemStatCache
std::unique_ptr
< FileSystemStatCache
NextStatCache
 

Detailed Description

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.

Member Typedef Documentation

typedef llvm::StringMap<FileData, llvm::BumpPtrAllocator>::const_iterator clang::MemorizeStatCalls::iterator

Definition at line 119 of file FileSystemStatCache.h.

Member Function Documentation

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 
)
overridevirtual

Member Data Documentation

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.

Referenced by begin(), end(), and getStat().


The documentation for this class was generated from the following files: