clang  14.0.0git
Public Member Functions | List of all members
clang::tooling::dependencies::DependencyScanningWorkerFilesystem Class Reference

A virtual file system optimized for the dependency discovery. More...

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

Inheritance diagram for clang::tooling::dependencies::DependencyScanningWorkerFilesystem:
Inheritance graph
Collaboration diagram for clang::tooling::dependencies::DependencyScanningWorkerFilesystem:
Collaboration graph

Public Member Functions

 DependencyScanningWorkerFilesystem (DependencyScanningFilesystemSharedCache &SharedCache, IntrusiveRefCntPtr< llvm::vfs::FileSystem > FS, ExcludedPreprocessorDirectiveSkipMapping *PPSkipMappings)
llvm::ErrorOr< llvm::vfs::Status > status (const Twine &Path) override
llvm::ErrorOr< std::unique_ptr< llvm::vfs::File > > openFileForRead (const Twine &Path) override
void disableMinimization (StringRef Filename)
 Disable minimization of the given file. More...
void enableMinimizationOfAllFiles ()
 Enable minimization of all files. More...

Detailed Description

A virtual file system optimized for the dependency discovery.

It is primarily designed to work with source files whose contents was was preprocessed to remove any tokens that are unlikely to affect the dependency computation.

This is not a thread safe VFS. A single instance is meant to be used only in one thread. Multiple instances are allowed to service multiple threads running in parallel.

Definition at line 185 of file DependencyScanningFilesystem.h.

Constructor & Destructor Documentation

◆ DependencyScanningWorkerFilesystem()

clang::tooling::dependencies::DependencyScanningWorkerFilesystem::DependencyScanningWorkerFilesystem ( DependencyScanningFilesystemSharedCache SharedCache,
IntrusiveRefCntPtr< llvm::vfs::FileSystem >  FS,
ExcludedPreprocessorDirectiveSkipMapping PPSkipMappings 

Definition at line 187 of file DependencyScanningFilesystem.h.

Member Function Documentation

◆ disableMinimization()

void DependencyScanningWorkerFilesystem::disableMinimization ( StringRef  Filename)

Disable minimization of the given file.

Definition at line 154 of file DependencyScanningFilesystem.cpp.

References Filename.

◆ enableMinimizationOfAllFiles()

void clang::tooling::dependencies::DependencyScanningWorkerFilesystem::enableMinimizationOfAllFiles ( )

Enable minimization of all files.

Definition at line 201 of file DependencyScanningFilesystem.h.

◆ openFileForRead()

llvm::ErrorOr< std::unique_ptr< llvm::vfs::File > > DependencyScanningWorkerFilesystem::openFileForRead ( const Twine &  Path)

◆ status()

llvm::ErrorOr< llvm::vfs::Status > DependencyScanningWorkerFilesystem::status ( const Twine &  Path)

Definition at line 222 of file DependencyScanningFilesystem.cpp.

References Filename.

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