class ASTImporterSharedState

Declaration

class ASTImporterSharedState { /* full declaration omitted */ };

Description

Importer specific state, which may be shared amongst several ASTImporter objects.

Declared at: clang/include/clang/AST/ASTImporterSharedState.h:28

Member Variables

private std::unique_ptr<ASTImporterLookupTable> LookupTable
Pointer to the import specific lookup table.
private llvm::DenseMap<Decl*, ASTImportError> ImportErrors
Mapping from the already-imported declarations in the "to" context to the error status of the import of that declaration. This map contains only the declarations that were not correctly imported. The same declaration may or may not be included in ImportedFromDecls. This map is updated continuously during imports and never cleared (like ImportedFromDecls).
private llvm::DenseSet<Decl*> NewDecls
Set of the newly created declarations.

Method Overview

Methods

ASTImporterSharedState()

Declared at: clang/include/clang/AST/ASTImporterSharedState.h:48

ASTImporterSharedState(
    clang::TranslationUnitDecl& ToTU)

Declared at: clang/include/clang/AST/ASTImporterSharedState.h:50

Parameters

clang::TranslationUnitDecl& ToTU

void addDeclToLookup(clang::Decl* D)

Declared at: clang/include/clang/AST/ASTImporterSharedState.h:56

Parameters

clang::Decl* D

llvm::Optional<ASTImportError>
getImportDeclErrorIfAny(clang::Decl* ToD) const

Declared at: clang/include/clang/AST/ASTImporterSharedState.h:68

Parameters

clang::Decl* ToD

clang::ASTImporterLookupTable* getLookupTable()

Declared at: clang/include/clang/AST/ASTImporterSharedState.h:54

bool isNewDecl(const clang::Decl* ToD) const

Declared at: clang/include/clang/AST/ASTImporterSharedState.h:80

Parameters

const clang::Decl* ToD

void markAsNewDecl(clang::Decl* ToD)

Declared at: clang/include/clang/AST/ASTImporterSharedState.h:82

Parameters

clang::Decl* ToD

void removeDeclFromLookup(clang::Decl* D)

Declared at: clang/include/clang/AST/ASTImporterSharedState.h:62

Parameters

clang::Decl* D

void setImportDeclError(
    clang::Decl* To,
    clang::ASTImportError Error)

Declared at: clang/include/clang/AST/ASTImporterSharedState.h:76

Parameters

clang::Decl* To
clang::ASTImportError Error