clang  9.0.0svn
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 "clang/Basic/FileSystemStatCache.h"

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

Public Types

using iterator = llvm::StringMap< FileData, llvm::BumpPtrAllocator >::const_iterator
 
- Public Types inherited from clang::FileSystemStatCache
enum  LookupResult { CacheExists, CacheMissing }
 

Public Member Functions

iterator begin () const
 
iterator end () const
 
LookupResult getStat (StringRef Path, FileData &Data, bool isFile, std::unique_ptr< llvm::vfs::File > *F, llvm::vfs::FileSystem &FS) override
 
- Public Member Functions inherited from clang::FileSystemStatCache
virtual ~FileSystemStatCache ()=default
 

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 (StringRef Path, FileData &Data, 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...
 

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 100 of file FileSystemStatCache.h.

Member Typedef Documentation

◆ iterator

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

Definition at line 106 of file FileSystemStatCache.h.

Member Function Documentation

◆ begin()

iterator clang::MemorizeStatCalls::begin ( ) const
inline

Definition at line 108 of file FileSystemStatCache.h.

◆ end()

iterator clang::MemorizeStatCalls::end ( ) const
inline

Definition at line 109 of file FileSystemStatCache.h.

◆ getStat()

MemorizeStatCalls::LookupResult MemorizeStatCalls::getStat ( StringRef  Path,
FileData Data,
bool  isFile,
std::unique_ptr< llvm::vfs::File > *  F,
llvm::vfs::FileSystem &  FS 
)
overridevirtual

Member Data Documentation

◆ StatCalls

llvm::StringMap<FileData, llvm::BumpPtrAllocator> clang::MemorizeStatCalls::StatCalls

The set of stat() calls that have been seen.

Definition at line 103 of file FileSystemStatCache.h.


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