struct RedirectingFileSystem::LookupResult
Declaration
struct RedirectingFileSystem::LookupResult { /* full declaration omitted */ };
Description
Represents the result of a path lookup into the RedirectingFileSystem.
Declared at: llvm/include/llvm/Support/VirtualFileSystem.h:852
Member Variables
- public llvm::vfs::RedirectingFileSystem::Entry* E
- The entry the looked-up path corresponds to.
- private Optional<std::string> ExternalRedirect
- When the found Entry is a DirectoryRemapEntry, stores the path in the external file system that the looked-up path in the virtual file system
Method Overview
- public LookupResult(llvm::vfs::RedirectingFileSystem::Entry * E, sys::path::const_iterator Start, sys::path::const_iterator End)
- public Optional<llvm::StringRef> getExternalRedirect() const
Methods
¶LookupResult(
llvm::vfs::RedirectingFileSystem::Entry* E,
sys::path::const_iterator Start,
sys::path::const_iterator End)
LookupResult(
llvm::vfs::RedirectingFileSystem::Entry* E,
sys::path::const_iterator Start,
sys::path::const_iterator End)
Declared at: llvm/include/llvm/Support/VirtualFileSystem.h:863
Parameters
- llvm::vfs::RedirectingFileSystem::Entry* E
- sys::path::const_iterator Start
- sys::path::const_iterator End
¶Optional<llvm::StringRef> getExternalRedirect()
const
Optional<llvm::StringRef> getExternalRedirect()
const
Description
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.
Declared at: llvm/include/llvm/Support/VirtualFileSystem.h:869