LLVM 22.0.0git
|
Public Member Functions | |
InMemoryFile (Status Stat, std::unique_ptr< llvm::MemoryBuffer > Buffer) | |
Status | getStatus (const Twine &RequestedName) const override |
Return the Status for this node. | |
llvm::MemoryBuffer * | getBuffer () const |
std::string | toString (unsigned Indent) const override |
Public Member Functions inherited from llvm::vfs::detail::InMemoryNode | |
InMemoryNode (llvm::StringRef FileName, InMemoryNodeKind Kind) | |
virtual | ~InMemoryNode ()=default |
StringRef | getFileName () const |
Get the filename of this node (the name without the directory part). | |
InMemoryNodeKind | getKind () const |
Static Public Member Functions | |
static bool | classof (const InMemoryNode *N) |
Definition at line 662 of file VirtualFileSystem.cpp.
|
inline |
Definition at line 667 of file VirtualFileSystem.cpp.
References getName(), llvm::vfs::detail::IME_File, llvm::vfs::detail::InMemoryNode::InMemoryNode(), and llvm::move().
|
inlinestatic |
Definition at line 680 of file VirtualFileSystem.cpp.
References llvm::vfs::detail::IME_File, llvm::vfs::detail::InMemoryNode::InMemoryNode(), and N.
|
inline |
Definition at line 674 of file VirtualFileSystem.cpp.
|
inlineoverridevirtual |
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
.
Implements llvm::vfs::detail::InMemoryNode.
Definition at line 671 of file VirtualFileSystem.cpp.
References llvm::vfs::Status::copyWithNewName().
|
inlineoverridevirtual |
Implements llvm::vfs::detail::InMemoryNode.
Definition at line 676 of file VirtualFileSystem.cpp.