clang API Documentation
Provides lookups to, and iteration over, IdentiferInfo objects. More...
#include <IdentifierTable.h>
Public Member Functions | |
virtual | ~IdentifierInfoLookup () |
virtual IdentifierInfo * | get (StringRef Name)=0 |
Return the IdentifierInfo for the specified named identifier. | |
virtual IdentifierIterator * | getIdentifiers () |
Retrieve an iterator into the set of all identifiers known to this identifier lookup source. |
Provides lookups to, and iteration over, IdentiferInfo objects.
Definition at line 374 of file IdentifierTable.h.
IdentifierInfoLookup::~IdentifierInfoLookup | ( | ) | [virtual] |
Definition at line 57 of file IdentifierTable.cpp.
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, and clang::PTHManager.
Referenced by clang::IdentifierTable::get().
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.
Reimplemented in clang::ASTReader.
Definition at line 69 of file IdentifierTable.cpp.