LLVM  6.0.0svn
Public Member Functions | List of all members
llvm::sys::fs::recursive_directory_iterator Class Reference

recursive_directory_iterator - Same as directory_iterator except for it recurses down into child directories. More...

#include "llvm/Support/FileSystem.h"

Public Member Functions

 recursive_directory_iterator ()=default
 
 recursive_directory_iterator (const Twine &path, std::error_code &ec, bool follow_symlinks=true)
 
recursive_directory_iteratorincrement (std::error_code &ec)
 
const directory_entryoperator* () const
 
const directory_entryoperator-> () const
 
int level () const
 Gets the current level. Starting path is at level 0. More...
 
bool no_push_request () const
 Returns true if no_push has been called for this directory_entry. More...
 
void pop ()
 Goes up one level if Level > 0. More...
 
void no_push ()
 Does not go down into the current directory_entry. More...
 
bool operator== (const recursive_directory_iterator &RHS) const
 
bool operator!= (const recursive_directory_iterator &RHS) const
 

Detailed Description

recursive_directory_iterator - Same as directory_iterator except for it recurses down into child directories.

Definition at line 974 of file FileSystem.h.

Constructor & Destructor Documentation

◆ recursive_directory_iterator() [1/2]

llvm::sys::fs::recursive_directory_iterator::recursive_directory_iterator ( )
default

◆ recursive_directory_iterator() [2/2]

llvm::sys::fs::recursive_directory_iterator::recursive_directory_iterator ( const Twine path,
std::error_code &  ec,
bool  follow_symlinks = true 
)
inlineexplicit

Definition at line 980 of file FileSystem.h.

Member Function Documentation

◆ increment()

recursive_directory_iterator& llvm::sys::fs::recursive_directory_iterator::increment ( std::error_code &  ec)
inline

Definition at line 990 of file FileSystem.h.

References llvm::sys::fs::is_directory().

◆ level()

int llvm::sys::fs::recursive_directory_iterator::level ( ) const
inline

Gets the current level. Starting path is at level 0.

Definition at line 1027 of file FileSystem.h.

◆ no_push()

void llvm::sys::fs::recursive_directory_iterator::no_push ( )
inline

Does not go down into the current directory_entry.

Definition at line 1054 of file FileSystem.h.

◆ no_push_request()

bool llvm::sys::fs::recursive_directory_iterator::no_push_request ( ) const
inline

Returns true if no_push has been called for this directory_entry.

Definition at line 1030 of file FileSystem.h.

◆ operator!=()

bool llvm::sys::fs::recursive_directory_iterator::operator!= ( const recursive_directory_iterator RHS) const
inline

Definition at line 1060 of file FileSystem.h.

◆ operator*()

const directory_entry& llvm::sys::fs::recursive_directory_iterator::operator* ( ) const
inline

Definition at line 1022 of file FileSystem.h.

◆ operator->()

const directory_entry* llvm::sys::fs::recursive_directory_iterator::operator-> ( ) const
inline

Definition at line 1023 of file FileSystem.h.

◆ operator==()

bool llvm::sys::fs::recursive_directory_iterator::operator== ( const recursive_directory_iterator RHS) const
inline

Definition at line 1056 of file FileSystem.h.

◆ pop()

void llvm::sys::fs::recursive_directory_iterator::pop ( )
inline

Goes up one level if Level > 0.

Definition at line 1034 of file FileSystem.h.

References assert(), and llvm::report_fatal_error().


The documentation for this class was generated from the following file: