class LookupResult::Filter

Declaration

class LookupResult::Filter { /* full declaration omitted */ };

Description

A class for iterating through a result set and possibly filtering out results. The results returned are possibly sugared.

Declared at: clang/include/clang/Sema/Lookup.h:643

Member Variables

private clang::LookupResult& Results
private LookupResult::iterator I
private bool Changed = false
private bool CalledDone = false

Method Overview

  • private Filter(clang::LookupResult & Results)
  • public Filter(clang::LookupResult::Filter && F)
  • public void done()
  • public void erase()
  • public bool hasNext() const
  • public clang::NamedDecl * next()
  • public void replace(clang::NamedDecl * D)
  • public void replace(clang::NamedDecl * D, clang::AccessSpecifier AS)
  • public void restart()
  • public ~Filter()

Methods

Filter(clang::LookupResult& Results)

Declared at: clang/include/clang/Sema/Lookup.h:651

Parameters

clang::LookupResult& Results

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

Declared at: clang/include/clang/Sema/Lookup.h:654

Parameters

clang::LookupResult::Filter&& F

void done()

Declared at: clang/include/clang/Sema/Lookup.h:698

void erase()

Description

Erase the last element returned from this iterator.

Declared at: clang/include/clang/Sema/Lookup.h:680

bool hasNext() const

Declared at: clang/include/clang/Sema/Lookup.h:665

clang::NamedDecl* next()

Declared at: clang/include/clang/Sema/Lookup.h:669

void replace(clang::NamedDecl* D)

Description

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

Declared at: clang/include/clang/Sema/Lookup.h:687

Parameters

clang::NamedDecl* D

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

Description

Replaces the current entry with the given one.

Declared at: clang/include/clang/Sema/Lookup.h:693

Parameters

clang::NamedDecl* D
clang::AccessSpecifier AS

void restart()

Description

Restart the iteration.

Declared at: clang/include/clang/Sema/Lookup.h:675

~Filter()

Declared at: clang/include/clang/Sema/Lookup.h:660