clang 19.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).
 
const CachedRealPathfindRealPathByFilename (StringRef Filename) const
 Returns real path associated with the filename or nullptr if none is found.
 
const CachedRealPathinsertRealPathForFilename (StringRef Filename, const CachedRealPath &RealPath)
 Associates the given real path 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 230 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 238 of file DependencyScanningFilesystem.h.

References Filename.

◆ findRealPathByFilename()

const CachedRealPath * clang::tooling::dependencies::DependencyScanningFilesystemLocalCache::findRealPathByFilename ( StringRef  Filename) const
inline

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

Definition at line 263 of file DependencyScanningFilesystem.h.

References Filename.

Referenced by clang::tooling::dependencies::DependencyScanningWorkerFilesystem::getRealPath().

◆ 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 247 of file DependencyScanningFilesystem.h.

References Filename.

◆ insertRealPathForFilename()

const CachedRealPath & clang::tooling::dependencies::DependencyScanningFilesystemLocalCache::insertRealPathForFilename ( StringRef  Filename,
const CachedRealPath RealPath 
)
inline

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

Definition at line 272 of file DependencyScanningFilesystem.h.

References Filename.

Referenced by clang::tooling::dependencies::DependencyScanningWorkerFilesystem::getRealPath().


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