clang 22.0.0git
clang::ASTImporterLookupTable Class Reference

#include "clang/AST/ASTImporterLookupTable.h"

Public Types

using LookupResult = DeclList

Public Member Functions

 ASTImporterLookupTable (TranslationUnitDecl &TU)
void add (NamedDecl *ND)
void remove (NamedDecl *ND)
void update (NamedDecl *ND, DeclContext *OldDC)
void updateForced (NamedDecl *ND, DeclContext *OldDC)
LookupResult lookup (DeclContext *DC, DeclarationName Name) const
bool contains (DeclContext *DC, NamedDecl *ND) const
void dump (DeclContext *DC) const
void dump () const

Detailed Description

Definition at line 46 of file ASTImporterLookupTable.h.

Member Typedef Documentation

◆ LookupResult

Constructor & Destructor Documentation

◆ ASTImporterLookupTable()

clang::ASTImporterLookupTable::ASTImporterLookupTable ( TranslationUnitDecl & TU)

Member Function Documentation

◆ add()

void clang::ASTImporterLookupTable::add ( NamedDecl * ND)

◆ contains()

bool clang::ASTImporterLookupTable::contains ( DeclContext * DC,
NamedDecl * ND ) const

Definition at line 177 of file ASTImporterLookupTable.cpp.

References clang::NamedDecl::getDeclName(), and lookup().

Referenced by update().

◆ dump() [1/2]

void clang::ASTImporterLookupTable::dump ( ) const

Definition at line 197 of file ASTImporterLookupTable.cpp.

References clang::cast(), and dump().

Referenced by dump().

◆ dump() [2/2]

void clang::ASTImporterLookupTable::dump ( DeclContext * DC) const

Definition at line 181 of file ASTImporterLookupTable.cpp.

References clang::DeclarationName::dump().

◆ lookup()

ASTImporterLookupTable::LookupResult clang::ASTImporterLookupTable::lookup ( DeclContext * DC,
DeclarationName Name ) const

Definition at line 164 of file ASTImporterLookupTable.cpp.

Referenced by contains().

◆ remove()

void clang::ASTImporterLookupTable::remove ( NamedDecl * ND)

◆ update()

void clang::ASTImporterLookupTable::update ( NamedDecl * ND,
DeclContext * OldDC )

Definition at line 145 of file ASTImporterLookupTable.cpp.

References contains(), and clang::Decl::getDeclContext().

◆ updateForced()

void clang::ASTImporterLookupTable::updateForced ( NamedDecl * ND,
DeclContext * OldDC )

Definition at line 158 of file ASTImporterLookupTable.cpp.

References clang::NamedDecl::getDeclName().


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