clang 20.0.0git
|
Reference to a CachedFileSystemEntry. More...
#include "clang/Tooling/DependencyScanning/DependencyScanningFilesystem.h"
Public Member Functions | |
EntryRef (StringRef Name, const CachedFileSystemEntry &Entry) | |
llvm::vfs::Status | getStatus () const |
bool | isError () const |
bool | isDirectory () const |
llvm::ErrorOr< EntryRef > | unwrapError () const |
If the cached entry represents an error, promotes it into ErrorOr . | |
StringRef | getContents () const |
std::optional< ArrayRef< dependency_directives_scan::Directive > > | getDirectiveTokens () const |
Friends | |
class | DependencyScanningWorkerFilesystem |
Reference to a CachedFileSystemEntry.
If the underlying entry is an opened file, this wrapper returns the file contents and the scanned preprocessor directives.
Definition at line 290 of file DependencyScanningFilesystem.h.
|
inline |
Definition at line 300 of file DependencyScanningFilesystem.h.
|
inline |
Definition at line 320 of file DependencyScanningFilesystem.h.
References clang::tooling::dependencies::CachedFileSystemEntry::getOriginalContents().
Referenced by getStatus().
|
inline |
Definition at line 323 of file DependencyScanningFilesystem.h.
References clang::tooling::dependencies::CachedFileSystemEntry::getDirectiveTokens().
|
inline |
Definition at line 303 of file DependencyScanningFilesystem.h.
References Filename, getContents(), and clang::tooling::dependencies::CachedFileSystemEntry::getStatus().
|
inline |
Definition at line 311 of file DependencyScanningFilesystem.h.
References clang::tooling::dependencies::CachedFileSystemEntry::isDirectory().
|
inline |
Definition at line 310 of file DependencyScanningFilesystem.h.
References clang::tooling::dependencies::CachedFileSystemEntry::isError().
Referenced by unwrapError().
|
inline |
If the cached entry represents an error, promotes it into ErrorOr
.
Definition at line 314 of file DependencyScanningFilesystem.h.
References clang::tooling::dependencies::CachedFileSystemEntry::getError(), and isError().
Referenced by clang::tooling::dependencies::DependencyScanningWorkerFilesystem::getOrCreateFileSystemEntry().
|
friend |
Definition at line 297 of file DependencyScanningFilesystem.h.