class InMemoryNode

Declaration

class InMemoryNode { /* full declaration omitted */ };

Description

The in memory file system is a tree of Nodes. Every node can either be a file, symlink, hardlink or a directory.

Declared at: llvm/lib/Support/VirtualFileSystem.cpp:602

Member Variables

private llvm::vfs::detail::InMemoryNodeKind Kind
private std::string FileName

Method Overview

  • public InMemoryNode(llvm::StringRef FileName, llvm::vfs::detail::InMemoryNodeKind Kind)
  • public llvm::StringRef getFileName() const
  • public llvm::vfs::detail::InMemoryNodeKind getKind() const
  • public virtual llvm::vfs::Status getStatus(const llvm::Twine & RequestedName) const
  • public virtual std::string toString(unsigned int Indent) const
  • public virtual ~InMemoryNode()

Methods

InMemoryNode(
    llvm::StringRef FileName,
    llvm::vfs::detail::InMemoryNodeKind Kind)

Declared at: llvm/lib/Support/VirtualFileSystem.cpp:607

Parameters

llvm::StringRef FileName
llvm::vfs::detail::InMemoryNodeKind Kind

llvm::StringRef getFileName() const

Description

Get the filename of this node (the name without the directory part).

Declared at: llvm/lib/Support/VirtualFileSystem.cpp:618

llvm::vfs::detail::InMemoryNodeKind getKind()
    const

Declared at: llvm/lib/Support/VirtualFileSystem.cpp:619

virtual llvm::vfs::Status getStatus(
    const llvm::Twine& RequestedName) const

Description

Return the \p Status for this node. \p RequestedName should be the name through which the caller referred to this node. It will override\p Status::Name in the return value, to mimic the behavior of \p RealFile.

Declared at: llvm/lib/Support/VirtualFileSystem.cpp:615

Parameters

const llvm::Twine& RequestedName

virtual std::string toString(
    unsigned int Indent) const

Declared at: llvm/lib/Support/VirtualFileSystem.cpp:620

Parameters

unsigned int Indent

virtual ~InMemoryNode()

Declared at: llvm/lib/Support/VirtualFileSystem.cpp:610