clang 20.0.0git
|
An in-memory representation of a file system entity that is of interest to the dependency scanning filesystem. More...
#include "clang/Tooling/DependencyScanning/DependencyScanningFilesystem.h"
Public Member Functions | |
CachedFileSystemEntry (llvm::ErrorOr< llvm::vfs::Status > Stat) | |
Creates an entry without contents: either a filesystem error or a directory with stat value. | |
CachedFileSystemEntry (llvm::ErrorOr< llvm::vfs::Status > Stat, CachedFileContents *Contents) | |
Creates an entry representing a file with contents. | |
bool | isError () const |
bool | isDirectory () const |
StringRef | getOriginalContents () const |
std::optional< ArrayRef< dependency_directives_scan::Directive > > | getDirectiveTokens () const |
std::error_code | getError () const |
llvm::vfs::Status | getStatus () const |
llvm::sys::fs::UniqueID | getUniqueID () const |
CachedFileContents * | getCachedContents () const |
An in-memory representation of a file system entity that is of interest to the dependency scanning filesystem.
It represents one of the following:
Single instance of this class can be shared across different filenames (e.g. a regular file and a symlink). For this reason the status filename is empty and is only materialized by EntryRef
that knows the requested filename.
Definition at line 60 of file DependencyScanningFilesystem.h.
|
inline |
Creates an entry without contents: either a filesystem error or a directory with stat value.
Definition at line 64 of file DependencyScanningFilesystem.h.
|
inline |
Creates an entry representing a file with contents.
Definition at line 70 of file DependencyScanningFilesystem.h.
|
inline |
Definition at line 121 of file DependencyScanningFilesystem.h.
References isDirectory(), and isError().
|
inline |
Definition at line 93 of file DependencyScanningFilesystem.h.
References clang::tooling::dependencies::CachedFileContents::DepDirectives, isDirectory(), and isError().
Referenced by clang::tooling::dependencies::EntryRef::getDirectiveTokens().
|
inline |
Definition at line 105 of file DependencyScanningFilesystem.h.
Referenced by clang::tooling::dependencies::EntryRef::unwrapError().
|
inline |
Definition at line 83 of file DependencyScanningFilesystem.h.
References isError(), and clang::tooling::dependencies::CachedFileContents::Original.
Referenced by clang::tooling::dependencies::EntryRef::getContents().
|
inline |
Definition at line 108 of file DependencyScanningFilesystem.h.
References isError().
Referenced by clang::tooling::dependencies::EntryRef::getStatus().
|
inline |
Definition at line 115 of file DependencyScanningFilesystem.h.
References isError().
|
inline |
Definition at line 80 of file DependencyScanningFilesystem.h.
References isError().
Referenced by getCachedContents(), getDirectiveTokens(), and clang::tooling::dependencies::EntryRef::isDirectory().
|
inline |
Definition at line 77 of file DependencyScanningFilesystem.h.
Referenced by getCachedContents(), getDirectiveTokens(), getOriginalContents(), getStatus(), getUniqueID(), isDirectory(), and clang::tooling::dependencies::EntryRef::isError().