clang  8.0.0svn
Classes | Public Types | Public Member Functions | List of all members
clang::ASTNodeImporter Class Reference
Inheritance diagram for clang::ASTNodeImporter:
Inheritance graph
[legend]
Collaboration diagram for clang::ASTNodeImporter:
Collaboration graph
[legend]

Public Types

enum  ImportDefinitionKind { IDK_Default, IDK_Everything, IDK_Basic }
 What we should import from the definition. More...
 
using Designator = DesignatedInitExpr::Designator
 
using TemplateArgsTy = SmallVector< TemplateArgument, 8 >
 
using FunctionTemplateAndArgsTy = std::tuple< FunctionTemplateDecl *, TemplateArgsTy >
 

Public Member Functions

 ASTNodeImporter (ASTImporter &Importer)
 
ExpectedType VisitType (const Type *T)
 
ExpectedType VisitAtomicType (const AtomicType *T)
 
ExpectedType VisitBuiltinType (const BuiltinType *T)
 
ExpectedType VisitDecayedType (const DecayedType *T)
 
ExpectedType VisitComplexType (const ComplexType *T)
 
ExpectedType VisitPointerType (const PointerType *T)
 
ExpectedType VisitBlockPointerType (const BlockPointerType *T)
 
ExpectedType VisitLValueReferenceType (const LValueReferenceType *T)
 
ExpectedType VisitRValueReferenceType (const RValueReferenceType *T)
 
ExpectedType VisitMemberPointerType (const MemberPointerType *T)
 
ExpectedType VisitConstantArrayType (const ConstantArrayType *T)
 
ExpectedType VisitIncompleteArrayType (const IncompleteArrayType *T)
 
ExpectedType VisitVariableArrayType (const VariableArrayType *T)
 
ExpectedType VisitDependentSizedArrayType (const DependentSizedArrayType *T)
 
ExpectedType VisitVectorType (const VectorType *T)
 
ExpectedType VisitExtVectorType (const ExtVectorType *T)
 
ExpectedType VisitFunctionNoProtoType (const FunctionNoProtoType *T)
 
ExpectedType VisitFunctionProtoType (const FunctionProtoType *T)
 
ExpectedType VisitUnresolvedUsingType (const UnresolvedUsingType *T)
 
ExpectedType VisitParenType (const ParenType *T)
 
ExpectedType VisitTypedefType (const TypedefType *T)
 
ExpectedType VisitTypeOfExprType (const TypeOfExprType *T)
 
ExpectedType VisitTypeOfType (const TypeOfType *T)
 
ExpectedType VisitDecltypeType (const DecltypeType *T)
 
ExpectedType VisitUnaryTransformType (const UnaryTransformType *T)
 
ExpectedType VisitAutoType (const AutoType *T)
 
ExpectedType VisitInjectedClassNameType (const InjectedClassNameType *T)
 
ExpectedType VisitRecordType (const RecordType *T)
 
ExpectedType VisitEnumType (const EnumType *T)
 
ExpectedType VisitAttributedType (const AttributedType *T)
 
ExpectedType VisitTemplateTypeParmType (const TemplateTypeParmType *T)
 
ExpectedType VisitSubstTemplateTypeParmType (const SubstTemplateTypeParmType *T)
 
ExpectedType VisitTemplateSpecializationType (const TemplateSpecializationType *T)
 
ExpectedType VisitElaboratedType (const ElaboratedType *T)
 
ExpectedType VisitDependentNameType (const DependentNameType *T)
 
ExpectedType VisitPackExpansionType (const PackExpansionType *T)
 
ExpectedType VisitDependentTemplateSpecializationType (const DependentTemplateSpecializationType *T)
 
ExpectedType VisitObjCInterfaceType (const ObjCInterfaceType *T)
 
ExpectedType VisitObjCObjectType (const ObjCObjectType *T)
 
ExpectedType VisitObjCObjectPointerType (const ObjCObjectPointerType *T)
 
Error ImportDeclParts (NamedDecl *D, DeclContext *&DC, DeclContext *&LexicalDC, DeclarationName &Name, NamedDecl *&ToD, SourceLocation &Loc)
 
Error ImportDefinitionIfNeeded (Decl *FromD, Decl *ToD=nullptr)
 
Error ImportDeclarationNameLoc (const DeclarationNameInfo &From, DeclarationNameInfo &To)
 
Error ImportDeclContext (DeclContext *FromDC, bool ForceImport=false)
 
Error ImportDeclContext (Decl *From, DeclContext *&ToDC, DeclContext *&ToLexicalDC)
 
Error ImportImplicitMethods (const CXXRecordDecl *From, CXXRecordDecl *To)
 
Expected< CXXCastPathImportCastPath (CastExpr *E)
 
bool shouldForceImportDeclContext (ImportDefinitionKind IDK)
 
Error ImportInitializer (VarDecl *From, VarDecl *To)
 
Error ImportDefinition (RecordDecl *From, RecordDecl *To, ImportDefinitionKind Kind=IDK_Default)
 
Error ImportDefinition (EnumDecl *From, EnumDecl *To, ImportDefinitionKind Kind=IDK_Default)
 
Error ImportDefinition (ObjCInterfaceDecl *From, ObjCInterfaceDecl *To, ImportDefinitionKind Kind=IDK_Default)
 
Error ImportDefinition (ObjCProtocolDecl *From, ObjCProtocolDecl *To, ImportDefinitionKind Kind=IDK_Default)
 
Expected< TemplateParameterList * > ImportTemplateParameterList (TemplateParameterList *Params)
 
Error ImportTemplateArguments (const TemplateArgument *FromArgs, unsigned NumFromArgs, SmallVectorImpl< TemplateArgument > &ToArgs)
 
Expected< TemplateArgumentImportTemplateArgument (const TemplateArgument &From)
 
template<typename InContainerTy >
Error ImportTemplateArgumentListInfo (const InContainerTy &Container, TemplateArgumentListInfo &ToTAInfo)
 
template<typename InContainerTy >
Error ImportTemplateArgumentListInfo (SourceLocation FromLAngleLoc, SourceLocation FromRAngleLoc, const InContainerTy &Container, TemplateArgumentListInfo &Result)
 
Expected< FunctionTemplateAndArgsTyImportFunctionTemplateWithTemplateArgsFromSpecialization (FunctionDecl *FromFD)
 
Error ImportTemplateInformation (FunctionDecl *FromFD, FunctionDecl *ToFD)
 
bool IsStructuralMatch (Decl *From, Decl *To, bool Complain)
 
bool IsStructuralMatch (RecordDecl *FromRecord, RecordDecl *ToRecord, bool Complain=true)
 
bool IsStructuralMatch (VarDecl *FromVar, VarDecl *ToVar, bool Complain=true)
 
bool IsStructuralMatch (EnumDecl *FromEnum, EnumDecl *ToRecord)
 
bool IsStructuralMatch (EnumConstantDecl *FromEC, EnumConstantDecl *ToEC)
 
bool IsStructuralMatch (FunctionTemplateDecl *From, FunctionTemplateDecl *To)
 
bool IsStructuralMatch (FunctionDecl *From, FunctionDecl *To)
 
bool IsStructuralMatch (ClassTemplateDecl *From, ClassTemplateDecl *To)
 
bool IsStructuralMatch (VarTemplateDecl *From, VarTemplateDecl *To)
 
ExpectedDecl VisitDecl (Decl *D)
 
ExpectedDecl VisitImportDecl (ImportDecl *D)
 
ExpectedDecl VisitEmptyDecl (EmptyDecl *D)
 
ExpectedDecl VisitAccessSpecDecl (AccessSpecDecl *D)
 
ExpectedDecl VisitStaticAssertDecl (StaticAssertDecl *D)
 
ExpectedDecl VisitTranslationUnitDecl (TranslationUnitDecl *D)
 
ExpectedDecl VisitNamespaceDecl (NamespaceDecl *D)
 
ExpectedDecl VisitNamespaceAliasDecl (NamespaceAliasDecl *D)
 
ExpectedDecl VisitTypedefNameDecl (TypedefNameDecl *D, bool IsAlias)
 
ExpectedDecl VisitTypedefDecl (TypedefDecl *D)
 
ExpectedDecl VisitTypeAliasDecl (TypeAliasDecl *D)
 
ExpectedDecl VisitTypeAliasTemplateDecl (TypeAliasTemplateDecl *D)
 
ExpectedDecl VisitLabelDecl (LabelDecl *D)
 
ExpectedDecl VisitEnumDecl (EnumDecl *D)
 
ExpectedDecl VisitRecordDecl (RecordDecl *D)
 
ExpectedDecl VisitEnumConstantDecl (EnumConstantDecl *D)
 
ExpectedDecl VisitFunctionDecl (FunctionDecl *D)
 
ExpectedDecl VisitCXXMethodDecl (CXXMethodDecl *D)
 
ExpectedDecl VisitCXXConstructorDecl (CXXConstructorDecl *D)
 
ExpectedDecl VisitCXXDestructorDecl (CXXDestructorDecl *D)
 
ExpectedDecl VisitCXXConversionDecl (CXXConversionDecl *D)
 
ExpectedDecl VisitFieldDecl (FieldDecl *D)
 
ExpectedDecl VisitIndirectFieldDecl (IndirectFieldDecl *D)
 
ExpectedDecl VisitFriendDecl (FriendDecl *D)
 
ExpectedDecl VisitObjCIvarDecl (ObjCIvarDecl *D)
 
ExpectedDecl VisitVarDecl (VarDecl *D)
 
ExpectedDecl VisitImplicitParamDecl (ImplicitParamDecl *D)
 
ExpectedDecl VisitParmVarDecl (ParmVarDecl *D)
 
ExpectedDecl VisitObjCMethodDecl (ObjCMethodDecl *D)
 
ExpectedDecl VisitObjCTypeParamDecl (ObjCTypeParamDecl *D)
 
ExpectedDecl VisitObjCCategoryDecl (ObjCCategoryDecl *D)
 
ExpectedDecl VisitObjCProtocolDecl (ObjCProtocolDecl *D)
 
ExpectedDecl VisitLinkageSpecDecl (LinkageSpecDecl *D)
 
ExpectedDecl VisitUsingDecl (UsingDecl *D)
 
ExpectedDecl VisitUsingShadowDecl (UsingShadowDecl *D)
 
ExpectedDecl VisitUsingDirectiveDecl (UsingDirectiveDecl *D)
 
ExpectedDecl VisitUnresolvedUsingValueDecl (UnresolvedUsingValueDecl *D)
 
ExpectedDecl VisitUnresolvedUsingTypenameDecl (UnresolvedUsingTypenameDecl *D)
 
Expected< ObjCTypeParamList * > ImportObjCTypeParamList (ObjCTypeParamList *list)
 
ExpectedDecl VisitObjCInterfaceDecl (ObjCInterfaceDecl *D)
 
ExpectedDecl VisitObjCCategoryImplDecl (ObjCCategoryImplDecl *D)
 
ExpectedDecl VisitObjCImplementationDecl (ObjCImplementationDecl *D)
 
ExpectedDecl VisitObjCPropertyDecl (ObjCPropertyDecl *D)
 
ExpectedDecl VisitObjCPropertyImplDecl (ObjCPropertyImplDecl *D)
 
ExpectedDecl VisitTemplateTypeParmDecl (TemplateTypeParmDecl *D)
 
ExpectedDecl VisitNonTypeTemplateParmDecl (NonTypeTemplateParmDecl *D)
 
ExpectedDecl VisitTemplateTemplateParmDecl (TemplateTemplateParmDecl *D)
 
ExpectedDecl VisitClassTemplateDecl (ClassTemplateDecl *D)
 
ExpectedDecl VisitClassTemplateSpecializationDecl (ClassTemplateSpecializationDecl *D)
 
ExpectedDecl VisitVarTemplateDecl (VarTemplateDecl *D)
 
ExpectedDecl VisitVarTemplateSpecializationDecl (VarTemplateSpecializationDecl *D)
 
ExpectedDecl VisitFunctionTemplateDecl (FunctionTemplateDecl *D)
 
ExpectedStmt VisitStmt (Stmt *S)
 
ExpectedStmt VisitGCCAsmStmt (GCCAsmStmt *S)
 
ExpectedStmt VisitDeclStmt (DeclStmt *S)
 
ExpectedStmt VisitNullStmt (NullStmt *S)
 
ExpectedStmt VisitCompoundStmt (CompoundStmt *S)
 
ExpectedStmt VisitCaseStmt (CaseStmt *S)
 
ExpectedStmt VisitDefaultStmt (DefaultStmt *S)
 
ExpectedStmt VisitLabelStmt (LabelStmt *S)
 
ExpectedStmt VisitAttributedStmt (AttributedStmt *S)
 
ExpectedStmt VisitIfStmt (IfStmt *S)
 
ExpectedStmt VisitSwitchStmt (SwitchStmt *S)
 
ExpectedStmt VisitWhileStmt (WhileStmt *S)
 
ExpectedStmt VisitDoStmt (DoStmt *S)
 
ExpectedStmt VisitForStmt (ForStmt *S)
 
ExpectedStmt VisitGotoStmt (GotoStmt *S)
 
ExpectedStmt VisitIndirectGotoStmt (IndirectGotoStmt *S)
 
ExpectedStmt VisitContinueStmt (ContinueStmt *S)
 
ExpectedStmt VisitBreakStmt (BreakStmt *S)
 
ExpectedStmt VisitReturnStmt (ReturnStmt *S)
 
ExpectedStmt VisitCXXCatchStmt (CXXCatchStmt *S)
 
ExpectedStmt VisitCXXTryStmt (CXXTryStmt *S)
 
ExpectedStmt VisitCXXForRangeStmt (CXXForRangeStmt *S)
 
ExpectedStmt VisitObjCForCollectionStmt (ObjCForCollectionStmt *S)
 
ExpectedStmt VisitObjCAtCatchStmt (ObjCAtCatchStmt *S)
 
ExpectedStmt VisitObjCAtFinallyStmt (ObjCAtFinallyStmt *S)
 
ExpectedStmt VisitObjCAtTryStmt (ObjCAtTryStmt *S)
 
ExpectedStmt VisitObjCAtSynchronizedStmt (ObjCAtSynchronizedStmt *S)
 
ExpectedStmt VisitObjCAtThrowStmt (ObjCAtThrowStmt *S)
 
ExpectedStmt VisitObjCAutoreleasePoolStmt (ObjCAutoreleasePoolStmt *S)
 
ExpectedStmt VisitExpr (Expr *E)
 
ExpectedStmt VisitVAArgExpr (VAArgExpr *E)
 
ExpectedStmt VisitGNUNullExpr (GNUNullExpr *E)
 
ExpectedStmt VisitPredefinedExpr (PredefinedExpr *E)
 
ExpectedStmt VisitDeclRefExpr (DeclRefExpr *E)
 
ExpectedStmt VisitImplicitValueInitExpr (ImplicitValueInitExpr *E)
 
ExpectedStmt VisitDesignatedInitExpr (DesignatedInitExpr *E)
 
ExpectedStmt VisitCXXNullPtrLiteralExpr (CXXNullPtrLiteralExpr *E)
 
ExpectedStmt VisitIntegerLiteral (IntegerLiteral *E)
 
ExpectedStmt VisitFloatingLiteral (FloatingLiteral *E)
 
ExpectedStmt VisitImaginaryLiteral (ImaginaryLiteral *E)
 
ExpectedStmt VisitCharacterLiteral (CharacterLiteral *E)
 
ExpectedStmt VisitStringLiteral (StringLiteral *E)
 
ExpectedStmt VisitCompoundLiteralExpr (CompoundLiteralExpr *E)
 
ExpectedStmt VisitAtomicExpr (AtomicExpr *E)
 
ExpectedStmt VisitAddrLabelExpr (AddrLabelExpr *E)
 
ExpectedStmt VisitConstantExpr (ConstantExpr *E)
 
ExpectedStmt VisitParenExpr (ParenExpr *E)
 
ExpectedStmt VisitParenListExpr (ParenListExpr *E)
 
ExpectedStmt VisitStmtExpr (StmtExpr *E)
 
ExpectedStmt VisitUnaryOperator (UnaryOperator *E)
 
ExpectedStmt VisitUnaryExprOrTypeTraitExpr (UnaryExprOrTypeTraitExpr *E)
 
ExpectedStmt VisitBinaryOperator (BinaryOperator *E)
 
ExpectedStmt VisitConditionalOperator (ConditionalOperator *E)
 
ExpectedStmt VisitBinaryConditionalOperator (BinaryConditionalOperator *E)
 
ExpectedStmt VisitOpaqueValueExpr (OpaqueValueExpr *E)
 
ExpectedStmt VisitArrayTypeTraitExpr (ArrayTypeTraitExpr *E)
 
ExpectedStmt VisitExpressionTraitExpr (ExpressionTraitExpr *E)
 
ExpectedStmt VisitArraySubscriptExpr (ArraySubscriptExpr *E)
 
ExpectedStmt VisitCompoundAssignOperator (CompoundAssignOperator *E)
 
ExpectedStmt VisitImplicitCastExpr (ImplicitCastExpr *E)
 
ExpectedStmt VisitExplicitCastExpr (ExplicitCastExpr *E)
 
ExpectedStmt VisitOffsetOfExpr (OffsetOfExpr *OE)
 
ExpectedStmt VisitCXXThrowExpr (CXXThrowExpr *E)
 
ExpectedStmt VisitCXXNoexceptExpr (CXXNoexceptExpr *E)
 
ExpectedStmt VisitCXXDefaultArgExpr (CXXDefaultArgExpr *E)
 
ExpectedStmt VisitCXXScalarValueInitExpr (CXXScalarValueInitExpr *E)
 
ExpectedStmt VisitCXXBindTemporaryExpr (CXXBindTemporaryExpr *E)
 
ExpectedStmt VisitCXXTemporaryObjectExpr (CXXTemporaryObjectExpr *E)
 
ExpectedStmt VisitMaterializeTemporaryExpr (MaterializeTemporaryExpr *E)
 
ExpectedStmt VisitPackExpansionExpr (PackExpansionExpr *E)
 
ExpectedStmt VisitSizeOfPackExpr (SizeOfPackExpr *E)
 
ExpectedStmt VisitCXXNewExpr (CXXNewExpr *E)
 
ExpectedStmt VisitCXXDeleteExpr (CXXDeleteExpr *E)
 
ExpectedStmt VisitCXXConstructExpr (CXXConstructExpr *E)
 
ExpectedStmt VisitCXXMemberCallExpr (CXXMemberCallExpr *E)
 
ExpectedStmt VisitCXXDependentScopeMemberExpr (CXXDependentScopeMemberExpr *E)
 
ExpectedStmt VisitDependentScopeDeclRefExpr (DependentScopeDeclRefExpr *E)
 
ExpectedStmt VisitCXXUnresolvedConstructExpr (CXXUnresolvedConstructExpr *E)
 
ExpectedStmt VisitUnresolvedLookupExpr (UnresolvedLookupExpr *E)
 
ExpectedStmt VisitUnresolvedMemberExpr (UnresolvedMemberExpr *E)
 
ExpectedStmt VisitExprWithCleanups (ExprWithCleanups *E)
 
ExpectedStmt VisitCXXThisExpr (CXXThisExpr *E)
 
ExpectedStmt VisitCXXBoolLiteralExpr (CXXBoolLiteralExpr *E)
 
ExpectedStmt VisitCXXPseudoDestructorExpr (CXXPseudoDestructorExpr *E)
 
ExpectedStmt VisitMemberExpr (MemberExpr *E)
 
ExpectedStmt VisitCallExpr (CallExpr *E)
 
ExpectedStmt VisitLambdaExpr (LambdaExpr *LE)
 
ExpectedStmt VisitInitListExpr (InitListExpr *E)
 
ExpectedStmt VisitCXXStdInitializerListExpr (CXXStdInitializerListExpr *E)
 
ExpectedStmt VisitCXXInheritedCtorInitExpr (CXXInheritedCtorInitExpr *E)
 
ExpectedStmt VisitArrayInitLoopExpr (ArrayInitLoopExpr *E)
 
ExpectedStmt VisitArrayInitIndexExpr (ArrayInitIndexExpr *E)
 
ExpectedStmt VisitCXXDefaultInitExpr (CXXDefaultInitExpr *E)
 
ExpectedStmt VisitCXXNamedCastExpr (CXXNamedCastExpr *E)
 
ExpectedStmt VisitSubstNonTypeTemplateParmExpr (SubstNonTypeTemplateParmExpr *E)
 
ExpectedStmt VisitTypeTraitExpr (TypeTraitExpr *E)
 
ExpectedStmt VisitCXXTypeidExpr (CXXTypeidExpr *E)
 
template<typename IIter , typename OIter >
Error ImportArrayChecked (IIter Ibegin, IIter Iend, OIter Obegin)
 
template<typename InContainerTy , typename OutContainerTy >
Error ImportContainerChecked (const InContainerTy &InContainer, OutContainerTy &OutContainer)
 
template<typename InContainerTy , typename OIter >
Error ImportArrayChecked (const InContainerTy &InContainer, OIter Obegin)
 
void ImportOverrides (CXXMethodDecl *ToMethod, CXXMethodDecl *FromMethod)
 
Expected< FunctionDecl * > FindFunctionTemplateSpecialization (FunctionDecl *FromFD)
 
template<>
Expected< TemplateNameimport (const TemplateName &From)
 
template<>
Error ImportTemplateArgumentListInfo (const TemplateArgumentListInfo &From, TemplateArgumentListInfo &Result)
 
template<>
Error ImportTemplateArgumentListInfo (const ASTTemplateArgumentListInfo &From, TemplateArgumentListInfo &Result)
 
template<>
Expected< TemplateParameterList * > import (TemplateParameterList *From)
 
template<>
Expected< TemplateArgumentimport (const TemplateArgument &From)
 
template<>
Expected< TemplateArgumentLocimport (const TemplateArgumentLoc &TALoc)
 
template<>
Expected< DeclGroupRefimport (const DeclGroupRef &DG)
 
template<>
Expected< ASTNodeImporter::Designatorimport (const Designator &D)
 
template<>
Expected< LambdaCaptureimport (const LambdaCapture &From)
 
- Public Member Functions inherited from clang::TypeVisitor< ASTNodeImporter, ExpectedType >
ExpectedType Visit (const Type *T)
 Performs the operation associated with this visitor object. More...
 
ExpectedType VisitType (const Type *)
 Method called if ImpClass doesn't provide specific handler for some type class. More...
 
- Public Member Functions inherited from clang::declvisitor::Base< declvisitor::make_ptr, ASTNodeImporter, ExpectedDecl >
ExpectedDecl Visit (PTR(Decl) D)
 
ExpectedDecl VisitDecl (PTR(Decl) D)
 
- Public Member Functions inherited from clang::StmtVisitorBase< make_ptr, ASTNodeImporter, ExpectedStmt, ParamTys... >
ExpectedStmt Visit (PTR(Stmt) S, ParamTys... P)
 
 BINOP_FALLBACK (PtrMemD) BINOP_FALLBACK(PtrMemI) BINOP_FALLBACK(Mul) BINOP_FALLBACK(Div) BINOP_FALLBACK(Rem) BINOP_FALLBACK(Add) BINOP_FALLBACK(Sub) BINOP_FALLBACK(Shl) BINOP_FALLBACK(LT) BINOP_FALLBACK(GT) BINOP_FALLBACK(LE) BINOP_FALLBACK(GE) BINOP_FALLBACK(EQ) BINOP_FALLBACK(NE) BINOP_FALLBACK(And) BINOP_FALLBACK(Xor) BINOP_FALLBACK(Or) BINOP_FALLBACK(LAnd) BINOP_FALLBACK(LOr) CAO_FALLBACK(MulAssign) CAO_FALLBACK(DivAssign) CAO_FALLBACK(RemAssign) CAO_FALLBACK(AddAssign) CAO_FALLBACK(SubAssign) CAO_FALLBACK(ShlAssign) CAO_FALLBACK(ShrAssign) CAO_FALLBACK(AndAssign) CAO_FALLBACK(OrAssign) UNARYOP_FALLBACK(PostInc) UNARYOP_FALLBACK(PostDec) UNARYOP_FALLBACK(PreInc) UNARYOP_FALLBACK(PreDec) UNARYOP_FALLBACK(AddrOf) UNARYOP_FALLBACK(Deref) UNARYOP_FALLBACK(Plus) UNARYOP_FALLBACK(Minus) UNARYOP_FALLBACK(Not) UNARYOP_FALLBACK(LNot) UNARYOP_FALLBACK(Real) UNARYOP_FALLBACK(Imag) UNARYOP_FALLBACK(Extension) UNARYOP_FALLBACK(Coawait) ExpectedStmt VisitStmt(PTR(Stmt) Node
 

Additional Inherited Members

- Public Attributes inherited from clang::StmtVisitorBase< make_ptr, ASTNodeImporter, ExpectedStmt, ParamTys... >
ParamTys P
 

Detailed Description

Definition at line 176 of file ASTImporter.cpp.

Member Typedef Documentation

◆ Designator

Definition at line 399 of file ASTImporter.cpp.

◆ FunctionTemplateAndArgsTy

Definition at line 451 of file ASTImporter.cpp.

◆ TemplateArgsTy

Definition at line 449 of file ASTImporter.cpp.

Member Enumeration Documentation

◆ ImportDefinitionKind

What we should import from the definition.

Enumerator
IDK_Default 

Import the default subset of the definition, which might be nothing (if minimal import is set) or might be everything (if minimal import is not set).

IDK_Everything 

Import everything.

IDK_Basic 

Import only the bare bones needed to establish a valid DeclContext.

Definition at line 402 of file ASTImporter.cpp.

Constructor & Destructor Documentation

◆ ASTNodeImporter()

clang::ASTNodeImporter::ASTNodeImporter ( ASTImporter Importer)
inlineexplicit

Definition at line 331 of file ASTImporter.cpp.

References clang::ImportError::Error.

Member Function Documentation

◆ FindFunctionTemplateSpecialization()

Expected< FunctionDecl * > ASTNodeImporter::FindFunctionTemplateSpecialization ( FunctionDecl FromFD)

◆ import() [1/7]

template<>
Expected<TemplateName> clang::ASTNodeImporter::import ( const TemplateName From)

Definition at line 671 of file ASTImporter.cpp.

References clang::TemplateName::isNull().

◆ import() [2/7]

template<>
Expected<TemplateParameterList *> clang::ASTNodeImporter::import ( TemplateParameterList From)

◆ import() [3/7]

template<>
Expected<TemplateArgument> clang::ASTNodeImporter::import ( const TemplateArgument From)

◆ import() [4/7]

template<>
Expected<TemplateArgumentLoc> clang::ASTNodeImporter::import ( const TemplateArgumentLoc TALoc)

◆ import() [5/7]

template<>
Expected<DeclGroupRef> clang::ASTNodeImporter::import ( const DeclGroupRef DG)

◆ import() [6/7]

template<>
Expected<ASTNodeImporter::Designator> clang::ASTNodeImporter::import ( const Designator D)

◆ import() [7/7]

template<>
Expected<LambdaCapture> clang::ASTNodeImporter::import ( const LambdaCapture From)

◆ ImportArrayChecked() [1/2]

template<typename IIter , typename OIter >
Error clang::ASTNodeImporter::ImportArrayChecked ( IIter  Ibegin,
IIter  Iend,
OIter  Obegin 
)
inline

Definition at line 636 of file ASTImporter.cpp.

References clang::ast_matchers::type.

◆ ImportArrayChecked() [2/2]

template<typename InContainerTy , typename OIter >
Error clang::ASTNodeImporter::ImportArrayChecked ( const InContainerTy &  InContainer,
OIter  Obegin 
)
inline

Definition at line 659 of file ASTImporter.cpp.

◆ ImportCastPath()

Expected< CXXCastPath > ASTNodeImporter::ImportCastPath ( CastExpr E)

Definition at line 6614 of file ASTImporter.cpp.

References clang::CastExpr::path_begin(), and clang::CastExpr::path_end().

◆ ImportContainerChecked()

template<typename InContainerTy , typename OutContainerTy >
Error clang::ASTNodeImporter::ImportContainerChecked ( const InContainerTy &  InContainer,
OutContainerTy &  OutContainer 
)
inline

Definition at line 652 of file ASTImporter.cpp.

◆ ImportDeclarationNameLoc()

Error ASTNodeImporter::ImportDeclarationNameLoc ( const DeclarationNameInfo From,
DeclarationNameInfo To 
)

◆ ImportDeclContext() [1/2]

Error ASTNodeImporter::ImportDeclContext ( DeclContext FromDC,
bool  ForceImport = false 
)

Definition at line 1661 of file ASTImporter.cpp.

References clang::DeclContext::decls().

Referenced by clang::ASTImporter::ImportDefinition_New().

◆ ImportDeclContext() [2/2]

Error ASTNodeImporter::ImportDeclContext ( Decl From,
DeclContext *&  ToDC,
DeclContext *&  ToLexicalDC 
)

◆ ImportDeclParts()

Error ASTNodeImporter::ImportDeclParts ( NamedDecl D,
DeclContext *&  DC,
DeclContext *&  LexicalDC,
DeclarationName Name,
NamedDecl *&  ToD,
SourceLocation Loc 
)

Definition at line 1543 of file ASTImporter.cpp.

◆ ImportDefinition() [1/4]

Error ASTNodeImporter::ImportDefinition ( RecordDecl From,
RecordDecl To,
ImportDefinitionKind  Kind = IDK_Default 
)

◆ ImportDefinition() [2/4]

Error ASTNodeImporter::ImportDefinition ( EnumDecl From,
EnumDecl To,
ImportDefinitionKind  Kind = IDK_Default 
)

◆ ImportDefinition() [3/4]

Error ASTNodeImporter::ImportDefinition ( ObjCInterfaceDecl From,
ObjCInterfaceDecl To,
ImportDefinitionKind  Kind = IDK_Default 
)

◆ ImportDefinition() [4/4]

Error ASTNodeImporter::ImportDefinition ( ObjCProtocolDecl From,
ObjCProtocolDecl To,
ImportDefinitionKind  Kind = IDK_Default 
)

◆ ImportDefinitionIfNeeded()

Error ASTNodeImporter::ImportDefinitionIfNeeded ( Decl FromD,
Decl ToD = nullptr 
)

Definition at line 1587 of file ASTImporter.cpp.

References clang::ImportError::Error.

Referenced by clang::ASTImporter::GetAlreadyImportedOrNull().

◆ ImportFunctionTemplateWithTemplateArgsFromSpecialization()

Expected< ASTNodeImporter::FunctionTemplateAndArgsTy > clang::ASTNodeImporter::ImportFunctionTemplateWithTemplateArgsFromSpecialization ( FunctionDecl FromFD)

◆ ImportImplicitMethods()

Error ASTNodeImporter::ImportImplicitMethods ( const CXXRecordDecl From,
CXXRecordDecl To 
)

◆ ImportInitializer()

Error ASTNodeImporter::ImportInitializer ( VarDecl From,
VarDecl To 
)

◆ ImportObjCTypeParamList()

Expected< ObjCTypeParamList * > ASTNodeImporter::ImportObjCTypeParamList ( ObjCTypeParamList list)

Definition at line 4506 of file ASTImporter.cpp.

References clang::ObjCTypeParamList::create().

◆ ImportOverrides()

void ASTNodeImporter::ImportOverrides ( CXXMethodDecl ToMethod,
CXXMethodDecl FromMethod 
)

◆ ImportTemplateArgument()

Expected< TemplateArgument > ASTNodeImporter::ImportTemplateArgument ( const TemplateArgument From)

Definition at line 1968 of file ASTImporter.cpp.

Referenced by clang::ASTImporter::Import().

◆ ImportTemplateArgumentListInfo() [1/4]

template<typename InContainerTy >
Error ASTNodeImporter::ImportTemplateArgumentListInfo ( const InContainerTy &  Container,
TemplateArgumentListInfo ToTAInfo 
)

Definition at line 1973 of file ASTImporter.cpp.

Referenced by ImportTemplateArgumentListInfo().

◆ ImportTemplateArgumentListInfo() [2/4]

template<typename InContainerTy >
Error clang::ASTNodeImporter::ImportTemplateArgumentListInfo ( SourceLocation  FromLAngleLoc,
SourceLocation  FromRAngleLoc,
const InContainerTy &  Container,
TemplateArgumentListInfo Result 
)

Definition at line 679 of file ASTImporter.cpp.

◆ ImportTemplateArgumentListInfo() [3/4]

template<>
Error clang::ASTNodeImporter::ImportTemplateArgumentListInfo ( const TemplateArgumentListInfo From,
TemplateArgumentListInfo Result 
)

◆ ImportTemplateArgumentListInfo() [4/4]

template<>
Error clang::ASTNodeImporter::ImportTemplateArgumentListInfo ( const ASTTemplateArgumentListInfo From,
TemplateArgumentListInfo Result 
)

Definition at line 705 of file ASTImporter.cpp.

References clang::Result.

◆ ImportTemplateArguments()

Error ASTNodeImporter::ImportTemplateArguments ( const TemplateArgument FromArgs,
unsigned  NumFromArgs,
SmallVectorImpl< TemplateArgument > &  ToArgs 
)

Definition at line 1953 of file ASTImporter.cpp.

◆ ImportTemplateInformation()

Error ASTNodeImporter::ImportTemplateInformation ( FunctionDecl FromFD,
FunctionDecl ToFD 
)

◆ ImportTemplateParameterList()

Expected< TemplateParameterList * > ASTNodeImporter::ImportTemplateParameterList ( TemplateParameterList Params)

◆ IsStructuralMatch() [1/9]

bool ASTNodeImporter::IsStructuralMatch ( Decl From,
Decl To,
bool  Complain 
)

◆ IsStructuralMatch() [2/9]

bool ASTNodeImporter::IsStructuralMatch ( RecordDecl FromRecord,
RecordDecl ToRecord,
bool  Complain = true 
)

◆ IsStructuralMatch() [3/9]

bool ASTNodeImporter::IsStructuralMatch ( VarDecl FromVar,
VarDecl ToVar,
bool  Complain = true 
)

◆ IsStructuralMatch() [4/9]

bool ASTNodeImporter::IsStructuralMatch ( EnumDecl FromEnum,
EnumDecl ToRecord 
)

◆ IsStructuralMatch() [5/9]

bool ASTNodeImporter::IsStructuralMatch ( EnumConstantDecl FromEC,
EnumConstantDecl ToEC 
)

Definition at line 2050 of file ASTImporter.cpp.

References clang::EnumConstantDecl::getInitVal().

◆ IsStructuralMatch() [6/9]

bool ASTNodeImporter::IsStructuralMatch ( FunctionTemplateDecl From,
FunctionTemplateDecl To 
)

◆ IsStructuralMatch() [7/9]

bool ASTNodeImporter::IsStructuralMatch ( FunctionDecl From,
FunctionDecl To 
)

◆ IsStructuralMatch() [8/9]

bool ASTNodeImporter::IsStructuralMatch ( ClassTemplateDecl From,
ClassTemplateDecl To 
)

◆ IsStructuralMatch() [9/9]

bool ASTNodeImporter::IsStructuralMatch ( VarTemplateDecl From,
VarTemplateDecl To 
)

◆ shouldForceImportDeclContext()

bool clang::ASTNodeImporter::shouldForceImportDeclContext ( ImportDefinitionKind  IDK)
inline

◆ VisitAccessSpecDecl()

ExpectedDecl ASTNodeImporter::VisitAccessSpecDecl ( AccessSpecDecl D)

◆ VisitAddrLabelExpr()

ExpectedStmt ASTNodeImporter::VisitAddrLabelExpr ( AddrLabelExpr E)

◆ VisitArrayInitIndexExpr()

ExpectedStmt ASTNodeImporter::VisitArrayInitIndexExpr ( ArrayInitIndexExpr E)

Definition at line 7521 of file ASTImporter.cpp.

References clang::Expr::getType().

◆ VisitArrayInitLoopExpr()

ExpectedStmt ASTNodeImporter::VisitArrayInitLoopExpr ( ArrayInitLoopExpr E)

◆ VisitArraySubscriptExpr()

ExpectedStmt ASTNodeImporter::VisitArraySubscriptExpr ( ArraySubscriptExpr E)

◆ VisitArrayTypeTraitExpr()

ExpectedStmt ASTNodeImporter::VisitArrayTypeTraitExpr ( ArrayTypeTraitExpr E)

◆ VisitAtomicExpr()

ExpectedStmt ASTNodeImporter::VisitAtomicExpr ( AtomicExpr E)

◆ VisitAtomicType()

ExpectedType ASTNodeImporter::VisitAtomicType ( const AtomicType T)

Definition at line 978 of file ASTImporter.cpp.

References clang::AtomicType::getValueType().

◆ VisitAttributedStmt()

ExpectedStmt ASTNodeImporter::VisitAttributedStmt ( AttributedStmt S)

Definition at line 5749 of file ASTImporter.cpp.

◆ VisitAttributedType()

ExpectedType ASTNodeImporter::VisitAttributedType ( const AttributedType T)

◆ VisitAutoType()

ExpectedType ASTNodeImporter::VisitAutoType ( const AutoType T)

◆ VisitBinaryConditionalOperator()

ExpectedStmt ASTNodeImporter::VisitBinaryConditionalOperator ( BinaryConditionalOperator E)

◆ VisitBinaryOperator()

ExpectedStmt ASTNodeImporter::VisitBinaryOperator ( BinaryOperator E)

◆ VisitBlockPointerType()

ExpectedType ASTNodeImporter::VisitBlockPointerType ( const BlockPointerType T)

Definition at line 1059 of file ASTImporter.cpp.

References clang::BlockPointerType::getPointeeType().

◆ VisitBreakStmt()

ExpectedStmt ASTNodeImporter::VisitBreakStmt ( BreakStmt S)

Definition at line 5907 of file ASTImporter.cpp.

◆ VisitBuiltinType()

ExpectedType ASTNodeImporter::VisitBuiltinType ( const BuiltinType T)

Definition at line 986 of file ASTImporter.cpp.

References clang::BuiltinType::getKind().

◆ VisitCallExpr()

ExpectedStmt ASTNodeImporter::VisitCallExpr ( CallExpr E)

◆ VisitCaseStmt()

ExpectedStmt ASTNodeImporter::VisitCaseStmt ( CaseStmt S)

Definition at line 5702 of file ASTImporter.cpp.

◆ VisitCharacterLiteral()

ExpectedStmt ASTNodeImporter::VisitCharacterLiteral ( CharacterLiteral E)

◆ VisitClassTemplateDecl()

ExpectedDecl ASTNodeImporter::VisitClassTemplateDecl ( ClassTemplateDecl D)

◆ VisitClassTemplateSpecializationDecl()

ExpectedDecl ASTNodeImporter::VisitClassTemplateSpecializationDecl ( ClassTemplateSpecializationDecl D)

Definition at line 5088 of file ASTImporter.cpp.

References clang::DeclContext::addDeclInternal(), clang::TemplateArgumentList::data(), clang::ImportError::Error, clang::RecordDecl::fields(), clang::ClassTemplateDecl::findPartialSpecialization(), clang::ClassTemplateDecl::findSpecialization(), clang::TypeDecl::getBeginLoc(), clang::QualType::getCanonicalType(), clang::CXXRecordDecl::getDefinition(), clang::ClassTemplateSpecializationDecl::getExternLoc(), clang::ClassTemplatePartialSpecializationDecl::getInjectedSpecializationType(), clang::Decl::getLocation(), clang::ClassTemplateSpecializationDecl::getPointOfInstantiation(), clang::TagDecl::getQualifierLoc(), clang::ClassTemplateSpecializationDecl::getSpecializationKind(), clang::ClassTemplateSpecializationDecl::getSpecializedTemplate(), clang::TagDecl::getTagKind(), clang::ClassTemplateSpecializationDecl::getTemplateArgs(), clang::ClassTemplatePartialSpecializationDecl::getTemplateArgsAsWritten(), clang::ClassTemplateSpecializationDecl::getTemplateKeywordLoc(), clang::ClassTemplatePartialSpecializationDecl::getTemplateParameters(), clang::CXXRecordDecl::getTemplateSpecializationKind(), clang::ClassTemplateSpecializationDecl::getTypeAsWritten(), clang::TagDecl::isCompleteDefinition(), clang::ClassTemplateSpecializationDecl::isExplicitInstantiationOrSpecialization(), clang::SourceLocation::isValid(), clang::CXXRecordDecl::methods(), clang::ClassTemplateSpecializationDecl::setExternLoc(), clang::Decl::setLexicalDeclContext(), clang::ClassTemplateSpecializationDecl::setPointOfInstantiation(), clang::TagDecl::setQualifierInfo(), clang::ClassTemplateSpecializationDecl::setSpecializationKind(), clang::ClassTemplateSpecializationDecl::setTemplateKeywordLoc(), clang::CXXRecordDecl::setTemplateSpecializationKind(), clang::ClassTemplateSpecializationDecl::setTypeAsWritten(), and clang::TemplateArgumentList::size().

◆ VisitComplexType()

ExpectedType ASTNodeImporter::VisitComplexType ( const ComplexType T)

Definition at line 1043 of file ASTImporter.cpp.

References clang::ComplexType::getElementType().

◆ VisitCompoundAssignOperator()

ExpectedStmt ASTNodeImporter::VisitCompoundAssignOperator ( CompoundAssignOperator E)

◆ VisitCompoundLiteralExpr()

ExpectedStmt ASTNodeImporter::VisitCompoundLiteralExpr ( CompoundLiteralExpr E)

◆ VisitCompoundStmt()

ExpectedStmt ASTNodeImporter::VisitCompoundStmt ( CompoundStmt S)

Definition at line 5683 of file ASTImporter.cpp.

◆ VisitConditionalOperator()

ExpectedStmt ASTNodeImporter::VisitConditionalOperator ( ConditionalOperator E)

◆ VisitConstantArrayType()

ExpectedType ASTNodeImporter::VisitConstantArrayType ( const ConstantArrayType T)

◆ VisitConstantExpr()

ExpectedStmt ASTNodeImporter::VisitConstantExpr ( ConstantExpr E)

Definition at line 6370 of file ASTImporter.cpp.

References clang::FullExpr::getSubExpr().

◆ VisitContinueStmt()

ExpectedStmt ASTNodeImporter::VisitContinueStmt ( ContinueStmt S)

Definition at line 5900 of file ASTImporter.cpp.

◆ VisitCXXBindTemporaryExpr()

ExpectedStmt ASTNodeImporter::VisitCXXBindTemporaryExpr ( CXXBindTemporaryExpr E)

◆ VisitCXXBoolLiteralExpr()

ExpectedStmt ASTNodeImporter::VisitCXXBoolLiteralExpr ( CXXBoolLiteralExpr E)

◆ VisitCXXCatchStmt()

ExpectedStmt ASTNodeImporter::VisitCXXCatchStmt ( CXXCatchStmt S)

Definition at line 5929 of file ASTImporter.cpp.

◆ VisitCXXConstructExpr()

ExpectedStmt ASTNodeImporter::VisitCXXConstructExpr ( CXXConstructExpr E)

◆ VisitCXXConstructorDecl()

ExpectedDecl ASTNodeImporter::VisitCXXConstructorDecl ( CXXConstructorDecl D)

Definition at line 3283 of file ASTImporter.cpp.

◆ VisitCXXConversionDecl()

ExpectedDecl ASTNodeImporter::VisitCXXConversionDecl ( CXXConversionDecl D)

Definition at line 3291 of file ASTImporter.cpp.

◆ VisitCXXDefaultArgExpr()

ExpectedStmt ASTNodeImporter::VisitCXXDefaultArgExpr ( CXXDefaultArgExpr E)

◆ VisitCXXDefaultInitExpr()

ExpectedStmt ASTNodeImporter::VisitCXXDefaultInitExpr ( CXXDefaultInitExpr E)

◆ VisitCXXDeleteExpr()

ExpectedStmt ASTNodeImporter::VisitCXXDeleteExpr ( CXXDeleteExpr E)

◆ VisitCXXDependentScopeMemberExpr()

ExpectedStmt ASTNodeImporter::VisitCXXDependentScopeMemberExpr ( CXXDependentScopeMemberExpr E)

◆ VisitCXXDestructorDecl()

ExpectedDecl ASTNodeImporter::VisitCXXDestructorDecl ( CXXDestructorDecl D)

Definition at line 3287 of file ASTImporter.cpp.

◆ VisitCXXForRangeStmt()

ExpectedStmt ASTNodeImporter::VisitCXXForRangeStmt ( CXXForRangeStmt S)

Definition at line 5966 of file ASTImporter.cpp.

◆ VisitCXXInheritedCtorInitExpr()

ExpectedStmt ASTNodeImporter::VisitCXXInheritedCtorInitExpr ( CXXInheritedCtorInitExpr E)

◆ VisitCXXMemberCallExpr()

ExpectedStmt ASTNodeImporter::VisitCXXMemberCallExpr ( CXXMemberCallExpr E)

◆ VisitCXXMethodDecl()

ExpectedDecl ASTNodeImporter::VisitCXXMethodDecl ( CXXMethodDecl D)

Definition at line 3279 of file ASTImporter.cpp.

◆ VisitCXXNamedCastExpr()

ExpectedStmt ASTNodeImporter::VisitCXXNamedCastExpr ( CXXNamedCastExpr E)

◆ VisitCXXNewExpr()

ExpectedStmt ASTNodeImporter::VisitCXXNewExpr ( CXXNewExpr E)

◆ VisitCXXNoexceptExpr()

ExpectedStmt ASTNodeImporter::VisitCXXNoexceptExpr ( CXXNoexceptExpr E)

◆ VisitCXXNullPtrLiteralExpr()

ExpectedStmt ASTNodeImporter::VisitCXXNullPtrLiteralExpr ( CXXNullPtrLiteralExpr E)

◆ VisitCXXPseudoDestructorExpr()

ExpectedStmt ASTNodeImporter::VisitCXXPseudoDestructorExpr ( CXXPseudoDestructorExpr E)

◆ VisitCXXScalarValueInitExpr()

ExpectedStmt ASTNodeImporter::VisitCXXScalarValueInitExpr ( CXXScalarValueInitExpr E)

◆ VisitCXXStdInitializerListExpr()

ExpectedStmt ASTNodeImporter::VisitCXXStdInitializerListExpr ( CXXStdInitializerListExpr E)

◆ VisitCXXTemporaryObjectExpr()

ExpectedStmt ASTNodeImporter::VisitCXXTemporaryObjectExpr ( CXXTemporaryObjectExpr E)

◆ VisitCXXThisExpr()

ExpectedStmt ASTNodeImporter::VisitCXXThisExpr ( CXXThisExpr E)

◆ VisitCXXThrowExpr()

ExpectedStmt ASTNodeImporter::VisitCXXThrowExpr ( CXXThrowExpr E)

◆ VisitCXXTryStmt()

ExpectedStmt ASTNodeImporter::VisitCXXTryStmt ( CXXTryStmt S)

Definition at line 5944 of file ASTImporter.cpp.

◆ VisitCXXTypeidExpr()

ExpectedStmt ASTNodeImporter::VisitCXXTypeidExpr ( CXXTypeidExpr E)

◆ VisitCXXUnresolvedConstructExpr()

ExpectedStmt ASTNodeImporter::VisitCXXUnresolvedConstructExpr ( CXXUnresolvedConstructExpr E)

◆ VisitDecayedType()

ExpectedType ASTNodeImporter::VisitDecayedType ( const DecayedType T)

Definition at line 1035 of file ASTImporter.cpp.

References clang::AdjustedType::getOriginalType().

◆ VisitDecl()

ExpectedDecl ASTNodeImporter::VisitDecl ( Decl D)

◆ VisitDeclRefExpr()

ExpectedStmt ASTNodeImporter::VisitDeclRefExpr ( DeclRefExpr E)

◆ VisitDeclStmt()

ExpectedStmt ASTNodeImporter::VisitDeclStmt ( DeclStmt S)

Definition at line 5663 of file ASTImporter.cpp.

◆ VisitDecltypeType()

ExpectedType ASTNodeImporter::VisitDecltypeType ( const DecltypeType T)

◆ VisitDefaultStmt()

ExpectedStmt ASTNodeImporter::VisitDefaultStmt ( DefaultStmt S)

Definition at line 5722 of file ASTImporter.cpp.

◆ VisitDependentNameType()

ExpectedType ASTNodeImporter::VisitDependentNameType ( const DependentNameType T)

Definition at line 1475 of file ASTImporter.cpp.

References clang::DependentNameType::getQualifier().

◆ VisitDependentScopeDeclRefExpr()

ExpectedStmt ASTNodeImporter::VisitDependentScopeDeclRefExpr ( DependentScopeDeclRefExpr E)

◆ VisitDependentSizedArrayType()

ExpectedType ASTNodeImporter::VisitDependentSizedArrayType ( const DependentSizedArrayType T)

◆ VisitDependentTemplateSpecializationType()

ExpectedType ASTNodeImporter::VisitDependentTemplateSpecializationType ( const DependentTemplateSpecializationType T)

◆ VisitDesignatedInitExpr()

ExpectedStmt ASTNodeImporter::VisitDesignatedInitExpr ( DesignatedInitExpr E)

◆ VisitDoStmt()

ExpectedStmt ASTNodeImporter::VisitDoStmt ( DoStmt S)

Definition at line 5836 of file ASTImporter.cpp.

◆ VisitElaboratedType()

ExpectedType ASTNodeImporter::VisitElaboratedType ( const ElaboratedType T)

◆ VisitEmptyDecl()

ExpectedDecl ASTNodeImporter::VisitEmptyDecl ( EmptyDecl D)

◆ VisitEnumConstantDecl()

ExpectedDecl ASTNodeImporter::VisitEnumConstantDecl ( EnumConstantDecl D)

Definition at line 2835 of file ASTImporter.cpp.

◆ VisitEnumDecl()

ExpectedDecl ASTNodeImporter::VisitEnumDecl ( EnumDecl D)

Definition at line 2467 of file ASTImporter.cpp.

◆ VisitEnumType()

ExpectedType ASTNodeImporter::VisitEnumType ( const EnumType T)

Definition at line 1355 of file ASTImporter.cpp.

References clang::EnumType::getDecl().

◆ VisitExplicitCastExpr()

ExpectedStmt ASTNodeImporter::VisitExplicitCastExpr ( ExplicitCastExpr E)

◆ VisitExpr()

ExpectedStmt ASTNodeImporter::VisitExpr ( Expr E)

◆ VisitExpressionTraitExpr()

ExpectedStmt ASTNodeImporter::VisitExpressionTraitExpr ( ExpressionTraitExpr E)

◆ VisitExprWithCleanups()

ExpectedStmt ASTNodeImporter::VisitExprWithCleanups ( ExprWithCleanups E)

◆ VisitExtVectorType()

ExpectedType ASTNodeImporter::VisitExtVectorType ( const ExtVectorType T)

◆ VisitFieldDecl()

ExpectedDecl ASTNodeImporter::VisitFieldDecl ( FieldDecl D)

Definition at line 3295 of file ASTImporter.cpp.

◆ VisitFloatingLiteral()

ExpectedStmt ASTNodeImporter::VisitFloatingLiteral ( FloatingLiteral E)

◆ VisitForStmt()

ExpectedStmt ASTNodeImporter::VisitForStmt ( ForStmt S)

Definition at line 5852 of file ASTImporter.cpp.

◆ VisitFriendDecl()

ExpectedDecl ASTNodeImporter::VisitFriendDecl ( FriendDecl D)

◆ VisitFunctionDecl()

ExpectedDecl ASTNodeImporter::VisitFunctionDecl ( FunctionDecl D)

Definition at line 2991 of file ASTImporter.cpp.

References clang::getCanonicalForwardRedeclChain().

◆ VisitFunctionNoProtoType()

ExpectedType ASTNodeImporter::VisitFunctionNoProtoType ( const FunctionNoProtoType T)

◆ VisitFunctionProtoType()

ExpectedType ASTNodeImporter::VisitFunctionProtoType ( const FunctionProtoType T)

◆ VisitFunctionTemplateDecl()

ExpectedDecl ASTNodeImporter::VisitFunctionTemplateDecl ( FunctionTemplateDecl D)

Definition at line 5519 of file ASTImporter.cpp.

◆ VisitGCCAsmStmt()

ExpectedStmt ASTNodeImporter::VisitGCCAsmStmt ( GCCAsmStmt S)

Definition at line 5589 of file ASTImporter.cpp.

◆ VisitGNUNullExpr()

ExpectedStmt ASTNodeImporter::VisitGNUNullExpr ( GNUNullExpr E)

Definition at line 6131 of file ASTImporter.cpp.

References clang::GNUNullExpr::getBeginLoc(), and clang::Expr::getType().

◆ VisitGotoStmt()

ExpectedStmt ASTNodeImporter::VisitGotoStmt ( GotoStmt S)

Definition at line 5874 of file ASTImporter.cpp.

◆ VisitIfStmt()

ExpectedStmt ASTNodeImporter::VisitIfStmt ( IfStmt S)

Definition at line 5765 of file ASTImporter.cpp.

◆ VisitImaginaryLiteral()

ExpectedStmt ASTNodeImporter::VisitImaginaryLiteral ( ImaginaryLiteral E)

◆ VisitImplicitCastExpr()

ExpectedStmt ASTNodeImporter::VisitImplicitCastExpr ( ImplicitCastExpr E)

◆ VisitImplicitParamDecl()

ExpectedDecl ASTNodeImporter::VisitImplicitParamDecl ( ImplicitParamDecl D)

◆ VisitImplicitValueInitExpr()

ExpectedStmt ASTNodeImporter::VisitImplicitValueInitExpr ( ImplicitValueInitExpr E)

Definition at line 6198 of file ASTImporter.cpp.

References clang::Expr::getType().

◆ VisitImportDecl()

ExpectedDecl ASTNodeImporter::VisitImportDecl ( ImportDecl D)

◆ VisitIncompleteArrayType()

ExpectedType ASTNodeImporter::VisitIncompleteArrayType ( const IncompleteArrayType T)

◆ VisitIndirectFieldDecl()

ExpectedDecl ASTNodeImporter::VisitIndirectFieldDecl ( IndirectFieldDecl D)

Definition at line 3381 of file ASTImporter.cpp.

◆ VisitIndirectGotoStmt()

ExpectedStmt ASTNodeImporter::VisitIndirectGotoStmt ( IndirectGotoStmt S)

Definition at line 5887 of file ASTImporter.cpp.

◆ VisitInitListExpr()

ExpectedStmt ASTNodeImporter::VisitInitListExpr ( InitListExpr E)

◆ VisitInjectedClassNameType()

ExpectedType ASTNodeImporter::VisitInjectedClassNameType ( const InjectedClassNameType T)

◆ VisitIntegerLiteral()

ExpectedStmt ASTNodeImporter::VisitIntegerLiteral ( IntegerLiteral E)

◆ VisitLabelDecl()

ExpectedDecl ASTNodeImporter::VisitLabelDecl ( LabelDecl D)

Definition at line 2428 of file ASTImporter.cpp.

◆ VisitLabelStmt()

ExpectedStmt ASTNodeImporter::VisitLabelStmt ( LabelStmt S)

Definition at line 5735 of file ASTImporter.cpp.

◆ VisitLambdaExpr()

ExpectedStmt ASTNodeImporter::VisitLambdaExpr ( LambdaExpr LE)

◆ VisitLinkageSpecDecl()

ExpectedDecl ASTNodeImporter::VisitLinkageSpecDecl ( LinkageSpecDecl D)

◆ VisitLValueReferenceType()

ExpectedType ASTNodeImporter::VisitLValueReferenceType ( const LValueReferenceType T)

Definition at line 1069 of file ASTImporter.cpp.

References clang::ReferenceType::getPointeeTypeAsWritten().

◆ VisitMaterializeTemporaryExpr()

ExpectedStmt ASTNodeImporter::VisitMaterializeTemporaryExpr ( MaterializeTemporaryExpr E)

◆ VisitMemberExpr()

ExpectedStmt ASTNodeImporter::VisitMemberExpr ( MemberExpr E)

◆ VisitMemberPointerType()

ExpectedType ASTNodeImporter::VisitMemberPointerType ( const MemberPointerType T)

◆ VisitNamespaceAliasDecl()

ExpectedDecl ASTNodeImporter::VisitNamespaceAliasDecl ( NamespaceAliasDecl D)

Definition at line 2251 of file ASTImporter.cpp.

◆ VisitNamespaceDecl()

ExpectedDecl ASTNodeImporter::VisitNamespaceDecl ( NamespaceDecl D)

Definition at line 2173 of file ASTImporter.cpp.

◆ VisitNonTypeTemplateParmDecl()

ExpectedDecl ASTNodeImporter::VisitNonTypeTemplateParmDecl ( NonTypeTemplateParmDecl D)

◆ VisitNullStmt()

ExpectedStmt ASTNodeImporter::VisitNullStmt ( NullStmt S)

Definition at line 5675 of file ASTImporter.cpp.

◆ VisitObjCAtCatchStmt()

ExpectedStmt ASTNodeImporter::VisitObjCAtCatchStmt ( ObjCAtCatchStmt S)

Definition at line 6011 of file ASTImporter.cpp.

◆ VisitObjCAtFinallyStmt()

ExpectedStmt ASTNodeImporter::VisitObjCAtFinallyStmt ( ObjCAtFinallyStmt S)

Definition at line 6027 of file ASTImporter.cpp.

◆ VisitObjCAtSynchronizedStmt()

ExpectedStmt ASTNodeImporter::VisitObjCAtSynchronizedStmt ( ObjCAtSynchronizedStmt S)

Definition at line 6064 of file ASTImporter.cpp.

◆ VisitObjCAtThrowStmt()

ExpectedStmt ASTNodeImporter::VisitObjCAtThrowStmt ( ObjCAtThrowStmt S)

◆ VisitObjCAtTryStmt()

ExpectedStmt ASTNodeImporter::VisitObjCAtTryStmt ( ObjCAtTryStmt S)

Definition at line 6038 of file ASTImporter.cpp.

◆ VisitObjCAutoreleasePoolStmt()

ExpectedStmt ASTNodeImporter::VisitObjCAutoreleasePoolStmt ( ObjCAutoreleasePoolStmt S)

◆ VisitObjCCategoryDecl()

ExpectedDecl ASTNodeImporter::VisitObjCCategoryDecl ( ObjCCategoryDecl D)

Definition at line 3969 of file ASTImporter.cpp.

◆ VisitObjCCategoryImplDecl()

ExpectedDecl ASTNodeImporter::VisitObjCCategoryImplDecl ( ObjCCategoryImplDecl D)

◆ VisitObjCForCollectionStmt()

ExpectedStmt ASTNodeImporter::VisitObjCForCollectionStmt ( ObjCForCollectionStmt S)

Definition at line 5992 of file ASTImporter.cpp.

◆ VisitObjCImplementationDecl()

ExpectedDecl ASTNodeImporter::VisitObjCImplementationDecl ( ObjCImplementationDecl D)

◆ VisitObjCInterfaceDecl()

ExpectedDecl ASTNodeImporter::VisitObjCInterfaceDecl ( ObjCInterfaceDecl D)

Definition at line 4532 of file ASTImporter.cpp.

References clang::ObjCInterfaceDecl::getDefinition().

◆ VisitObjCInterfaceType()

ExpectedType ASTNodeImporter::VisitObjCInterfaceType ( const ObjCInterfaceType T)

Definition at line 1496 of file ASTImporter.cpp.

References clang::ObjCInterfaceType::getDecl().

◆ VisitObjCIvarDecl()

ExpectedDecl ASTNodeImporter::VisitObjCIvarDecl ( ObjCIvarDecl D)

Definition at line 3528 of file ASTImporter.cpp.

◆ VisitObjCMethodDecl()

ExpectedDecl ASTNodeImporter::VisitObjCMethodDecl ( ObjCMethodDecl D)

Definition at line 3811 of file ASTImporter.cpp.

◆ VisitObjCObjectPointerType()

ExpectedType ASTNodeImporter::VisitObjCObjectPointerType ( const ObjCObjectPointerType T)

Definition at line 1532 of file ASTImporter.cpp.

References clang::ObjCObjectPointerType::getPointeeType().

◆ VisitObjCObjectType()

ExpectedType ASTNodeImporter::VisitObjCObjectType ( const ObjCObjectType T)

◆ VisitObjCPropertyDecl()

ExpectedDecl ASTNodeImporter::VisitObjCPropertyDecl ( ObjCPropertyDecl D)

Definition at line 4720 of file ASTImporter.cpp.

◆ VisitObjCPropertyImplDecl()

ExpectedDecl ASTNodeImporter::VisitObjCPropertyImplDecl ( ObjCPropertyImplDecl D)

◆ VisitObjCProtocolDecl()

ExpectedDecl ASTNodeImporter::VisitObjCProtocolDecl ( ObjCProtocolDecl D)

Definition at line 4107 of file ASTImporter.cpp.

References clang::ObjCProtocolDecl::getDefinition().

◆ VisitObjCTypeParamDecl()

ExpectedDecl ASTNodeImporter::VisitObjCTypeParamDecl ( ObjCTypeParamDecl D)

Definition at line 3937 of file ASTImporter.cpp.

◆ VisitOffsetOfExpr()

ExpectedStmt ASTNodeImporter::VisitOffsetOfExpr ( OffsetOfExpr OE)

◆ VisitOpaqueValueExpr()

ExpectedStmt ASTNodeImporter::VisitOpaqueValueExpr ( OpaqueValueExpr E)

◆ VisitPackExpansionExpr()

ExpectedStmt ASTNodeImporter::VisitPackExpansionExpr ( PackExpansionExpr E)

◆ VisitPackExpansionType()

ExpectedType ASTNodeImporter::VisitPackExpansionType ( const PackExpansionType T)

◆ VisitParenExpr()

ExpectedStmt ASTNodeImporter::VisitParenExpr ( ParenExpr E)

◆ VisitParenListExpr()

ExpectedStmt ASTNodeImporter::VisitParenListExpr ( ParenListExpr E)

◆ VisitParenType()

ExpectedType ASTNodeImporter::VisitParenType ( const ParenType T)

Definition at line 1254 of file ASTImporter.cpp.

References clang::ParenType::getInnerType().

◆ VisitParmVarDecl()

ExpectedDecl ASTNodeImporter::VisitParmVarDecl ( ParmVarDecl D)

◆ VisitPointerType()

ExpectedType ASTNodeImporter::VisitPointerType ( const PointerType T)

Definition at line 1051 of file ASTImporter.cpp.

References clang::PointerType::getPointeeType().

◆ VisitPredefinedExpr()

ExpectedStmt ASTNodeImporter::VisitPredefinedExpr ( PredefinedExpr E)

◆ VisitRecordDecl()

ExpectedDecl ASTNodeImporter::VisitRecordDecl ( RecordDecl D)

◆ VisitRecordType()

ExpectedType ASTNodeImporter::VisitRecordType ( const RecordType T)

Definition at line 1347 of file ASTImporter.cpp.

References clang::RecordType::getDecl().

◆ VisitReturnStmt()

ExpectedStmt ASTNodeImporter::VisitReturnStmt ( ReturnStmt S)

Definition at line 5914 of file ASTImporter.cpp.

◆ VisitRValueReferenceType()

ExpectedType ASTNodeImporter::VisitRValueReferenceType ( const RValueReferenceType T)

Definition at line 1079 of file ASTImporter.cpp.

References clang::ReferenceType::getPointeeTypeAsWritten().

◆ VisitSizeOfPackExpr()

ExpectedStmt ASTNodeImporter::VisitSizeOfPackExpr ( SizeOfPackExpr E)

◆ VisitStaticAssertDecl()

ExpectedDecl ASTNodeImporter::VisitStaticAssertDecl ( StaticAssertDecl D)

◆ VisitStmt()

ExpectedStmt ASTNodeImporter::VisitStmt ( Stmt S)

Definition at line 5582 of file ASTImporter.cpp.

◆ VisitStmtExpr()

ExpectedStmt ASTNodeImporter::VisitStmtExpr ( StmtExpr E)

◆ VisitStringLiteral()

ExpectedStmt ASTNodeImporter::VisitStringLiteral ( StringLiteral E)

◆ VisitSubstNonTypeTemplateParmExpr()

ExpectedStmt ASTNodeImporter::VisitSubstNonTypeTemplateParmExpr ( SubstNonTypeTemplateParmExpr E)

◆ VisitSubstTemplateTypeParmType()

ExpectedType ASTNodeImporter::VisitSubstTemplateTypeParmType ( const SubstTemplateTypeParmType T)

◆ VisitSwitchStmt()

ExpectedStmt ASTNodeImporter::VisitSwitchStmt ( SwitchStmt S)

Definition at line 5785 of file ASTImporter.cpp.

◆ VisitTemplateSpecializationType()

ExpectedType ASTNodeImporter::VisitTemplateSpecializationType ( const TemplateSpecializationType T)

◆ VisitTemplateTemplateParmDecl()

ExpectedDecl ASTNodeImporter::VisitTemplateTemplateParmDecl ( TemplateTemplateParmDecl D)

◆ VisitTemplateTypeParmDecl()

ExpectedDecl ASTNodeImporter::VisitTemplateTypeParmDecl ( TemplateTypeParmDecl D)

◆ VisitTemplateTypeParmType()

ExpectedType ASTNodeImporter::VisitTemplateTypeParmType ( const TemplateTypeParmType T)

◆ VisitTranslationUnitDecl()

ExpectedDecl ASTNodeImporter::VisitTranslationUnitDecl ( TranslationUnitDecl D)

Definition at line 2110 of file ASTImporter.cpp.

References clang::Decl::getTranslationUnitDecl().

◆ VisitType()

ExpectedType ASTNodeImporter::VisitType ( const Type T)

◆ VisitTypeAliasDecl()

ExpectedDecl ASTNodeImporter::VisitTypeAliasDecl ( TypeAliasDecl D)

Definition at line 2367 of file ASTImporter.cpp.

◆ VisitTypeAliasTemplateDecl()

ExpectedDecl ASTNodeImporter::VisitTypeAliasTemplateDecl ( TypeAliasTemplateDecl D)

Definition at line 2372 of file ASTImporter.cpp.

◆ VisitTypedefDecl()

ExpectedDecl ASTNodeImporter::VisitTypedefDecl ( TypedefDecl D)

Definition at line 2363 of file ASTImporter.cpp.

◆ VisitTypedefNameDecl()

ExpectedDecl ASTNodeImporter::VisitTypedefNameDecl ( TypedefNameDecl D,
bool  IsAlias 
)

Definition at line 2290 of file ASTImporter.cpp.

◆ VisitTypedefType()

ExpectedType ASTNodeImporter::VisitTypedefType ( const TypedefType T)

Definition at line 1262 of file ASTImporter.cpp.

References clang::TypedefType::getDecl().

◆ VisitTypeOfExprType()

ExpectedType ASTNodeImporter::VisitTypeOfExprType ( const TypeOfExprType T)

Definition at line 1270 of file ASTImporter.cpp.

References clang::TypeOfExprType::getUnderlyingExpr().

◆ VisitTypeOfType()

ExpectedType ASTNodeImporter::VisitTypeOfType ( const TypeOfType T)

Definition at line 1278 of file ASTImporter.cpp.

References clang::TypeOfType::getUnderlyingType().

◆ VisitTypeTraitExpr()

ExpectedStmt ASTNodeImporter::VisitTypeTraitExpr ( TypeTraitExpr E)

◆ VisitUnaryExprOrTypeTraitExpr()

ExpectedStmt ASTNodeImporter::VisitUnaryExprOrTypeTraitExpr ( UnaryExprOrTypeTraitExpr E)

◆ VisitUnaryOperator()

ExpectedStmt ASTNodeImporter::VisitUnaryOperator ( UnaryOperator E)

◆ VisitUnaryTransformType()

ExpectedType ASTNodeImporter::VisitUnaryTransformType ( const UnaryTransformType T)

◆ VisitUnresolvedLookupExpr()

ExpectedStmt ASTNodeImporter::VisitUnresolvedLookupExpr ( UnresolvedLookupExpr E)

◆ VisitUnresolvedMemberExpr()

ExpectedStmt ASTNodeImporter::VisitUnresolvedMemberExpr ( UnresolvedMemberExpr E)

◆ VisitUnresolvedUsingType()

ExpectedType ASTNodeImporter::VisitUnresolvedUsingType ( const UnresolvedUsingType T)

◆ VisitUnresolvedUsingTypenameDecl()

ExpectedDecl ASTNodeImporter::VisitUnresolvedUsingTypenameDecl ( UnresolvedUsingTypenameDecl D)

Definition at line 4370 of file ASTImporter.cpp.

◆ VisitUnresolvedUsingValueDecl()

ExpectedDecl ASTNodeImporter::VisitUnresolvedUsingValueDecl ( UnresolvedUsingValueDecl D)

Definition at line 4333 of file ASTImporter.cpp.

◆ VisitUsingDecl()

ExpectedDecl ASTNodeImporter::VisitUsingDecl ( UsingDecl D)

Definition at line 4198 of file ASTImporter.cpp.

◆ VisitUsingDirectiveDecl()

ExpectedDecl ASTNodeImporter::VisitUsingDirectiveDecl ( UsingDirectiveDecl D)

Definition at line 4291 of file ASTImporter.cpp.

◆ VisitUsingShadowDecl()

ExpectedDecl ASTNodeImporter::VisitUsingShadowDecl ( UsingShadowDecl D)

Definition at line 4249 of file ASTImporter.cpp.

◆ VisitVAArgExpr()

ExpectedStmt ASTNodeImporter::VisitVAArgExpr ( VAArgExpr E)

◆ VisitVarDecl()

ExpectedDecl ASTNodeImporter::VisitVarDecl ( VarDecl D)

Definition at line 3582 of file ASTImporter.cpp.

References clang::getCanonicalForwardRedeclChain().

◆ VisitVariableArrayType()

ExpectedType ASTNodeImporter::VisitVariableArrayType ( const VariableArrayType T)

◆ VisitVarTemplateDecl()

ExpectedDecl ASTNodeImporter::VisitVarTemplateDecl ( VarTemplateDecl D)

◆ VisitVarTemplateSpecializationDecl()

ExpectedDecl ASTNodeImporter::VisitVarTemplateSpecializationDecl ( VarTemplateSpecializationDecl D)

◆ VisitVectorType()

ExpectedType ASTNodeImporter::VisitVectorType ( const VectorType T)

◆ VisitWhileStmt()

ExpectedStmt ASTNodeImporter::VisitWhileStmt ( WhileStmt S)

Definition at line 5820 of file ASTImporter.cpp.


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