clang 17.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 |
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 236 of file DependencyScanningFilesystem.h.
|
inline |
Definition at line 244 of file DependencyScanningFilesystem.h.
References Filename.
|
inline |
Definition at line 264 of file DependencyScanningFilesystem.h.
References clang::tooling::dependencies::CachedFileSystemEntry::getOriginalContents().
Referenced by getStatus().
|
inline |
Definition at line 267 of file DependencyScanningFilesystem.h.
References clang::tooling::dependencies::CachedFileSystemEntry::getDirectiveTokens().
|
inline |
Definition at line 247 of file DependencyScanningFilesystem.h.
References Filename, getContents(), and clang::tooling::dependencies::CachedFileSystemEntry::getStatus().
|
inline |
Definition at line 255 of file DependencyScanningFilesystem.h.
References clang::tooling::dependencies::CachedFileSystemEntry::isDirectory().
|
inline |
Definition at line 254 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 258 of file DependencyScanningFilesystem.h.
References clang::tooling::dependencies::CachedFileSystemEntry::getError(), and isError().