LLVM 18.0.0git
|
Public Types | |
using | const_iterator = decltype(Entries)::const_iterator |
Public Member Functions | |
InMemoryDirectory (Status Stat) | |
Status | getStatus (const Twine &RequestedName) const override |
Return the Status for this node. | |
UniqueID | getUniqueID () const |
InMemoryNode * | getChild (StringRef Name) const |
InMemoryNode * | addChild (StringRef Name, std::unique_ptr< InMemoryNode > Child) |
const_iterator | begin () const |
const_iterator | end () const |
std::string | toString (unsigned Indent) const override |
![]() | |
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 |
Static Public Member Functions | |
static bool | classof (const InMemoryNode *N) |
Definition at line 727 of file VirtualFileSystem.cpp.
using llvm::vfs::detail::InMemoryDirectory::const_iterator = decltype(Entries)::const_iterator |
Definition at line 755 of file VirtualFileSystem.cpp.
|
inline |
Definition at line 732 of file VirtualFileSystem.cpp.
References llvm::vfs::detail::IME_Directory.
|
inline |
Definition at line 751 of file VirtualFileSystem.cpp.
References Name.
|
inline |
Definition at line 757 of file VirtualFileSystem.cpp.
|
inlinestatic |
Definition at line 768 of file VirtualFileSystem.cpp.
References llvm::vfs::detail::IME_Directory, and N.
|
inline |
Definition at line 758 of file VirtualFileSystem.cpp.
|
inline |
Definition at line 744 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 738 of file VirtualFileSystem.cpp.
|
inline |
Definition at line 742 of file VirtualFileSystem.cpp.
References llvm::vfs::Status::getUniqueID().
|
inlineoverridevirtual |
Implements llvm::vfs::detail::InMemoryNode.
Definition at line 760 of file VirtualFileSystem.cpp.
References llvm::vfs::Status::getName().