LLVM 20.0.0git
|
Path iterator. More...
#include "llvm/Support/Path.h"
Public Member Functions | |
reference | operator* () const |
const_iterator & | operator++ () |
bool | operator== (const const_iterator &RHS) const |
ptrdiff_t | operator- (const const_iterator &RHS) const |
Difference in bytes between this and RHS. | |
Public Member Functions inherited from llvm::iterator_facade_base< const_iterator, std::input_iterator_tag, const StringRef > | |
const_iterator | operator+ (std::ptrdiff_t n) const |
const_iterator | operator- (std::ptrdiff_t n) const |
const_iterator & | operator++ () |
const_iterator | operator++ (int) |
const_iterator & | operator-- () |
const_iterator | operator-- (int) |
bool | operator!= (const const_iterator &RHS) const |
bool | operator> (const const_iterator &RHS) const |
bool | operator<= (const const_iterator &RHS) const |
bool | operator>= (const const_iterator &RHS) const |
PointerProxy | operator-> () const |
ReferenceProxy | operator[] (std::ptrdiff_t n) const |
Friends | |
const_iterator | begin (StringRef path, Style style) |
Get begin iterator over path. | |
const_iterator | end (StringRef path) |
Get end iterator over path. | |
Additional Inherited Members | |
Public Types inherited from llvm::iterator_facade_base< const_iterator, std::input_iterator_tag, const StringRef > | |
using | iterator_category = std::input_iterator_tag |
using | value_type = const StringRef |
using | difference_type = std::ptrdiff_t |
using | pointer = const StringRef * |
using | reference = const StringRef & |
Protected Types inherited from llvm::iterator_facade_base< const_iterator, std::input_iterator_tag, const StringRef > | |
enum | |
Path iterator.
This is an input iterator that iterates over the individual components in path. The traversal order is as follows:
Iteration examples. Each component is separated by ',':
|
inline |
const_iterator & llvm::sys::path::const_iterator::operator++ | ( | ) |
Definition at line 242 of file Path.cpp.
References assert(), llvm::StringRef::ends_with(), llvm::StringRef::find_first_of(), llvm::sys::path::is_separator(), llvm::sys::path::is_style_windows(), llvm::StringRef::size(), llvm::StringRef::slice(), and llvm::StringRef::substr().
ptrdiff_t llvm::sys::path::const_iterator::operator- | ( | const const_iterator & | RHS | ) | const |
bool llvm::sys::path::const_iterator::operator== | ( | const const_iterator & | RHS | ) | const |
Definition at line 289 of file Path.cpp.
References llvm::StringRef::begin(), and RHS.
|
friend |
|
friend |
Get end iterator over path.
path | Input path. |
Definition at line 235 of file Path.cpp.
Referenced by llvm::detail::all_of_zip_predicate_first(), llvm::MemoryDepChecker::areDepsSafe(), and llvm::SparcRegisterInfo::getReservedRegs().