LLVM
8.0.1
|
directory_entry - A single entry in a directory. More...
#include "llvm/Support/FileSystem.h"
Public Member Functions | |
directory_entry (const Twine &Path, bool FollowSymlinks=true, file_type Type=file_type::type_unknown, basic_file_status Status=basic_file_status()) | |
directory_entry ()=default | |
void | replace_filename (const Twine &Filename, file_type Type, basic_file_status Status=basic_file_status()) |
const std::string & | path () const |
ErrorOr< basic_file_status > | status () const |
file_type | type () const |
bool | operator== (const directory_entry &RHS) const |
bool | operator!= (const directory_entry &RHS) const |
bool | operator< (const directory_entry &RHS) const |
bool | operator<= (const directory_entry &RHS) const |
bool | operator> (const directory_entry &RHS) const |
bool | operator>= (const directory_entry &RHS) const |
directory_entry - A single entry in a directory.
Definition at line 1128 of file FileSystem.h.
|
inlineexplicit |
Definition at line 1140 of file FileSystem.h.
|
default |
|
inline |
Definition at line 1167 of file FileSystem.h.
References llvm::sys::operator<(), llvm::operator<=(), llvm::operator>(), and llvm::operator>=().
bool llvm::sys::fs::directory_entry::operator< | ( | const directory_entry & | RHS | ) | const |
bool llvm::sys::fs::directory_entry::operator<= | ( | const directory_entry & | RHS | ) | const |
|
inline |
Definition at line 1166 of file FileSystem.h.
bool llvm::sys::fs::directory_entry::operator> | ( | const directory_entry & | RHS | ) | const |
bool llvm::sys::fs::directory_entry::operator>= | ( | const directory_entry & | RHS | ) | const |
|
inline |
Definition at line 1151 of file FileSystem.h.
References llvm::sys::fs::status().
Referenced by llvm::sys::fs::directory_iterator::directory_iterator(), and llvm::vfs::getRealFileSystem().
void llvm::sys::fs::directory_entry::replace_filename | ( | const Twine & | Filename, |
file_type | Type, | ||
basic_file_status | Status = basic_file_status() |
||
) |
Definition at line 1087 of file Path.cpp.
References llvm::sys::path::append(), llvm::sys::path::parent_path(), and llvm::SmallString< InternalLen >::str().
ErrorOr<basic_file_status> llvm::sys::fs::directory_entry::status | ( | ) | const |
|
inline |
Definition at line 1159 of file FileSystem.h.
References llvm::sys::fs::status(), and llvm::sys::fs::type_unknown.
Referenced by llvm::vfs::getRealFileSystem().