clang API Documentation
#include <StmtIterator.h>
Public Member Functions | |
StmtRange () | |
StmtRange (const StmtIterator &begin, const StmtIterator &end) | |
bool | empty () const |
LLVM_EXPLICIT | operator bool () const |
Stmt * | operator-> () const |
Stmt *& | operator* () const |
StmtRange & | operator++ () |
StmtRange | operator++ (int) |
Friends | |
const StmtIterator & | begin (const StmtRange &range) |
const StmtIterator & | end (const StmtRange &range) |
A range of statement iterators.
This class provides some extra functionality beyond std::pair in order to allow the following idiom: for (StmtRange range = stmt->children(); range; ++range)
Definition at line 145 of file StmtIterator.h.
clang::StmtRange::StmtRange | ( | ) | [inline] |
Definition at line 146 of file StmtIterator.h.
clang::StmtRange::StmtRange | ( | const StmtIterator & | begin, |
const StmtIterator & | end | ||
) | [inline] |
Definition at line 147 of file StmtIterator.h.
bool clang::StmtRange::empty | ( | ) | const [inline] |
Definition at line 150 of file StmtIterator.h.
Referenced by operator bool(), and operator++().
LLVM_EXPLICIT clang::StmtRange::operator bool | ( | ) | const [inline] |
Definition at line 151 of file StmtIterator.h.
References empty().
Stmt*& clang::StmtRange::operator* | ( | ) | const [inline] |
Definition at line 154 of file StmtIterator.h.
StmtRange& clang::StmtRange::operator++ | ( | ) | [inline] |
Definition at line 156 of file StmtIterator.h.
References empty().
StmtRange clang::StmtRange::operator++ | ( | int | ) | [inline] |
Definition at line 162 of file StmtIterator.h.
References empty().
Stmt* clang::StmtRange::operator-> | ( | ) | const [inline] |
Definition at line 153 of file StmtIterator.h.
const StmtIterator& begin | ( | const StmtRange & | range | ) | [friend] |
Definition at line 169 of file StmtIterator.h.
const StmtIterator& end | ( | const StmtRange & | range | ) | [friend] |
Definition at line 172 of file StmtIterator.h.