|
LLVM
7.0.0
|
directory_entry - A single entry in a directory. More...
#include "llvm/Support/FileSystem.h"
Public Member Functions | |
| directory_entry (const Twine &path, bool follow_symlinks=true, basic_file_status st=basic_file_status()) | |
| directory_entry ()=default | |
| void | assign (const Twine &path, basic_file_status st=basic_file_status()) |
| void | replace_filename (const Twine &filename, basic_file_status st=basic_file_status()) |
| const std::string & | path () const |
| ErrorOr< basic_file_status > | status () 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.
Caches the status either from the result of the iteration syscall, or the first time status is called.
Definition at line 1098 of file FileSystem.h.
|
inlineexplicit |
Definition at line 1104 of file FileSystem.h.
|
default |
|
inline |
Definition at line 1110 of file FileSystem.h.
References llvm::sys::path::filename(), and llvm::Twine::str().
|
inline |
Definition at line 1122 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 1121 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 1118 of file FileSystem.h.
References llvm::sys::fs::status().
Referenced by llvm::sys::fs::directory_iterator::directory_iterator().
| void llvm::sys::fs::directory_entry::replace_filename | ( | const Twine & | filename, |
| basic_file_status | st = basic_file_status() |
||
| ) |
Definition at line 1079 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 |
1.8.13