clang 20.0.0git
Public Member Functions | List of all members
clang::IdentifierInfoLookup Class Referenceabstract

Provides lookups to, and iteration over, IdentiferInfo objects. More...

#include "clang/Basic/IdentifierTable.h"

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

Public Member Functions

virtual ~IdentifierInfoLookup ()
 
virtual IdentifierInfoget (StringRef Name)=0
 Return the IdentifierInfo for the specified named identifier.
 
virtual IdentifierIteratorgetIdentifiers ()
 Retrieve an iterator into the set of all identifiers known to this identifier lookup source.
 

Detailed Description

Provides lookups to, and iteration over, IdentiferInfo objects.

Definition at line 626 of file IdentifierTable.h.

Constructor & Destructor Documentation

◆ ~IdentifierInfoLookup()

IdentifierInfoLookup::~IdentifierInfoLookup ( )
virtualdefault

Member Function Documentation

◆ get()

virtual IdentifierInfo * clang::IdentifierInfoLookup::get ( StringRef  Name)
pure virtual

Return the IdentifierInfo for the specified named identifier.

Unlike the version in IdentifierTable, this returns a pointer instead of a reference. If the pointer is null then the IdentifierInfo cannot be found.

Implemented in clang::ASTReader.

Referenced by clang::IdentifierTable::get().

◆ getIdentifiers()

IdentifierIterator * IdentifierInfoLookup::getIdentifiers ( )
virtual

Retrieve an iterator into the set of all identifiers known to this identifier lookup source.

This routine provides access to all of the identifiers known to the identifier lookup, allowing access to the contents of the identifiers without introducing the overhead of constructing IdentifierInfo objects for each.

Returns
A new iterator into the set of known identifiers. The caller is responsible for deleting this iterator.

Reimplemented in clang::ASTReader.

Definition at line 61 of file IdentifierTable.cpp.


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