clang  8.0.0svn
Public Member Functions | Static Public Member Functions | List of all members
clang::vfs::detail::InMemoryFile Class Reference
Inheritance diagram for clang::vfs::detail::InMemoryFile:
Inheritance graph
Collaboration diagram for clang::vfs::detail::InMemoryFile:
Collaboration graph

Public Member Functions

 InMemoryFile (Status Stat, std::unique_ptr< llvm::MemoryBuffer > Buffer)
Status getStatus (StringRef RequestedName) const
 Return the Status for this node. More...
llvm::MemoryBuffer * getBuffer () const
std::string toString (unsigned Indent) const override
- Public Member Functions inherited from clang::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). More...
InMemoryNodeKind getKind () const

Static Public Member Functions

static bool classof (const InMemoryNode *N)

Detailed Description

Definition at line 492 of file VirtualFileSystem.cpp.

Constructor & Destructor Documentation

◆ InMemoryFile()

clang::vfs::detail::InMemoryFile::InMemoryFile ( Status  Stat,
std::unique_ptr< llvm::MemoryBuffer >  Buffer 

Definition at line 497 of file VirtualFileSystem.cpp.

Member Function Documentation

◆ classof()

static bool clang::vfs::detail::InMemoryFile::classof ( const InMemoryNode N)

◆ getBuffer()

llvm::MemoryBuffer* clang::vfs::detail::InMemoryFile::getBuffer ( ) const

Definition at line 507 of file VirtualFileSystem.cpp.

◆ getStatus()

Status clang::vfs::detail::InMemoryFile::getStatus ( StringRef  RequestedName) const

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.

Definition at line 504 of file VirtualFileSystem.cpp.

◆ toString()

std::string clang::vfs::detail::InMemoryFile::toString ( unsigned  Indent) const

Implements clang::vfs::detail::InMemoryNode.

Definition at line 509 of file VirtualFileSystem.cpp.

The documentation for this class was generated from the following file: