class directory_iterator
Declaration
class directory_iterator { /* full declaration omitted */ };
Description
directory_iterator - Iterates through the entries in path. There is no operator++ because we need an error_code. If it's really needed we can make it call report_fatal_error on error.
Declared at: llvm/include/llvm/Support/FileSystem.h:1423
Member Variables
- private std::shared_ptr<detail::DirIterState> State
- private bool FollowSymlinks = true
Method Overview
- public directory_iterator(const llvm::Twine & path, std::error_code & ec, bool follow_symlinks = true)
- public directory_iterator(const llvm::sys::fs::directory_entry & de, std::error_code & ec, bool follow_symlinks = true)
- public directory_iterator()
- public llvm::sys::fs::directory_iterator & increment(std::error_code & ec)
Methods
¶directory_iterator(const llvm::Twine& path,
std::error_code& ec,
bool follow_symlinks = true)
directory_iterator(const llvm::Twine& path,
std::error_code& ec,
bool follow_symlinks = true)
Declared at: llvm/include/llvm/Support/FileSystem.h:1428
Parameters
- const llvm::Twine& path
- std::error_code& ec
- bool follow_symlinks = true
¶directory_iterator(
const llvm::sys::fs::directory_entry& de,
std::error_code& ec,
bool follow_symlinks = true)
directory_iterator(
const llvm::sys::fs::directory_entry& de,
std::error_code& ec,
bool follow_symlinks = true)
Declared at: llvm/include/llvm/Support/FileSystem.h:1437
Parameters
- const llvm::sys::fs::directory_entry& de
- std::error_code& ec
- bool follow_symlinks = true
¶directory_iterator()
directory_iterator()
Description
Construct end iterator.
Declared at: llvm/include/llvm/Support/FileSystem.h:1446
¶llvm::sys::fs::directory_iterator& increment(
std::error_code& ec)
llvm::sys::fs::directory_iterator& increment(
std::error_code& ec)
Declared at: llvm/include/llvm/Support/FileSystem.h:1449
Parameters
- std::error_code& ec