clang 22.0.0git
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 260 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 268 of file DependencyScanningFilesystem.h.

References clang::nullptr.

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

References clang::nullptr.

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

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


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