clang 20.0.0git
Classes | Public Types | Public Member Functions | Friends | List of all members
clang::ASTUnresolvedSet Class Reference

An UnresolvedSet-like class which uses the ASTContext's allocator. More...

#include "clang/AST/ASTUnresolvedSet.h"

Public Types

using iterator = UnresolvedSetIterator
 
using const_iterator = UnresolvedSetIterator
 

Public Member Functions

 ASTUnresolvedSet ()=default
 
 ASTUnresolvedSet (ASTContext &C, unsigned N)
 
iterator begin ()
 
iterator end ()
 
const_iterator begin () const
 
const_iterator end () const
 
void addDecl (ASTContext &C, NamedDecl *D, AccessSpecifier AS)
 
void addLazyDecl (ASTContext &C, GlobalDeclID ID, AccessSpecifier AS)
 
bool replace (const NamedDecl *Old, NamedDecl *New, AccessSpecifier AS)
 Replaces the given declaration with the new one, once.
 
void erase (unsigned I)
 
void clear ()
 
bool empty () const
 
unsigned size () const
 
void reserve (ASTContext &C, unsigned N)
 
void append (ASTContext &C, iterator I, iterator E)
 
DeclAccessPairoperator[] (unsigned I)
 
const DeclAccessPairoperator[] (unsigned I) const
 

Friends

class LazyASTUnresolvedSet
 

Detailed Description

An UnresolvedSet-like class which uses the ASTContext's allocator.

Definition at line 30 of file ASTUnresolvedSet.h.

Member Typedef Documentation

◆ const_iterator

Definition at line 48 of file ASTUnresolvedSet.h.

◆ iterator

Definition at line 47 of file ASTUnresolvedSet.h.

Constructor & Destructor Documentation

◆ ASTUnresolvedSet() [1/2]

clang::ASTUnresolvedSet::ASTUnresolvedSet ( )
default

◆ ASTUnresolvedSet() [2/2]

clang::ASTUnresolvedSet::ASTUnresolvedSet ( ASTContext C,
unsigned  N 
)
inline

Definition at line 45 of file ASTUnresolvedSet.h.

Member Function Documentation

◆ addDecl()

void clang::ASTUnresolvedSet::addDecl ( ASTContext C,
NamedDecl D,
AccessSpecifier  AS 
)
inline

Definition at line 56 of file ASTUnresolvedSet.h.

References clang::C, D, and clang::DeclAccessPair::make().

Referenced by CollectVisibleConversions().

◆ addLazyDecl()

void clang::ASTUnresolvedSet::addLazyDecl ( ASTContext C,
GlobalDeclID  ID,
AccessSpecifier  AS 
)
inline

◆ append()

void clang::ASTUnresolvedSet::append ( ASTContext C,
iterator  I,
iterator  E 
)
inline

Definition at line 93 of file ASTUnresolvedSet.h.

References clang::C, and E.

Referenced by CollectVisibleConversions().

◆ begin() [1/2]

iterator clang::ASTUnresolvedSet::begin ( )
inline

Definition at line 50 of file ASTUnresolvedSet.h.

◆ begin() [2/2]

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

Definition at line 53 of file ASTUnresolvedSet.h.

◆ clear()

void clang::ASTUnresolvedSet::clear ( )
inline

Definition at line 84 of file ASTUnresolvedSet.h.

◆ empty()

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

Definition at line 86 of file ASTUnresolvedSet.h.

Referenced by clang::LazyASTUnresolvedSet::addLazyDecl().

◆ end() [1/2]

iterator clang::ASTUnresolvedSet::end ( )
inline

Definition at line 51 of file ASTUnresolvedSet.h.

◆ end() [2/2]

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

Definition at line 54 of file ASTUnresolvedSet.h.

◆ erase()

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

Definition at line 77 of file ASTUnresolvedSet.h.

Referenced by clang::CXXRecordDecl::removeConversion().

◆ operator[]() [1/2]

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

Definition at line 97 of file ASTUnresolvedSet.h.

◆ operator[]() [2/2]

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

Definition at line 98 of file ASTUnresolvedSet.h.

◆ replace()

bool clang::ASTUnresolvedSet::replace ( const NamedDecl Old,
NamedDecl New,
AccessSpecifier  AS 
)
inline

Replaces the given declaration with the new one, once.

Returns
true if the set changed

Definition at line 67 of file ASTUnresolvedSet.h.

References E.

◆ reserve()

void clang::ASTUnresolvedSet::reserve ( ASTContext C,
unsigned  N 
)
inline

Definition at line 89 of file ASTUnresolvedSet.h.

References clang::C.

Referenced by clang::LazyASTUnresolvedSet::reserve().

◆ size()

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

Definition at line 87 of file ASTUnresolvedSet.h.

Referenced by clang::CXXRecordDecl::removeConversion().

Friends And Related Function Documentation

◆ LazyASTUnresolvedSet

friend class LazyASTUnresolvedSet
friend

Definition at line 31 of file ASTUnresolvedSet.h.


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