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
- public ASTImporterSharedState()
- public ASTImporterSharedState(clang::TranslationUnitDecl & ToTU)
- public void addDeclToLookup(clang::Decl * D)
- public llvm::Optional<ASTImportError> getImportDeclErrorIfAny(clang::Decl * ToD) const
- public clang::ASTImporterLookupTable * getLookupTable()
- public bool isNewDecl(const clang::Decl * ToD) const
- public void markAsNewDecl(clang::Decl * ToD)
- public void removeDeclFromLookup(clang::Decl * D)
- public void setImportDeclError(clang::Decl * To, clang::ASTImportError Error)
Methods
¶ASTImporterSharedState()
ASTImporterSharedState()
Declared at: clang/include/clang/AST/ASTImporterSharedState.h:48
¶ASTImporterSharedState(
clang::TranslationUnitDecl& ToTU)
ASTImporterSharedState(
clang::TranslationUnitDecl& ToTU)
Declared at: clang/include/clang/AST/ASTImporterSharedState.h:50
Parameters
¶void addDeclToLookup(clang::Decl* D)
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
llvm::Optional<ASTImportError>
getImportDeclErrorIfAny(clang::Decl* ToD) const
Declared at: clang/include/clang/AST/ASTImporterSharedState.h:68
Parameters
- clang::Decl* ToD
¶clang::ASTImporterLookupTable* getLookupTable()
clang::ASTImporterLookupTable* getLookupTable()
Declared at: clang/include/clang/AST/ASTImporterSharedState.h:54
¶bool isNewDecl(const clang::Decl* ToD) const
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)
void markAsNewDecl(clang::Decl* ToD)
Declared at: clang/include/clang/AST/ASTImporterSharedState.h:82
Parameters
- clang::Decl* ToD
¶void removeDeclFromLookup(clang::Decl* D)
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)
void setImportDeclError(
clang::Decl* To,
clang::ASTImportError Error)
Declared at: clang/include/clang/AST/ASTImporterSharedState.h:76
Parameters
- clang::Decl* To
- clang::ASTImportError Error