clang 18.0.0git
Public Member Functions | List of all members
clang::tooling::dependencies::DependencyScanningFilesystemLocalCache Class Reference

This class is a local cache, that caches the 'stat' and 'open' calls to the underlying real file system. More...

#include "clang/Tooling/DependencyScanning/DependencyScanningFilesystem.h"

Public Member Functions

const CachedFileSystemEntryfindEntryByFilename (StringRef Filename) const
 Returns entry associated with the filename or nullptr if none is found.
 
const CachedFileSystemEntryinsertEntryForFilename (StringRef Filename, const CachedFileSystemEntry &Entry)
 Associates the given entry with the filename and returns the given entry pointer (for convenience).
 

Detailed Description

This class is a local cache, that caches the 'stat' and 'open' calls to the underlying real file system.

Definition at line 212 of file DependencyScanningFilesystem.h.

Member Function Documentation

◆ findEntryByFilename()

const CachedFileSystemEntry * clang::tooling::dependencies::DependencyScanningFilesystemLocalCache::findEntryByFilename ( StringRef  Filename) const
inline

Returns entry associated with the filename or nullptr if none is found.

Definition at line 217 of file DependencyScanningFilesystem.h.

References Filename.

◆ insertEntryForFilename()

const CachedFileSystemEntry & clang::tooling::dependencies::DependencyScanningFilesystemLocalCache::insertEntryForFilename ( StringRef  Filename,
const CachedFileSystemEntry Entry 
)
inline

Associates the given entry with the filename and returns the given entry pointer (for convenience).

Definition at line 226 of file DependencyScanningFilesystem.h.

References Filename.


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