class ASTIdentifierIterator

Declaration

class ASTIdentifierIterator : public IdentifierIterator { /* full declaration omitted */ };

Description

An identifier-lookup iterator that enumerates all of the identifiers stored within a set of AST files.

Declared at: clang/lib/Serialization/ASTReader.cpp:8094

Inherits from: IdentifierIterator

Member Variables

private const clang::ASTReader& Reader
The AST reader whose identifiers are being enumerated.
private unsigned int Index
The current index into the chain of AST files stored in the AST reader.
private ASTIdentifierLookupTable::key_iterator Current
The current position within the identifier lookup table of the current AST file.
private ASTIdentifierLookupTable::key_iterator End
The end position within the identifier lookup table of the current AST file.
private bool SkipModules
Whether to skip any modules in the ASTReader.

Method Overview

Inherited from IdentifierIterator:

Methods

ASTIdentifierIterator(
    const clang::ASTReader& Reader,
    bool SkipModules = false)

Declared at: clang/lib/Serialization/ASTReader.cpp:8114

Parameters

const clang::ASTReader& Reader
bool SkipModules = false

llvm::StringRef Next()

Description

Retrieve the next string in the identifier table and advances the iterator for the following string.

Declared at: clang/lib/Serialization/ASTReader.cpp:8117

Returns

The next string in the identifier table. If there is no such string, returns an empty \c StringRef.