clang  16.0.0git
Public Types | Public Member Functions | Friends | List of all members
clang::UnresolvedSetImpl Class Reference

A set of unresolved declarations. More...

#include "clang/AST/UnresolvedSet.h"

Inheritance diagram for clang::UnresolvedSetImpl:
Inheritance graph
[legend]

Public Types

using iterator = UnresolvedSetIterator
 
using const_iterator = UnresolvedSetIterator
 

Public Member Functions

iterator begin ()
 
iterator end ()
 
const_iterator begin () const
 
const_iterator end () const
 
ArrayRef< DeclAccessPairpairs () const
 
void addDecl (NamedDecl *D)
 
void addDecl (NamedDecl *D, AccessSpecifier AS)
 
bool replace (const NamedDecl *Old, NamedDecl *New)
 Replaces the given declaration with the new one, once. More...
 
void replace (iterator I, NamedDecl *New)
 Replaces the declaration at the given iterator with the new one, preserving the original access bits. More...
 
void replace (iterator I, NamedDecl *New, AccessSpecifier AS)
 
void erase (unsigned I)
 
void erase (iterator I)
 
void setAccess (iterator I, AccessSpecifier AS)
 
void clear ()
 
void truncate (unsigned N)
 
bool empty () const
 
unsigned size () const
 
void append (iterator I, iterator E)
 
template<typename Iter >
void assign (Iter I, Iter E)
 
DeclAccessPairoperator[] (unsigned I)
 
const DeclAccessPairoperator[] (unsigned I) const
 

Friends

template<unsigned N>
class UnresolvedSet
 

Detailed Description

A set of unresolved declarations.

Definition at line 61 of file UnresolvedSet.h.

Member Typedef Documentation

◆ const_iterator

Definition at line 81 of file UnresolvedSet.h.

◆ iterator

Definition at line 80 of file UnresolvedSet.h.

Member Function Documentation

◆ addDecl() [1/2]

void clang::UnresolvedSetImpl::addDecl ( NamedDecl D)
inline

◆ addDecl() [2/2]

void clang::UnresolvedSetImpl::addDecl ( NamedDecl D,
AccessSpecifier  AS 
)
inline

Definition at line 95 of file UnresolvedSet.h.

References clang::DeclAccessPair::make().

◆ append()

void clang::UnresolvedSetImpl::append ( iterator  I,
iterator  E 
)
inline

◆ assign()

template<typename Iter >
void clang::UnresolvedSetImpl::assign ( Iter  I,
Iter  E 
)
inline

Definition at line 131 of file UnresolvedSet.h.

◆ begin() [1/2]

iterator clang::UnresolvedSetImpl::begin ( )
inline

◆ begin() [2/2]

const_iterator clang::UnresolvedSetImpl::begin ( ) const
inline

Definition at line 86 of file UnresolvedSet.h.

References begin().

Referenced by begin().

◆ clear()

void clang::UnresolvedSetImpl::clear ( )
inline

Definition at line 123 of file UnresolvedSet.h.

Referenced by clang::LookupResult::clear(), and clang::Sema::tryExprAsCall().

◆ empty()

bool clang::UnresolvedSetImpl::empty ( ) const
inline

◆ end() [1/2]

iterator clang::UnresolvedSetImpl::end ( )
inline

◆ end() [2/2]

const_iterator clang::UnresolvedSetImpl::end ( ) const
inline

Definition at line 87 of file UnresolvedSet.h.

References end().

Referenced by end().

◆ erase() [1/2]

void clang::UnresolvedSetImpl::erase ( iterator  I)
inline

Definition at line 119 of file UnresolvedSet.h.

◆ erase() [2/2]

void clang::UnresolvedSetImpl::erase ( unsigned  I)
inline

Definition at line 117 of file UnresolvedSet.h.

◆ operator[]() [1/2]

DeclAccessPair& clang::UnresolvedSetImpl::operator[] ( unsigned  I)
inline

Definition at line 133 of file UnresolvedSet.h.

◆ operator[]() [2/2]

const DeclAccessPair& clang::UnresolvedSetImpl::operator[] ( unsigned  I) const
inline

Definition at line 134 of file UnresolvedSet.h.

◆ pairs()

ArrayRef<DeclAccessPair> clang::UnresolvedSetImpl::pairs ( ) const
inline

Definition at line 89 of file UnresolvedSet.h.

◆ replace() [1/3]

bool clang::UnresolvedSetImpl::replace ( const NamedDecl Old,
NamedDecl New 
)
inline

Replaces the given declaration with the new one, once.

Returns
true if the set changed

Definition at line 102 of file UnresolvedSet.h.

References begin(), and end().

◆ replace() [2/3]

void clang::UnresolvedSetImpl::replace ( iterator  I,
NamedDecl New 
)
inline

Replaces the declaration at the given iterator with the new one, preserving the original access bits.

Definition at line 111 of file UnresolvedSet.h.

◆ replace() [3/3]

void clang::UnresolvedSetImpl::replace ( iterator  I,
NamedDecl New,
AccessSpecifier  AS 
)
inline

Definition at line 113 of file UnresolvedSet.h.

◆ setAccess()

void clang::UnresolvedSetImpl::setAccess ( iterator  I,
AccessSpecifier  AS 
)
inline

Definition at line 121 of file UnresolvedSet.h.

References clang::Decl::setAccess().

◆ size()

unsigned clang::UnresolvedSetImpl::size ( ) const
inline

◆ truncate()

void clang::UnresolvedSetImpl::truncate ( unsigned  N)
inline

Definition at line 124 of file UnresolvedSet.h.

Friends And Related Function Documentation

◆ UnresolvedSet

template<unsigned N>
friend class UnresolvedSet
friend

Definition at line 67 of file UnresolvedSet.h.


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