class DependencyScanningFilesystemLocalCache
Declaration
class DependencyScanningFilesystemLocalCache { /* full declaration omitted */ };
Description
This class is a local cache, that caches the 'stat' and 'open' calls to the underlying real file system.
Declared at: clang/include/clang/Tooling/DependencyScanning/DependencyScanningFilesystem.h:212
Member Variables
- private llvm::StringMap<const CachedFileSystemEntry*, llvm::BumpPtrAllocator> Cache
Method Overview
- public const clang::tooling::dependencies::CachedFileSystemEntry * findEntryByFilename(llvm::StringRef Filename) const
- public const clang::tooling::dependencies::CachedFileSystemEntry & insertEntryForFilename(llvm::StringRef Filename, const clang::tooling::dependencies::CachedFileSystemEntry & Entry)
Methods
¶const clang::tooling::dependencies::
CachedFileSystemEntry*
findEntryByFilename(
llvm::StringRef Filename) const
const clang::tooling::dependencies::
CachedFileSystemEntry*
findEntryByFilename(
llvm::StringRef Filename) const
Description
Returns entry associated with the filename or nullptr if none is found.
Declared at: clang/include/clang/Tooling/DependencyScanning/DependencyScanningFilesystem.h:217
Parameters
- llvm::StringRef Filename
¶const clang::tooling::dependencies::
CachedFileSystemEntry&
insertEntryForFilename(
llvm::StringRef Filename,
const clang::tooling::dependencies::
CachedFileSystemEntry& Entry)
const clang::tooling::dependencies::
CachedFileSystemEntry&
insertEntryForFilename(
llvm::StringRef Filename,
const clang::tooling::dependencies::
CachedFileSystemEntry& Entry)
Description
Associates the given entry with the filename and returns the given entry pointer (for convenience).
Declared at: clang/include/clang/Tooling/DependencyScanning/DependencyScanningFilesystem.h:225
Parameters
- llvm::StringRef Filename
- const clang::tooling::dependencies:: CachedFileSystemEntry& Entry