clang 22.0.0git
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:
[legend]

Public Types

using 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
Public Member Functions inherited from clang::FileSystemStatCache
virtual ~FileSystemStatCache ()=default

Public Attributes

llvm::StringMap< llvm::vfs::Status, llvm::BumpPtrAllocator > StatCalls
 The set of stat() calls that have been seen.

Additional Inherited Members

Static Public Member Functions inherited from clang::FileSystemStatCache
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, bool IsText=true)
 Get the 'stat' information for the specified path, using the cache to accelerate it if possible.

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

Member Typedef Documentation

◆ iterator

Initial value:
llvm::StringMap<llvm::vfs::Status,
llvm::BumpPtrAllocator>::const_iterator

Definition at line 74 of file FileSystemStatCache.h.

Member Function Documentation

◆ begin()

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

Definition at line 78 of file FileSystemStatCache.h.

References StatCalls.

◆ end()

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

Definition at line 79 of file FileSystemStatCache.h.

References StatCalls.

◆ getStat()

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

Implements clang::FileSystemStatCache.

Definition at line 103 of file FileSystemStatCache.cpp.

References clang::FileSystemStatCache::get(), and StatCalls.

Member Data Documentation

◆ StatCalls

llvm::StringMap<llvm::vfs::Status, llvm::BumpPtrAllocator> clang::MemorizeStatCalls::StatCalls

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

Definition at line 72 of file FileSystemStatCache.h.

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


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