clang
8.0.0
|
iterator - Iterate over the decls of a specified declaration name. More...
#include "clang/Sema/IdentifierResolver.h"
Public Types | |
using | value_type = NamedDecl * |
using | reference = NamedDecl * |
using | pointer = NamedDecl * |
using | iterator_category = std::input_iterator_tag |
using | difference_type = std::ptrdiff_t |
using | BaseIter = IdDeclInfo::DeclsTy::iterator |
Public Member Functions | |
iterator (NamedDecl *D) | |
A single NamedDecl. (Ptr & 0x1 == 0) More... | |
iterator (BaseIter I) | |
A IdDeclInfo::DeclsTy::iterator that walks or not the parent declaration contexts depending on 'LookInParentCtx'. More... | |
bool | isIterator () const |
BaseIter | getIterator () const |
void | incrementSlowCase () |
iterator ()=default | |
NamedDecl * | operator* () const |
bool | operator== (const iterator &RHS) const |
bool | operator!= (const iterator &RHS) const |
iterator & | operator++ () |
Public Attributes | |
uintptr_t | Ptr = 0 |
Ptr - There are 2 forms that 'Ptr' represents: 1) A single NamedDecl. More... | |
Friends | |
class | IdentifierResolver |
iterator - Iterate over the decls of a specified declaration name.
It will walk or not the parent declaration contexts depending on how it was instantiated.
Definition at line 70 of file IdentifierResolver.h.
using clang::IdentifierResolver::iterator::BaseIter = IdDeclInfo::DeclsTy::iterator |
Definition at line 85 of file IdentifierResolver.h.
Definition at line 78 of file IdentifierResolver.h.
using clang::IdentifierResolver::iterator::iterator_category = std::input_iterator_tag |
Definition at line 77 of file IdentifierResolver.h.
Definition at line 76 of file IdentifierResolver.h.
Definition at line 75 of file IdentifierResolver.h.
Definition at line 74 of file IdentifierResolver.h.
|
inline |
A single NamedDecl. (Ptr & 0x1 == 0)
Definition at line 88 of file IdentifierResolver.h.
|
inline |
A IdDeclInfo::DeclsTy::iterator that walks or not the parent declaration contexts depending on 'LookInParentCtx'.
Definition at line 95 of file IdentifierResolver.h.
|
default |
|
inline |
Definition at line 101 of file IdentifierResolver.h.
References IteratorComparison::isIterator().
void IdentifierResolver::iterator::incrementSlowCase | ( | ) |
Definition at line 416 of file IdentifierResolver.cpp.
References clang::NamedDecl::getDeclName(), and clang::DeclarationName::getFETokenInfo().
|
inline |
Definition at line 99 of file IdentifierResolver.h.
Definition at line 121 of file IdentifierResolver.h.
References Ptr.
|
inline |
Definition at line 111 of file IdentifierResolver.h.
References IteratorComparison::isIterator().
|
inline |
Definition at line 126 of file IdentifierResolver.h.
References clang::IdentifierResolver::begin(), clang::IdentifierResolver::IdentifierResolver(), IteratorComparison::isIterator(), and clang::IdentifierResolver::~IdentifierResolver().
Definition at line 118 of file IdentifierResolver.h.
References Ptr.
|
friend |
Definition at line 72 of file IdentifierResolver.h.
uintptr_t clang::IdentifierResolver::iterator::Ptr = 0 |
Ptr - There are 2 forms that 'Ptr' represents: 1) A single NamedDecl.
(Ptr & 0x1 == 0) 2) A IdDeclInfo::DeclsTy::iterator that traverses only the decls of the same declaration context. (Ptr & 0x1 == 0x1)
Definition at line 84 of file IdentifierResolver.h.
Referenced by operator!=(), and operator==().