class recursive_directory_iterator

Declaration

class recursive_directory_iterator { /* full declaration omitted */ };

Description

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

Declared at: llvm/include/llvm/Support/FileSystem.h:1485

Member Variables

private std::shared_ptr<detail::RecDirIterState> State
private bool Follow

Method Overview

Methods

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

Declared at: llvm/include/llvm/Support/FileSystem.h:1501

Parameters

std::error_code& ec

int level() const

Description

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

Declared at: llvm/include/llvm/Support/FileSystem.h:1543

void no_push()

Description

Does not go down into the current directory_entry.

Declared at: llvm/include/llvm/Support/FileSystem.h:1570

bool no_push_request() const

Description

Returns true if no_push has been called for this directory_entry.

Declared at: llvm/include/llvm/Support/FileSystem.h:1546

void pop()

Description

Goes up one level if Level > 0.

Declared at: llvm/include/llvm/Support/FileSystem.h:1550

recursive_directory_iterator()

Declared at: llvm/include/llvm/Support/FileSystem.h:1490

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

Declared at: llvm/include/llvm/Support/FileSystem.h:1491

Parameters

const llvm::Twine& path
std::error_code& ec
bool follow_symlinks = true