clang  14.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)
 
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 47 of file ASTImporterLookupTable.h.

Member Typedef Documentation

◆ LookupResult

Definition at line 78 of file ASTImporterLookupTable.h.

Constructor & Destructor Documentation

◆ ASTImporterLookupTable()

clang::ASTImporterLookupTable::ASTImporterLookupTable ( TranslationUnitDecl TU)

Definition at line 84 of file ASTImporterLookupTable.cpp.

Member Function Documentation

◆ add()

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

◆ contains()

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

Definition at line 147 of file ASTImporterLookupTable.cpp.

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

Referenced by update().

◆ dump() [1/2]

void clang::ASTImporterLookupTable::dump ( ) const

◆ dump() [2/2]

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

◆ lookup()

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

Definition at line 134 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 120 of file ASTImporterLookupTable.cpp.

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


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