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());
Parameters
Name |
Description |
DiagHandler |
Clients that want to handle their own diagnostics in a custom way can register a function pointer+context as a diagnostic handler. It gets called each time PrintMessage is invoked. |
YAMLFilePath |
Represent a constant reference to a string, i.e. a character array and a length, which need not be null terminated. |
ExternalFS |
A smart pointer to a reference‐counted object that inherits from RefCountedBase or ThreadSafeRefCountedBase. |
Created with MrDocs