LLVM  15.0.0git
Public Member Functions | Public Attributes | List of all members
llvm::vfs::RedirectingFileSystem::LookupResult Struct Reference

Represents the result of a path lookup into the RedirectingFileSystem. More...

#include "llvm/Support/VirtualFileSystem.h"

Collaboration diagram for llvm::vfs::RedirectingFileSystem::LookupResult:
Collaboration graph
[legend]

Public Member Functions

 LookupResult (Entry *E, sys::path::const_iterator Start, sys::path::const_iterator End)
 
Optional< StringRefgetExternalRedirect () const
 If the found Entry maps the the input path to a path in the external file system (i.e. More...
 

Public Attributes

EntryE
 The entry the looked-up path corresponds to. More...
 

Detailed Description

Represents the result of a path lookup into the RedirectingFileSystem.

Definition at line 812 of file VirtualFileSystem.h.

Constructor & Destructor Documentation

◆ LookupResult()

RedirectingFileSystem::LookupResult::LookupResult ( Entry E,
sys::path::const_iterator  Start,
sys::path::const_iterator  End 
)

Definition at line 2080 of file VirtualFileSystem.cpp.

Member Function Documentation

◆ getExternalRedirect()

Optional<StringRef> llvm::vfs::RedirectingFileSystem::LookupResult::getExternalRedirect ( ) const
inline

If the found Entry maps the the input path to a path in the external file system (i.e.

it is a FileEntry or DirectoryRemapEntry), returns that path.

Definition at line 829 of file VirtualFileSystem.h.

References E, and llvm::None.

Member Data Documentation

◆ E

Entry* llvm::vfs::RedirectingFileSystem::LookupResult::E

The entry the looked-up path corresponds to.

Definition at line 814 of file VirtualFileSystem.h.

Referenced by getExternalRedirect().


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