clang 20.0.0git
Public Types | Public Member Functions | Friends | List of all members
clang::Redeclarable< decl_type >::redecl_iterator Class Reference

Iterates through all the redeclarations of the same decl. More...

#include "clang/AST/Redeclarable.h"

Public Types

using value_type = decl_type *
 
using reference = decl_type *
 
using pointer = decl_type *
 
using iterator_category = std::forward_iterator_tag
 
using difference_type = std::ptrdiff_t
 

Public Member Functions

 redecl_iterator ()=default
 
 redecl_iterator (decl_type *C)
 
reference operator* () const
 
pointer operator-> () const
 
redecl_iteratoroperator++ ()
 
redecl_iterator operator++ (int)
 

Friends

bool operator== (const redecl_iterator &x, const redecl_iterator &y)
 
bool operator!= (const redecl_iterator &x, const redecl_iterator &y)
 

Detailed Description

template<typename decl_type>
class clang::Redeclarable< decl_type >::redecl_iterator

Iterates through all the redeclarations of the same decl.

Definition at line 241 of file Redeclarable.h.

Member Typedef Documentation

◆ difference_type

template<typename decl_type >
using clang::Redeclarable< decl_type >::redecl_iterator::difference_type = std::ptrdiff_t

Definition at line 252 of file Redeclarable.h.

◆ iterator_category

template<typename decl_type >
using clang::Redeclarable< decl_type >::redecl_iterator::iterator_category = std::forward_iterator_tag

Definition at line 251 of file Redeclarable.h.

◆ pointer

template<typename decl_type >
using clang::Redeclarable< decl_type >::redecl_iterator::pointer = decl_type *

Definition at line 250 of file Redeclarable.h.

◆ reference

template<typename decl_type >
using clang::Redeclarable< decl_type >::redecl_iterator::reference = decl_type *

Definition at line 249 of file Redeclarable.h.

◆ value_type

template<typename decl_type >
using clang::Redeclarable< decl_type >::redecl_iterator::value_type = decl_type *

Definition at line 248 of file Redeclarable.h.

Constructor & Destructor Documentation

◆ redecl_iterator() [1/2]

template<typename decl_type >
clang::Redeclarable< decl_type >::redecl_iterator::redecl_iterator ( )
default

◆ redecl_iterator() [2/2]

template<typename decl_type >
clang::Redeclarable< decl_type >::redecl_iterator::redecl_iterator ( decl_type *  C)
inlineexplicit

Definition at line 255 of file Redeclarable.h.

Member Function Documentation

◆ operator*()

template<typename decl_type >
reference clang::Redeclarable< decl_type >::redecl_iterator::operator* ( ) const
inline

Definition at line 257 of file Redeclarable.h.

◆ operator++() [1/2]

template<typename decl_type >
redecl_iterator & clang::Redeclarable< decl_type >::redecl_iterator::operator++ ( )
inline

Definition at line 260 of file Redeclarable.h.

◆ operator++() [2/2]

template<typename decl_type >
redecl_iterator clang::Redeclarable< decl_type >::redecl_iterator::operator++ ( int  )
inline

Definition at line 279 of file Redeclarable.h.

◆ operator->()

template<typename decl_type >
pointer clang::Redeclarable< decl_type >::redecl_iterator::operator-> ( ) const
inline

Definition at line 258 of file Redeclarable.h.

Friends And Related Function Documentation

◆ operator!=

template<typename decl_type >
bool operator!= ( const redecl_iterator x,
const redecl_iterator y 
)
friend

Definition at line 288 of file Redeclarable.h.

◆ operator==

template<typename decl_type >
bool operator== ( const redecl_iterator x,
const redecl_iterator y 
)
friend

Definition at line 285 of file Redeclarable.h.


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