clang 20.0.0git
Public Types | Public Member Functions | List of all members
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

Definition at line 81 of file ASTImporterLookupTable.h.

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 176 of file ASTImporterLookupTable.cpp.

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

Referenced by update().

◆ dump() [1/2]

void clang::ASTImporterLookupTable::dump ( ) const

Definition at line 196 of file ASTImporterLookupTable.cpp.

References dump(), and clang::DeclContext::getPrimaryContext().

Referenced by dump().

◆ dump() [2/2]

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

◆ lookup()

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

Definition at line 163 of file ASTImporterLookupTable.cpp.

References clang::DeclContext::getPrimaryContext().

Referenced by contains().

◆ remove()

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

◆ update()

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

◆ updateForced()

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

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