LLVM
8.0.1
|
The result of a status
operation.
More...
#include "llvm/Support/VirtualFileSystem.h"
Public Member Functions | |
Status ()=default | |
Status (const llvm::sys::fs::file_status &Status) | |
Status (StringRef Name, llvm::sys::fs::UniqueID UID, llvm::sys::TimePoint<> MTime, uint32_t User, uint32_t Group, uint64_t Size, llvm::sys::fs::file_type Type, llvm::sys::fs::perms Perms) | |
StringRef | getName () const |
Returns the name that should be used for this file or directory. More... | |
Status interface from llvm::sys::fs | |
llvm::sys::fs::file_type | getType () const |
llvm::sys::fs::perms | getPermissions () const |
llvm::sys::TimePoint | getLastModificationTime () const |
llvm::sys::fs::UniqueID | getUniqueID () const |
uint32_t | getUser () const |
uint32_t | getGroup () const |
uint64_t | getSize () const |
Status queries | |
These are static queries in llvm::sys::fs. | |
bool | equivalent (const Status &Other) const |
bool | isDirectory () const |
bool | isRegularFile () const |
bool | isOther () const |
bool | isSymlink () const |
bool | isStatusKnown () const |
bool | exists () const |
Static Public Member Functions | |
static Status | copyWithNewName (const Status &In, StringRef NewName) |
Get a copy of a Status with a different name. More... | |
static Status | copyWithNewName (const llvm::sys::fs::file_status &In, StringRef NewName) |
Public Attributes | |
bool | IsVFSMapped = false |
The result of a status
operation.
Definition at line 46 of file VirtualFileSystem.h.
|
default |
Referenced by copyWithNewName(), and Status().
Status::Status | ( | const llvm::sys::fs::file_status & | Status | ) |
Definition at line 65 of file VirtualFileSystem.cpp.
References Status().
llvm::vfs::Status::Status | ( | StringRef | Name, |
llvm::sys::fs::UniqueID | UID, | ||
llvm::sys::TimePoint<> | MTime, | ||
uint32_t | User, | ||
uint32_t | Group, | ||
uint64_t | Size, | ||
llvm::sys::fs::file_type | Type, | ||
llvm::sys::fs::perms | Perms | ||
) |
Get a copy of a Status with a different name.
Definition at line 76 of file VirtualFileSystem.cpp.
References getGroup(), getLastModificationTime(), getPermissions(), getSize(), getType(), getUniqueID(), getUser(), and Status().
Referenced by getRedirectedFileStatus(), and pathHasTraversal().
|
static |
Definition at line 82 of file VirtualFileSystem.cpp.
References llvm::sys::fs::basic_file_status::getGroup(), llvm::sys::fs::basic_file_status::getLastModificationTime(), llvm::sys::fs::basic_file_status::getSize(), llvm::sys::fs::file_status::getUniqueID(), llvm::sys::fs::basic_file_status::getUser(), llvm::sys::fs::basic_file_status::permissions(), Status(), and llvm::sys::fs::basic_file_status::type().
Definition at line 88 of file VirtualFileSystem.cpp.
References assert(), getUniqueID(), and isStatusKnown().
Referenced by getSize().
bool Status::exists | ( | ) | const |
Definition at line 105 of file VirtualFileSystem.cpp.
References isStatusKnown(), llvm::vfs::File::~File(), and llvm::vfs::FileSystem::~FileSystem().
Referenced by llvm::vfs::FileSystem::exists(), getSize(), and isOther().
|
inline |
Definition at line 82 of file VirtualFileSystem.h.
Referenced by copyWithNewName().
|
inline |
Definition at line 79 of file VirtualFileSystem.h.
Referenced by copyWithNewName().
|
inline |
Returns the name that should be used for this file or directory.
Definition at line 73 of file VirtualFileSystem.h.
Referenced by llvm::vfs::File::getName(), pathHasTraversal(), llvm::vfs::detail::InMemoryFile::toString(), and llvm::vfs::detail::InMemoryDirectory::toString().
|
inline |
Definition at line 78 of file VirtualFileSystem.h.
Referenced by copyWithNewName().
|
inline |
Definition at line 83 of file VirtualFileSystem.h.
References equivalent(), exists(), isDirectory(), isOther(), isRegularFile(), isStatusKnown(), isSymlink(), and Other.
Referenced by copyWithNewName().
|
inline |
Definition at line 77 of file VirtualFileSystem.h.
Referenced by copyWithNewName().
|
inline |
Definition at line 80 of file VirtualFileSystem.h.
Referenced by copyWithNewName(), and equivalent().
|
inline |
Definition at line 81 of file VirtualFileSystem.h.
Referenced by copyWithNewName().
bool Status::isDirectory | ( | ) | const |
Definition at line 93 of file VirtualFileSystem.cpp.
bool Status::isOther | ( | ) | const |
Definition at line 97 of file VirtualFileSystem.cpp.
References exists(), isDirectory(), isRegularFile(), and isSymlink().
Referenced by getSize().
bool Status::isRegularFile | ( | ) | const |
Definition at line 95 of file VirtualFileSystem.cpp.
bool Status::isStatusKnown | ( | ) | const |
Definition at line 103 of file VirtualFileSystem.cpp.
Referenced by equivalent(), exists(), and getSize().
bool Status::isSymlink | ( | ) | const |
Definition at line 101 of file VirtualFileSystem.cpp.
Definition at line 58 of file VirtualFileSystem.h.
Referenced by getRedirectedFileStatus().