LLVM 20.0.0git
|
The in memory file system is a tree of Nodes. More...
Public Member Functions | |
InMemoryNode (llvm::StringRef FileName, InMemoryNodeKind Kind) | |
virtual | ~InMemoryNode ()=default |
virtual Status | getStatus (const Twine &RequestedName) const =0 |
Return the Status for this node. | |
StringRef | getFileName () const |
Get the filename of this node (the name without the directory part). | |
InMemoryNodeKind | getKind () const |
virtual std::string | toString (unsigned Indent) const =0 |
The in memory file system is a tree of Nodes.
Every node can either be a file, symlink, hardlink or a directory.
Definition at line 640 of file VirtualFileSystem.cpp.
|
inline |
Definition at line 645 of file VirtualFileSystem.cpp.
References string.
|
virtualdefault |
|
inline |
Get the filename of this node (the name without the directory part).
Definition at line 656 of file VirtualFileSystem.cpp.
|
inline |
Definition at line 657 of file VirtualFileSystem.cpp.
|
pure virtual |
Return the Status
for this node.
RequestedName
should be the name through which the caller referred to this node. It will override Status::Name
in the return value, to mimic the behavior of RealFile
.
Implemented in llvm::vfs::detail::InMemoryFile, and llvm::vfs::detail::InMemoryDirectory.
|
pure virtual |
Implemented in llvm::vfs::detail::InMemoryFile, and llvm::vfs::detail::InMemoryDirectory.