Gets a FileSystem for a virtual file system described in YAML format.
Synopsis
Declared in <llvm/Support/VirtualFileSystem.h>
std::unique_ptr<FileSystem>
getVFSFromYAML(
std::unique_ptr<llvm::MemoryBuffer> Buffer,
llvm::SourceMgr::DiagHandlerTy DiagHandler,
StringRef YAMLFilePath,
void* DiagContext = nullptr,
IntrusiveRefCntPtr<FileSystem> ExternalFS = getRealFileSystem());
Return Value
A FileSystem parsed from the YAML description.
Parameters
Name |
Description |
Buffer |
YAML description of the virtual file system. |
DiagHandler |
Handler invoked for YAML diagnostics. |
YAMLFilePath |
Path used when reporting diagnostics. |
DiagContext |
Opaque context passed to |
ExternalFS |
File system used for remapped external contents. |
Created with MrDocs