LLVM API Documentation
#include <FileSystem.h>
Public Member Functions | |
| directory_entry (const Twine &path, file_status st=file_status()) | |
| directory_entry () | |
| void | assign (const Twine &path, file_status st=file_status()) |
| void | replace_filename (const Twine &filename, file_status st=file_status()) |
| const std::string & | path () const |
| error_code | status (file_status &result) 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 679 of file FileSystem.h.
| llvm::sys::fs::directory_entry::directory_entry | ( | const Twine & | path, |
| file_status | st = file_status() |
||
| ) | [inline, explicit] |
Definition at line 684 of file FileSystem.h.
| llvm::sys::fs::directory_entry::directory_entry | ( | ) | [inline] |
Definition at line 688 of file FileSystem.h.
| void llvm::sys::fs::directory_entry::assign | ( | const Twine & | path, |
| file_status | st = file_status() |
||
| ) | [inline] |
Definition at line 690 of file FileSystem.h.
References llvm::Twine::str().
| bool llvm::sys::fs::directory_entry::operator!= | ( | const directory_entry & | rhs | ) | const [inline] |
Definition at line 701 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 |
| bool llvm::sys::fs::directory_entry::operator== | ( | const directory_entry & | rhs | ) | const [inline] |
Definition at line 700 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 |
| const std::string& llvm::sys::fs::directory_entry::path | ( | ) | const [inline] |
Definition at line 697 of file FileSystem.h.
Referenced by llvm::sys::fs::directory_iterator::directory_iterator(), and replace_filename().
| void llvm::sys::fs::directory_entry::replace_filename | ( | const Twine & | filename, |
| file_status | st = file_status() |
||
| ) |
Definition at line 755 of file PathV2.cpp.
References llvm::sys::path::append(), path(), llvm::sys::path::remove_filename(), and llvm::sys::Path::str().
| error_code llvm::sys::fs::directory_entry::status | ( | file_status & | result | ) | const |
Definition at line 946 of file PathV2.cpp.