class specific_attr_iterator

Declaration

template <typename SpecificAttr, typename Container = clang::AttrVec>
class specific_attr_iterator { /* full declaration omitted */ };

Description

specific_attr_iterator - Iterates over a subrange of an AttrVec, only providing attributes that are of a specific type.

Declared at: clang/include/clang/AST/AttrIterator.h:33

Templates

SpecificAttr
Container = clang::AttrVec

Member Variables

private clang::specific_attr_iterator::Iterator Current
Current - The current, underlying iterator. In order to ensure we don't dereference an invalid iterator unless specifically requested, we don't necessarily advance this all the way. Instead, we advance it when an operation is requested; if the operation is acting on what should be a past-the-end iterator, then we offer no guarantees, but this way we do not dereference a past-the-end iterator when we move to a past-the-end position.

Method Overview

Methods

void AdvanceToNext() const

Declared at: clang/include/clang/AST/AttrIterator.h:45

void AdvanceToNext(
    clang::specific_attr_iterator::Iterator I)
    const

Declared at: clang/include/clang/AST/AttrIterator.h:50

Parameters

clang::specific_attr_iterator::Iterator I

specific_attr_iterator<SpecificAttr, Container>()

Declared at: clang/include/clang/AST/AttrIterator.h:62

specific_attr_iterator<SpecificAttr, Container>(
    clang::specific_attr_iterator::Iterator i)

Declared at: clang/include/clang/AST/AttrIterator.h:63

Parameters

clang::specific_attr_iterator::Iterator i