clang 22.0.0git
clang::LookupResult::Filter Class Reference

A class for iterating through a result set and possibly filtering out results. More...

#include "clang/Sema/Lookup.h"

Public Member Functions

 Filter (Filter &&F)
Filteroperator= (Filter &&)=delete
 Filter (const Filter &)=delete
Filteroperator= (const Filter &)=delete
 ~Filter ()
bool hasNext () const
NamedDeclnext ()
void restart ()
 Restart the iteration.
void erase ()
 Erase the last element returned from this iterator.
void replace (NamedDecl *D)
 Replaces the current entry with the given one, preserving the access bits.
void replace (NamedDecl *D, AccessSpecifier AS)
 Replaces the current entry with the given one.
void done ()

Friends

class LookupResult

Detailed Description

A class for iterating through a result set and possibly filtering out results.

The results returned are possibly sugared.

Definition at line 677 of file Lookup.h.

Constructor & Destructor Documentation

◆ Filter() [1/2]

clang::LookupResult::Filter::Filter ( Filter && F)
inline

Definition at line 688 of file Lookup.h.

◆ Filter() [2/2]

clang::LookupResult::Filter::Filter ( const Filter & )
delete

◆ ~Filter()

clang::LookupResult::Filter::~Filter ( )
inline

Definition at line 703 of file Lookup.h.

Member Function Documentation

◆ done()

◆ erase()

◆ hasNext()

◆ next()

◆ operator=() [1/2]

Filter & clang::LookupResult::Filter::operator= ( const Filter & )
delete

◆ operator=() [2/2]

Filter & clang::LookupResult::Filter::operator= ( Filter && )
delete

◆ replace() [1/2]

void clang::LookupResult::Filter::replace ( NamedDecl * D)
inline

Replaces the current entry with the given one, preserving the access bits.

Definition at line 730 of file Lookup.h.

◆ replace() [2/2]

void clang::LookupResult::Filter::replace ( NamedDecl * D,
AccessSpecifier AS )
inline

Replaces the current entry with the given one.

Definition at line 736 of file Lookup.h.

◆ restart()

void clang::LookupResult::Filter::restart ( )
inline

Restart the iteration.

Definition at line 718 of file Lookup.h.

Referenced by clang::Sema::LookupLiteralOperator().

◆ LookupResult

friend class LookupResult
friend

Definition at line 678 of file Lookup.h.

References clang::LookupResult::begin(), and LookupResult.

Referenced by LookupResult.


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