clang 20.0.0git
Classes | Public Member Functions | Static Public Member Functions | List of all members
clang::ASTDeclReader Class Reference
Inheritance diagram for clang::ASTDeclReader:
Inheritance graph
[legend]

Public Member Functions

 ASTDeclReader (ASTReader &Reader, ASTRecordReader &Record, ASTReader::RecordLocation Loc, GlobalDeclID thisDeclID, SourceLocation ThisDeclLoc)
 
void ReadSpecializations (ModuleFile &M, Decl *D, llvm::BitstreamCursor &DeclsCursor, bool IsPartial)
 
void ReadFunctionDefinition (FunctionDecl *FD)
 
void Visit (Decl *D)
 
void UpdateDecl (Decl *D)
 
void VisitDecl (Decl *D)
 
void VisitPragmaCommentDecl (PragmaCommentDecl *D)
 
void VisitPragmaDetectMismatchDecl (PragmaDetectMismatchDecl *D)
 
void VisitTranslationUnitDecl (TranslationUnitDecl *TU)
 
void VisitNamedDecl (NamedDecl *ND)
 
void VisitLabelDecl (LabelDecl *LD)
 
void VisitNamespaceDecl (NamespaceDecl *D)
 
void VisitHLSLBufferDecl (HLSLBufferDecl *D)
 
void VisitUsingDirectiveDecl (UsingDirectiveDecl *D)
 
void VisitNamespaceAliasDecl (NamespaceAliasDecl *D)
 
void VisitTypeDecl (TypeDecl *TD)
 
RedeclarableResult VisitTypedefNameDecl (TypedefNameDecl *TD)
 
void VisitTypedefDecl (TypedefDecl *TD)
 
void VisitTypeAliasDecl (TypeAliasDecl *TD)
 
void VisitUnresolvedUsingTypenameDecl (UnresolvedUsingTypenameDecl *D)
 
void VisitUnresolvedUsingIfExistsDecl (UnresolvedUsingIfExistsDecl *D)
 
RedeclarableResult VisitTagDecl (TagDecl *TD)
 
void VisitEnumDecl (EnumDecl *ED)
 
RedeclarableResult VisitRecordDeclImpl (RecordDecl *RD)
 
void VisitRecordDecl (RecordDecl *RD)
 
RedeclarableResult VisitCXXRecordDeclImpl (CXXRecordDecl *D)
 
void VisitCXXRecordDecl (CXXRecordDecl *D)
 
RedeclarableResult VisitClassTemplateSpecializationDeclImpl (ClassTemplateSpecializationDecl *D)
 
void VisitClassTemplateSpecializationDecl (ClassTemplateSpecializationDecl *D)
 
void VisitClassTemplatePartialSpecializationDecl (ClassTemplatePartialSpecializationDecl *D)
 
RedeclarableResult VisitVarTemplateSpecializationDeclImpl (VarTemplateSpecializationDecl *D)
 TODO: Unify with ClassTemplateSpecializationDecl version? May require unifying ClassTemplate(Partial)SpecializationDecl and VarTemplate(Partial)SpecializationDecl with a new data structure Template(Partial)SpecializationDecl, and using Template(Partial)SpecializationDecl as input type.
 
void VisitVarTemplateSpecializationDecl (VarTemplateSpecializationDecl *D)
 
void VisitVarTemplatePartialSpecializationDecl (VarTemplatePartialSpecializationDecl *D)
 TODO: Unify with ClassTemplatePartialSpecializationDecl version? May require unifying ClassTemplate(Partial)SpecializationDecl and VarTemplate(Partial)SpecializationDecl with a new data structure Template(Partial)SpecializationDecl, and using Template(Partial)SpecializationDecl as input type.
 
void VisitTemplateTypeParmDecl (TemplateTypeParmDecl *D)
 
void VisitValueDecl (ValueDecl *VD)
 
void VisitEnumConstantDecl (EnumConstantDecl *ECD)
 
void VisitUnresolvedUsingValueDecl (UnresolvedUsingValueDecl *D)
 
void VisitDeclaratorDecl (DeclaratorDecl *DD)
 
void VisitFunctionDecl (FunctionDecl *FD)
 
void VisitCXXDeductionGuideDecl (CXXDeductionGuideDecl *GD)
 
void VisitCXXMethodDecl (CXXMethodDecl *D)
 
void VisitCXXConstructorDecl (CXXConstructorDecl *D)
 
void VisitCXXDestructorDecl (CXXDestructorDecl *D)
 
void VisitCXXConversionDecl (CXXConversionDecl *D)
 
void VisitFieldDecl (FieldDecl *FD)
 
void VisitMSPropertyDecl (MSPropertyDecl *FD)
 
void VisitMSGuidDecl (MSGuidDecl *D)
 
void VisitUnnamedGlobalConstantDecl (UnnamedGlobalConstantDecl *D)
 
void VisitTemplateParamObjectDecl (TemplateParamObjectDecl *D)
 
void VisitIndirectFieldDecl (IndirectFieldDecl *FD)
 
RedeclarableResult VisitVarDeclImpl (VarDecl *D)
 
void ReadVarDeclInit (VarDecl *VD)
 
void VisitVarDecl (VarDecl *VD)
 
void VisitImplicitParamDecl (ImplicitParamDecl *PD)
 
void VisitParmVarDecl (ParmVarDecl *PD)
 
void VisitDecompositionDecl (DecompositionDecl *DD)
 
void VisitBindingDecl (BindingDecl *BD)
 
void VisitNonTypeTemplateParmDecl (NonTypeTemplateParmDecl *D)
 
void VisitTemplateDecl (TemplateDecl *D)
 
void VisitConceptDecl (ConceptDecl *D)
 
void VisitImplicitConceptSpecializationDecl (ImplicitConceptSpecializationDecl *D)
 
void VisitRequiresExprBodyDecl (RequiresExprBodyDecl *D)
 
RedeclarableResult VisitRedeclarableTemplateDecl (RedeclarableTemplateDecl *D)
 
void VisitClassTemplateDecl (ClassTemplateDecl *D)
 
void VisitBuiltinTemplateDecl (BuiltinTemplateDecl *D)
 
void VisitVarTemplateDecl (VarTemplateDecl *D)
 TODO: Unify with ClassTemplateDecl version? May require unifying ClassTemplateDecl and VarTemplateDecl beyond TemplateDecl...
 
void VisitFunctionTemplateDecl (FunctionTemplateDecl *D)
 
void VisitTemplateTemplateParmDecl (TemplateTemplateParmDecl *D)
 
void VisitTypeAliasTemplateDecl (TypeAliasTemplateDecl *D)
 
void VisitUsingDecl (UsingDecl *D)
 
void VisitUsingEnumDecl (UsingEnumDecl *D)
 
void VisitUsingPackDecl (UsingPackDecl *D)
 
void VisitUsingShadowDecl (UsingShadowDecl *D)
 
void VisitConstructorUsingShadowDecl (ConstructorUsingShadowDecl *D)
 
void VisitLinkageSpecDecl (LinkageSpecDecl *D)
 
void VisitExportDecl (ExportDecl *D)
 
void VisitFileScopeAsmDecl (FileScopeAsmDecl *AD)
 
void VisitTopLevelStmtDecl (TopLevelStmtDecl *D)
 
void VisitImportDecl (ImportDecl *D)
 
void VisitAccessSpecDecl (AccessSpecDecl *D)
 
void VisitFriendDecl (FriendDecl *D)
 
void VisitFriendTemplateDecl (FriendTemplateDecl *D)
 
void VisitStaticAssertDecl (StaticAssertDecl *D)
 
void VisitBlockDecl (BlockDecl *BD)
 
void VisitOutlinedFunctionDecl (OutlinedFunctionDecl *D)
 
void VisitCapturedDecl (CapturedDecl *CD)
 
void VisitEmptyDecl (EmptyDecl *D)
 
void VisitLifetimeExtendedTemporaryDecl (LifetimeExtendedTemporaryDecl *D)
 
void VisitDeclContext (DeclContext *DC, uint64_t &LexicalOffset, uint64_t &VisibleOffset, uint64_t &ModuleLocalOffset, uint64_t &TULocalOffset)
 
template<typename T >
RedeclarableResult VisitRedeclarable (Redeclarable< T > *D)
 
template<typename T >
void mergeRedeclarable (Redeclarable< T > *D, RedeclarableResult &Redecl)
 Attempts to merge the given declaration (D) with another declaration of the same entity.
 
void mergeRedeclarableTemplate (RedeclarableTemplateDecl *D, RedeclarableResult &Redecl)
 
template<typename T >
void mergeMergeable (Mergeable< T > *D)
 Attempts to merge the given declaration (D) with another declaration of the same entity, for the case where the entity is not actually redeclarable.
 
void mergeMergeable (LifetimeExtendedTemporaryDecl *D)
 Attempts to merge LifetimeExtendedTemporaryDecl with identical class definitions from two different modules.
 
ObjCTypeParamListReadObjCTypeParamList ()
 
void VisitObjCMethodDecl (ObjCMethodDecl *D)
 
void VisitObjCTypeParamDecl (ObjCTypeParamDecl *D)
 
void VisitObjCContainerDecl (ObjCContainerDecl *D)
 
void VisitObjCInterfaceDecl (ObjCInterfaceDecl *D)
 
void VisitObjCIvarDecl (ObjCIvarDecl *D)
 
void VisitObjCProtocolDecl (ObjCProtocolDecl *D)
 
void VisitObjCAtDefsFieldDecl (ObjCAtDefsFieldDecl *D)
 
void VisitObjCCategoryDecl (ObjCCategoryDecl *D)
 
void VisitObjCImplDecl (ObjCImplDecl *D)
 
void VisitObjCCategoryImplDecl (ObjCCategoryImplDecl *D)
 
void VisitObjCImplementationDecl (ObjCImplementationDecl *D)
 
void VisitObjCCompatibleAliasDecl (ObjCCompatibleAliasDecl *D)
 
void VisitObjCPropertyDecl (ObjCPropertyDecl *D)
 
void VisitObjCPropertyImplDecl (ObjCPropertyImplDecl *D)
 
void VisitOMPThreadPrivateDecl (OMPThreadPrivateDecl *D)
 
void VisitOMPAllocateDecl (OMPAllocateDecl *D)
 
void VisitOMPDeclareReductionDecl (OMPDeclareReductionDecl *D)
 
void VisitOMPDeclareMapperDecl (OMPDeclareMapperDecl *D)
 
void VisitOMPRequiresDecl (OMPRequiresDecl *D)
 
void VisitOMPCapturedExprDecl (OMPCapturedExprDecl *D)
 
template<>
void attachPreviousDeclImpl (ASTReader &Reader, Redeclarable< VarDecl > *D, Decl *Previous, Decl *Canon)
 
template<>
void attachPreviousDeclImpl (ASTReader &Reader, Redeclarable< FunctionDecl > *D, Decl *Previous, Decl *Canon)
 
- Public Member Functions inherited from clang::declvisitor::Base< Ptr, ImplClass, RetTy >
RetTy Visit (PTR(Decl) D)
 
RetTy VisitDecl (PTR(Decl) D)
 

Static Public Member Functions

template<typename DeclT >
static DeclgetMostRecentDeclImpl (Redeclarable< DeclT > *D)
 
static DeclgetMostRecentDeclImpl (...)
 
static DeclgetMostRecentDecl (Decl *D)
 
template<typename DeclT >
static void attachPreviousDeclImpl (ASTReader &Reader, Redeclarable< DeclT > *D, Decl *Previous, Decl *Canon)
 
static void attachPreviousDeclImpl (ASTReader &Reader,...)
 
static void attachPreviousDecl (ASTReader &Reader, Decl *D, Decl *Previous, Decl *Canon)
 
static void checkMultipleDefinitionInNamedModules (ASTReader &Reader, Decl *D, Decl *Previous)
 
template<typename DeclT >
static void attachLatestDeclImpl (Redeclarable< DeclT > *D, Decl *Latest)
 
static void attachLatestDeclImpl (...)
 
static void attachLatestDecl (Decl *D, Decl *latest)
 
template<typename DeclT >
static void markIncompleteDeclChainImpl (Redeclarable< DeclT > *D)
 
static void markIncompleteDeclChainImpl (...)
 
static void setNextObjCCategory (ObjCCategoryDecl *Cat, ObjCCategoryDecl *Next)
 

Detailed Description

Definition at line 147 of file ASTReaderDecl.cpp.

Constructor & Destructor Documentation

◆ ASTDeclReader()

clang::ASTDeclReader::ASTDeclReader ( ASTReader Reader,
ASTRecordReader Record,
ASTReader::RecordLocation  Loc,
GlobalDeclID  thisDeclID,
SourceLocation  ThisDeclLoc 
)
inline

Definition at line 276 of file ASTReaderDecl.cpp.

References Loc.

Member Function Documentation

◆ attachLatestDecl()

void ASTDeclReader::attachLatestDecl ( Decl D,
Decl latest 
)
static

Definition at line 3820 of file ASTReaderDecl.cpp.

References D, and clang::Decl::getKind().

◆ attachLatestDeclImpl() [1/2]

void ASTDeclReader::attachLatestDeclImpl (   ...)
static

Definition at line 3816 of file ASTReaderDecl.cpp.

◆ attachLatestDeclImpl() [2/2]

template<typename DeclT >
void ASTDeclReader::attachLatestDeclImpl ( Redeclarable< DeclT > *  D,
Decl Latest 
)
static

Definition at line 3812 of file ASTReaderDecl.cpp.

References D.

◆ attachPreviousDecl()

void ASTDeclReader::attachPreviousDecl ( ASTReader Reader,
Decl D,
Decl Previous,
Decl Canon 
)
static

◆ attachPreviousDeclImpl() [1/4]

template<typename DeclT >
void ASTDeclReader::attachPreviousDeclImpl ( ASTReader Reader,
Redeclarable< DeclT > *  D,
Decl Previous,
Decl Canon 
)
static

Definition at line 3585 of file ASTReaderDecl.cpp.

References D, and Previous.

◆ attachPreviousDeclImpl() [2/4]

template<>
void clang::ASTDeclReader::attachPreviousDeclImpl ( ASTReader Reader,
Redeclarable< FunctionDecl > *  D,
Decl Previous,
Decl Canon 
)

◆ attachPreviousDeclImpl() [3/4]

template<>
void clang::ASTDeclReader::attachPreviousDeclImpl ( ASTReader Reader,
Redeclarable< VarDecl > *  D,
Decl Previous,
Decl Canon 
)

◆ attachPreviousDeclImpl() [4/4]

void ASTDeclReader::attachPreviousDeclImpl ( ASTReader Reader,
  ... 
)
static

Definition at line 3678 of file ASTReaderDecl.cpp.

◆ checkMultipleDefinitionInNamedModules()

void ASTDeclReader::checkMultipleDefinitionInNamedModules ( ASTReader Reader,
Decl D,
Decl Previous 
)
static

◆ getMostRecentDecl()

Decl * ASTDeclReader::getMostRecentDecl ( Decl D)
static

Definition at line 3546 of file ASTReaderDecl.cpp.

References D, and clang::Decl::getKind().

◆ getMostRecentDeclImpl() [1/2]

Decl * ASTDeclReader::getMostRecentDeclImpl (   ...)
static

Definition at line 3542 of file ASTReaderDecl.cpp.

◆ getMostRecentDeclImpl() [2/2]

template<typename DeclT >
Decl * ASTDeclReader::getMostRecentDeclImpl ( Redeclarable< DeclT > *  D)
static

Definition at line 3538 of file ASTReaderDecl.cpp.

References D.

◆ markIncompleteDeclChainImpl() [1/2]

void ASTDeclReader::markIncompleteDeclChainImpl (   ...)
static

Definition at line 3838 of file ASTReaderDecl.cpp.

◆ markIncompleteDeclChainImpl() [2/2]

template<typename DeclT >
void ASTDeclReader::markIncompleteDeclChainImpl ( Redeclarable< DeclT > *  D)
static

Definition at line 3834 of file ASTReaderDecl.cpp.

References D.

◆ mergeMergeable() [1/2]

void ASTDeclReader::mergeMergeable ( LifetimeExtendedTemporaryDecl D)

◆ mergeMergeable() [2/2]

template<typename T >
void ASTDeclReader::mergeMergeable ( Mergeable< T > *  D)

Attempts to merge the given declaration (D) with another declaration of the same entity, for the case where the entity is not actually redeclarable.

This happens, for instance, when merging the fields of identical class definitions from two different modules.

Definition at line 3034 of file ASTReaderDecl.cpp.

References allowODRLikeMergeInC(), D, clang::ASTReader::getContext(), clang::ASTContext::getLangOpts(), clang::ASTContext::setPrimaryMergedDecl(), and clang::T.

Referenced by VisitConceptDecl(), VisitEnumConstantDecl(), VisitFieldDecl(), VisitIndirectFieldDecl(), VisitLifetimeExtendedTemporaryDecl(), VisitUnresolvedUsingTypenameDecl(), VisitUnresolvedUsingValueDecl(), VisitUsingDecl(), VisitUsingEnumDecl(), and VisitUsingPackDecl().

◆ mergeRedeclarable()

template<typename T >
void ASTDeclReader::mergeRedeclarable ( Redeclarable< T > *  D,
RedeclarableResult &  Redecl 
)

◆ mergeRedeclarableTemplate()

void ASTDeclReader::mergeRedeclarableTemplate ( RedeclarableTemplateDecl D,
RedeclarableResult &  Redecl 
)

◆ ReadFunctionDefinition()

void ASTDeclReader::ReadFunctionDefinition ( FunctionDecl FD)

Definition at line 510 of file ASTReaderDecl.cpp.

References clang::ASTReader::getContext(), and clang::ASTContext::getLangOpts().

Referenced by UpdateDecl(), and Visit().

◆ ReadObjCTypeParamList()

ObjCTypeParamList * ASTDeclReader::ReadObjCTypeParamList ( )

◆ ReadSpecializations()

void ASTDeclReader::ReadSpecializations ( ModuleFile M,
Decl D,
llvm::BitstreamCursor &  DeclsCursor,
bool  IsPartial 
)

Definition at line 2423 of file ASTReaderDecl.cpp.

References D.

Referenced by VisitClassTemplateDecl(), VisitFunctionTemplateDecl(), and VisitVarTemplateDecl().

◆ ReadVarDeclInit()

void ASTDeclReader::ReadVarDeclInit ( VarDecl VD)

◆ setNextObjCCategory()

static void clang::ASTDeclReader::setNextObjCCategory ( ObjCCategoryDecl Cat,
ObjCCategoryDecl Next 
)
inlinestatic

Definition at line 314 of file ASTReaderDecl.cpp.

◆ UpdateDecl()

void ASTDeclReader::UpdateDecl ( Decl D)

Definition at line 4637 of file ASTReaderDecl.cpp.

References clang::Decl::addAttr(), clang::TemplateArgumentList::CreateCopy(), D, clang::First, forAllLaterRedecls(), clang::Decl::getCanonicalDecl(), clang::CXXRecordDecl::getCanonicalDecl(), clang::ASTReader::getContext(), clang::ASTContext::getFunctionType(), clang::CXXRecordDecl::getMemberSpecializationInfo(), clang::ASTReader::getSubmodule(), clang::Decl::hasAttrs(), Indirect, clang::isUnresolvedExceptionSpec(), clang::Decl::markUsed(), clang::ASTContext::mergeDefinitionIntoModule(), ReadFunctionDefinition(), ReadVarDeclInit(), clang::RecordDecl::setArgPassingRestrictions(), clang::TagDecl::setBraceRange(), clang::FunctionDecl::setImplicitlyInline(), clang::Decl::setLocation(), clang::TypeDecl::setLocStart(), clang::ASTContext::setManglingNumber(), clang::RecordDecl::setParamDestroyedInCallee(), clang::MemberSpecializationInfo::setPointOfInstantiation(), clang::ASTContext::setStaticLocalNumber(), clang::TagDecl::setTagKind(), clang::serialization::UPD_ADDED_ATTR_TO_RECORD, clang::serialization::UPD_CXX_ADDED_ANONYMOUS_NAMESPACE, clang::serialization::UPD_CXX_ADDED_FUNCTION_DEFINITION, clang::serialization::UPD_CXX_ADDED_IMPLICIT_MEMBER, clang::serialization::UPD_CXX_ADDED_VAR_DEFINITION, clang::serialization::UPD_CXX_DEDUCED_RETURN_TYPE, clang::serialization::UPD_CXX_INSTANTIATED_CLASS_DEFINITION, clang::serialization::UPD_CXX_INSTANTIATED_DEFAULT_ARGUMENT, clang::serialization::UPD_CXX_INSTANTIATED_DEFAULT_MEMBER_INITIALIZER, clang::serialization::UPD_CXX_POINT_OF_INSTANTIATION, clang::serialization::UPD_CXX_RESOLVED_DTOR_DELETE, clang::serialization::UPD_CXX_RESOLVED_EXCEPTION_SPEC, clang::serialization::UPD_DECL_EXPORTED, clang::serialization::UPD_DECL_MARKED_OPENMP_ALLOCATE, clang::serialization::UPD_DECL_MARKED_OPENMP_DECLARETARGET, clang::serialization::UPD_DECL_MARKED_OPENMP_THREADPRIVATE, clang::serialization::UPD_DECL_MARKED_USED, clang::serialization::UPD_MANGLING_NUMBER, and clang::serialization::UPD_STATIC_LOCAL_NUMBER.

◆ Visit()

void ASTDeclReader::Visit ( Decl D)

◆ VisitAccessSpecDecl()

void ASTDeclReader::VisitAccessSpecDecl ( AccessSpecDecl D)

Definition at line 2361 of file ASTReaderDecl.cpp.

References D, and VisitDecl().

◆ VisitBindingDecl()

void ASTDeclReader::VisitBindingDecl ( BindingDecl BD)

Definition at line 1750 of file ASTReaderDecl.cpp.

References VisitValueDecl().

◆ VisitBlockDecl()

void ASTDeclReader::VisitBlockDecl ( BlockDecl BD)

◆ VisitBuiltinTemplateDecl()

void ASTDeclReader::VisitBuiltinTemplateDecl ( BuiltinTemplateDecl D)

Definition at line 2484 of file ASTReaderDecl.cpp.

◆ VisitCapturedDecl()

void ASTDeclReader::VisitCapturedDecl ( CapturedDecl CD)

◆ VisitClassTemplateDecl()

void ASTDeclReader::VisitClassTemplateDecl ( ClassTemplateDecl D)

◆ VisitClassTemplatePartialSpecializationDecl()

void ASTDeclReader::VisitClassTemplatePartialSpecializationDecl ( ClassTemplatePartialSpecializationDecl D)

Definition at line 2576 of file ASTReaderDecl.cpp.

References D, and VisitClassTemplateSpecializationDeclImpl().

◆ VisitClassTemplateSpecializationDecl()

void clang::ASTDeclReader::VisitClassTemplateSpecializationDecl ( ClassTemplateSpecializationDecl D)
inline

Definition at line 345 of file ASTReaderDecl.cpp.

References D, and VisitClassTemplateSpecializationDeclImpl().

◆ VisitClassTemplateSpecializationDeclImpl()

RedeclarableResult ASTDeclReader::VisitClassTemplateSpecializationDeclImpl ( ClassTemplateSpecializationDecl D)

◆ VisitConceptDecl()

void ASTDeclReader::VisitConceptDecl ( ConceptDecl D)

Definition at line 2403 of file ASTReaderDecl.cpp.

References D, mergeMergeable(), and VisitTemplateDecl().

◆ VisitConstructorUsingShadowDecl()

void ASTDeclReader::VisitConstructorUsingShadowDecl ( ConstructorUsingShadowDecl D)

Definition at line 1936 of file ASTReaderDecl.cpp.

References D, and VisitUsingShadowDecl().

◆ VisitCXXConstructorDecl()

void ASTDeclReader::VisitCXXConstructorDecl ( CXXConstructorDecl D)

Definition at line 2318 of file ASTReaderDecl.cpp.

References D, and VisitCXXMethodDecl().

◆ VisitCXXConversionDecl()

void ASTDeclReader::VisitCXXConversionDecl ( CXXConversionDecl D)

Definition at line 2346 of file ASTReaderDecl.cpp.

References D, and VisitCXXMethodDecl().

◆ VisitCXXDeductionGuideDecl()

void ASTDeclReader::VisitCXXDeductionGuideDecl ( CXXDeductionGuideDecl GD)

Definition at line 2292 of file ASTReaderDecl.cpp.

References D, and VisitFunctionDecl().

◆ VisitCXXDestructorDecl()

void ASTDeclReader::VisitCXXDestructorDecl ( CXXDestructorDecl D)

Definition at line 2332 of file ASTReaderDecl.cpp.

References D, clang::Decl::getCanonicalDecl(), and VisitCXXMethodDecl().

◆ VisitCXXMethodDecl()

void ASTDeclReader::VisitCXXMethodDecl ( CXXMethodDecl D)

◆ VisitCXXRecordDecl()

void clang::ASTDeclReader::VisitCXXRecordDecl ( CXXRecordDecl D)
inline

Definition at line 340 of file ASTReaderDecl.cpp.

References D, and VisitCXXRecordDeclImpl().

◆ VisitCXXRecordDeclImpl()

RedeclarableResult ASTDeclReader::VisitCXXRecordDeclImpl ( CXXRecordDecl D)

◆ VisitDecl()

void ASTDeclReader::VisitDecl ( Decl D)

◆ VisitDeclaratorDecl()

void ASTDeclReader::VisitDeclaratorDecl ( DeclaratorDecl DD)

◆ VisitDeclContext()

void ASTDeclReader::VisitDeclContext ( DeclContext DC,
uint64_t &  LexicalOffset,
uint64_t &  VisibleOffset,
uint64_t &  ModuleLocalOffset,
uint64_t &  TULocalOffset 
)

Definition at line 2784 of file ASTReaderDecl.cpp.

Referenced by VisitHLSLBufferDecl().

◆ VisitDecompositionDecl()

void ASTDeclReader::VisitDecompositionDecl ( DecompositionDecl DD)

Definition at line 1741 of file ASTReaderDecl.cpp.

References VisitVarDecl().

◆ VisitEmptyDecl()

void ASTDeclReader::VisitEmptyDecl ( EmptyDecl D)

Definition at line 2767 of file ASTReaderDecl.cpp.

References D, and VisitDecl().

◆ VisitEnumConstantDecl()

void ASTDeclReader::VisitEnumConstantDecl ( EnumConstantDecl ECD)

◆ VisitEnumDecl()

void ASTDeclReader::VisitEnumDecl ( EnumDecl ED)

◆ VisitExportDecl()

void ASTDeclReader::VisitExportDecl ( ExportDecl D)

Definition at line 1828 of file ASTReaderDecl.cpp.

References D, and VisitDecl().

◆ VisitFieldDecl()

void ASTDeclReader::VisitFieldDecl ( FieldDecl FD)

◆ VisitFileScopeAsmDecl()

void ASTDeclReader::VisitFileScopeAsmDecl ( FileScopeAsmDecl AD)

◆ VisitFriendDecl()

void ASTDeclReader::VisitFriendDecl ( FriendDecl D)

Definition at line 2366 of file ASTReaderDecl.cpp.

References D, clang::DeclIDBase::getRawValue(), and VisitDecl().

◆ VisitFriendTemplateDecl()

void ASTDeclReader::VisitFriendTemplateDecl ( FriendTemplateDecl D)

Definition at line 2381 of file ASTReaderDecl.cpp.

References D, clang::ASTReader::getContext(), and VisitDecl().

◆ VisitFunctionDecl()

void ASTDeclReader::VisitFunctionDecl ( FunctionDecl FD)

Definition at line 910 of file ASTReaderDecl.cpp.

References clang::UnresolvedSetImpl::addDecl(), clang::C, clang::Type::castAs(), clang::FunctionTemplateSpecializationInfo::Create(), clang::FunctionDecl::DefaultedOrDeletedFunctionInfo::Create(), clang::TemplateArgumentList::CreateCopy(), clang::declaresSameEntity(), clang::ASTReader::Diag(), clang::Decl::getAttr(), clang::Type::getContainedAutoType(), clang::ASTReader::getContext(), clang::NamedDecl::getDeclName(), clang::FunctionDecl::getDescribedFunctionTemplate(), clang::FunctionTemplateSpecializationInfo::getFunction(), clang::SYCLKernelInfo::getKernelEntryPointDecl(), clang::ASTContext::getLangOpts(), clang::Decl::getLocation(), clang::FunctionDecl::getMemberSpecializationInfo(), clang::BitsUnpacker::getNextBit(), clang::BitsUnpacker::getNextBits(), clang::FunctionType::getReturnType(), clang::FunctionDecl::getTemplatedKind(), clang::FunctionDecl::getTemplateSpecializationInfo(), clang::TypeSourceInfo::getType(), clang::ASTReader::GetType(), clang::DeclaratorDecl::getTypeSourceInfo(), clang::Decl::hasAttr(), clang::Decl::isCanonicalDecl(), clang::FunctionDecl::isDefaulted(), clang::FunctionDecl::isDeletedAsWritten(), clang::FunctionDecl::isExplicitlyDefaulted(), clang::DeclAccessPair::make(), mergeRedeclarable(), clang::ASTDeclMerger::mergeRedeclarable(), mergeRedeclarableTemplate(), clang::FunctionTemplateSpecializationInfo::Profile(), clang::Decl::setCachedLinkage(), clang::FunctionDecl::setConstexprKind(), clang::FunctionDecl::setDefaulted(), clang::FunctionDecl::setDefaultedOrDeletedInfo(), clang::FunctionDecl::setDefaultLoc(), clang::FunctionDecl::setDeletedAsWritten(), clang::FunctionDecl::setDependentTemplateSpecialization(), clang::FunctionDecl::setDescribedFunctionTemplate(), clang::FunctionDecl::setExplicitlyDefaulted(), clang::FunctionDecl::setFriendConstraintRefersToEnclosingTemplate(), clang::FunctionDecl::setHasImplicitReturnZero(), clang::FunctionDecl::setHasInheritedPrototype(), clang::FunctionDecl::setHasSkippedBody(), clang::FunctionDecl::setHasWrittenPrototype(), clang::FunctionDecl::setImplicitlyInline(), clang::FunctionDecl::setIneligibleOrNotSelected(), clang::FunctionDecl::setInlineSpecified(), clang::FunctionDecl::setInstantiatedFromDecl(), clang::FunctionDecl::setIsMultiVersion(), clang::FunctionDecl::setIsPureVirtual(), clang::FunctionDecl::setLateTemplateParsed(), clang::MemberSpecializationInfo::setPointOfInstantiation(), clang::FunctionDecl::setStorageClass(), clang::FunctionDecl::setTrivial(), clang::FunctionDecl::setTrivialForCall(), clang::ValueDecl::setType(), clang::FunctionDecl::setUsesSEHTry(), clang::FunctionDecl::setVirtualAsWritten(), clang::FunctionTemplateDecl::Common::Specializations, clang::FunctionDecl::TK_DependentFunctionTemplateSpecialization, clang::FunctionDecl::TK_DependentNonTemplate, clang::FunctionDecl::TK_FunctionTemplate, clang::FunctionDecl::TK_FunctionTemplateSpecialization, clang::FunctionDecl::TK_MemberSpecialization, clang::FunctionDecl::TK_NonTemplate, VisitDeclaratorDecl(), and VisitRedeclarable().

Referenced by VisitCXXDeductionGuideDecl(), and VisitCXXMethodDecl().

◆ VisitFunctionTemplateDecl()

void ASTDeclReader::VisitFunctionTemplateDecl ( FunctionTemplateDecl D)

Definition at line 2593 of file ASTReaderDecl.cpp.

References D, Loc, ReadSpecializations(), and VisitRedeclarableTemplateDecl().

◆ VisitHLSLBufferDecl()

void ASTDeclReader::VisitHLSLBufferDecl ( HLSLBufferDecl D)

Definition at line 1868 of file ASTReaderDecl.cpp.

References D, VisitDeclContext(), and VisitNamedDecl().

◆ VisitImplicitConceptSpecializationDecl()

void ASTDeclReader::VisitImplicitConceptSpecializationDecl ( ImplicitConceptSpecializationDecl D)

Definition at line 2409 of file ASTReaderDecl.cpp.

References D, and VisitDecl().

◆ VisitImplicitParamDecl()

void ASTDeclReader::VisitImplicitParamDecl ( ImplicitParamDecl PD)

Definition at line 1709 of file ASTReaderDecl.cpp.

References VisitVarDecl().

◆ VisitImportDecl()

void ASTDeclReader::VisitImportDecl ( ImportDecl D)

Definition at line 2351 of file ASTReaderDecl.cpp.

References D, and VisitDecl().

◆ VisitIndirectFieldDecl()

void ASTDeclReader::VisitIndirectFieldDecl ( IndirectFieldDecl FD)

◆ VisitLabelDecl()

void ASTDeclReader::VisitLabelDecl ( LabelDecl LD)

Definition at line 1833 of file ASTReaderDecl.cpp.

References D, and VisitNamedDecl().

◆ VisitLifetimeExtendedTemporaryDecl()

void ASTDeclReader::VisitLifetimeExtendedTemporaryDecl ( LifetimeExtendedTemporaryDecl D)

◆ VisitLinkageSpecDecl()

void ASTDeclReader::VisitLinkageSpecDecl ( LinkageSpecDecl D)

Definition at line 1821 of file ASTReaderDecl.cpp.

References D, and VisitDecl().

◆ VisitMSGuidDecl()

void ASTDeclReader::VisitMSGuidDecl ( MSGuidDecl D)

◆ VisitMSPropertyDecl()

void ASTDeclReader::VisitMSPropertyDecl ( MSPropertyDecl FD)

Definition at line 1546 of file ASTReaderDecl.cpp.

References VisitDeclaratorDecl().

◆ VisitNamedDecl()

void ASTDeclReader::VisitNamedDecl ( NamedDecl ND)

◆ VisitNamespaceAliasDecl()

void ASTDeclReader::VisitNamespaceAliasDecl ( NamespaceAliasDecl D)

Definition at line 1882 of file ASTReaderDecl.cpp.

References D, mergeRedeclarable(), VisitNamedDecl(), and VisitRedeclarable().

◆ VisitNamespaceDecl()

void ASTDeclReader::VisitNamespaceDecl ( NamespaceDecl D)

◆ VisitNonTypeTemplateParmDecl()

void ASTDeclReader::VisitNonTypeTemplateParmDecl ( NonTypeTemplateParmDecl D)

Definition at line 2711 of file ASTReaderDecl.cpp.

References D, clang::ASTReader::getContext(), and VisitDeclaratorDecl().

◆ VisitObjCAtDefsFieldDecl()

void ASTDeclReader::VisitObjCAtDefsFieldDecl ( ObjCAtDefsFieldDecl D)

Definition at line 1427 of file ASTReaderDecl.cpp.

References VisitFieldDecl().

◆ VisitObjCCategoryDecl()

void ASTDeclReader::VisitObjCCategoryDecl ( ObjCCategoryDecl D)

◆ VisitObjCCategoryImplDecl()

void ASTDeclReader::VisitObjCCategoryImplDecl ( ObjCCategoryImplDecl D)

Definition at line 1496 of file ASTReaderDecl.cpp.

References D, and VisitObjCImplDecl().

◆ VisitObjCCompatibleAliasDecl()

void ASTDeclReader::VisitObjCCompatibleAliasDecl ( ObjCCompatibleAliasDecl D)

◆ VisitObjCContainerDecl()

void ASTDeclReader::VisitObjCContainerDecl ( ObjCContainerDecl D)

◆ VisitObjCImplDecl()

void ASTDeclReader::VisitObjCImplDecl ( ObjCImplDecl D)

Definition at line 1491 of file ASTReaderDecl.cpp.

References D, and VisitObjCContainerDecl().

Referenced by VisitObjCCategoryImplDecl(), and VisitObjCImplementationDecl().

◆ VisitObjCImplementationDecl()

void ASTDeclReader::VisitObjCImplementationDecl ( ObjCImplementationDecl D)

Definition at line 1501 of file ASTReaderDecl.cpp.

References D, and VisitObjCImplDecl().

◆ VisitObjCInterfaceDecl()

void ASTDeclReader::VisitObjCInterfaceDecl ( ObjCInterfaceDecl D)

◆ VisitObjCIvarDecl()

void ASTDeclReader::VisitObjCIvarDecl ( ObjCIvarDecl D)

◆ VisitObjCMethodDecl()

void ASTDeclReader::VisitObjCMethodDecl ( ObjCMethodDecl D)

◆ VisitObjCPropertyDecl()

void ASTDeclReader::VisitObjCPropertyDecl ( ObjCPropertyDecl D)

◆ VisitObjCPropertyImplDecl()

void ASTDeclReader::VisitObjCPropertyImplDecl ( ObjCPropertyImplDecl D)

Definition at line 1514 of file ASTReaderDecl.cpp.

References D, and VisitDecl().

◆ VisitObjCProtocolDecl()

void ASTDeclReader::VisitObjCProtocolDecl ( ObjCProtocolDecl D)

◆ VisitObjCTypeParamDecl()

void ASTDeclReader::VisitObjCTypeParamDecl ( ObjCTypeParamDecl D)

Definition at line 1202 of file ASTReaderDecl.cpp.

References D, and VisitTypedefNameDecl().

◆ VisitOMPAllocateDecl()

void ASTDeclReader::VisitOMPAllocateDecl ( OMPAllocateDecl D)

Definition at line 3058 of file ASTReaderDecl.cpp.

References D, and VisitDecl().

◆ VisitOMPCapturedExprDecl()

void ASTDeclReader::VisitOMPCapturedExprDecl ( OMPCapturedExprDecl D)

Definition at line 3092 of file ASTReaderDecl.cpp.

References D, and VisitVarDecl().

◆ VisitOMPDeclareMapperDecl()

void ASTDeclReader::VisitOMPDeclareMapperDecl ( OMPDeclareMapperDecl D)

Definition at line 3085 of file ASTReaderDecl.cpp.

References D, clang::DeclIDBase::getRawValue(), and VisitValueDecl().

◆ VisitOMPDeclareReductionDecl()

void ASTDeclReader::VisitOMPDeclareReductionDecl ( OMPDeclareReductionDecl D)

◆ VisitOMPRequiresDecl()

void ASTDeclReader::VisitOMPRequiresDecl ( OMPRequiresDecl D)

Definition at line 3063 of file ASTReaderDecl.cpp.

References D, and VisitDecl().

◆ VisitOMPThreadPrivateDecl()

void ASTDeclReader::VisitOMPThreadPrivateDecl ( OMPThreadPrivateDecl D)

Definition at line 3053 of file ASTReaderDecl.cpp.

References D, and VisitDecl().

◆ VisitOutlinedFunctionDecl()

void ASTDeclReader::VisitOutlinedFunctionDecl ( OutlinedFunctionDecl D)

Definition at line 1799 of file ASTReaderDecl.cpp.

References D, and VisitDecl().

◆ VisitParmVarDecl()

void ASTDeclReader::VisitParmVarDecl ( ParmVarDecl PD)

◆ VisitPragmaCommentDecl()

void ASTDeclReader::VisitPragmaCommentDecl ( PragmaCommentDecl D)

Definition at line 661 of file ASTReaderDecl.cpp.

References D, memcpy(), clang::Decl::setLocation(), and VisitDecl().

◆ VisitPragmaDetectMismatchDecl()

void ASTDeclReader::VisitPragmaDetectMismatchDecl ( PragmaDetectMismatchDecl D)

Definition at line 670 of file ASTReaderDecl.cpp.

References D, memcpy(), clang::Decl::setLocation(), and VisitDecl().

◆ VisitRecordDecl()

void ASTDeclReader::VisitRecordDecl ( RecordDecl RD)

◆ VisitRecordDeclImpl()

RedeclarableResult ASTDeclReader::VisitRecordDeclImpl ( RecordDecl RD)

◆ VisitRedeclarable()

template<typename T >
RedeclarableResult ASTDeclReader::VisitRedeclarable ( Redeclarable< T > *  D)

◆ VisitRedeclarableTemplateDecl()

RedeclarableResult ASTDeclReader::VisitRedeclarableTemplateDecl ( RedeclarableTemplateDecl D)

◆ VisitRequiresExprBodyDecl()

void ASTDeclReader::VisitRequiresExprBodyDecl ( RequiresExprBodyDecl D)

Definition at line 2420 of file ASTReaderDecl.cpp.

◆ VisitStaticAssertDecl()

void ASTDeclReader::VisitStaticAssertDecl ( StaticAssertDecl D)

Definition at line 2759 of file ASTReaderDecl.cpp.

References D, and VisitDecl().

◆ VisitTagDecl()

RedeclarableResult ASTDeclReader::VisitTagDecl ( TagDecl TD)

◆ VisitTemplateDecl()

void ASTDeclReader::VisitTemplateDecl ( TemplateDecl D)

◆ VisitTemplateParamObjectDecl()

void ASTDeclReader::VisitTemplateParamObjectDecl ( TemplateParamObjectDecl D)

◆ VisitTemplateTemplateParmDecl()

void ASTDeclReader::VisitTemplateTemplateParmDecl ( TemplateTemplateParmDecl D)

◆ VisitTemplateTypeParmDecl()

void ASTDeclReader::VisitTemplateTypeParmDecl ( TemplateTypeParmDecl D)

Definition at line 2689 of file ASTReaderDecl.cpp.

References D, clang::ASTReader::getContext(), and VisitTypeDecl().

◆ VisitTopLevelStmtDecl()

void ASTDeclReader::VisitTopLevelStmtDecl ( TopLevelStmtDecl D)

Definition at line 1761 of file ASTReaderDecl.cpp.

References D, and VisitDecl().

◆ VisitTranslationUnitDecl()

void ASTDeclReader::VisitTranslationUnitDecl ( TranslationUnitDecl TU)

Definition at line 684 of file ASTReaderDecl.cpp.

◆ VisitTypeAliasDecl()

void ASTDeclReader::VisitTypeAliasDecl ( TypeAliasDecl TD)

◆ VisitTypeAliasTemplateDecl()

void ASTDeclReader::VisitTypeAliasTemplateDecl ( TypeAliasTemplateDecl D)

◆ VisitTypeDecl()

void ASTDeclReader::VisitTypeDecl ( TypeDecl TD)

◆ VisitTypedefDecl()

void ASTDeclReader::VisitTypedefDecl ( TypedefDecl TD)

Definition at line 718 of file ASTReaderDecl.cpp.

References mergeRedeclarable(), and VisitTypedefNameDecl().

◆ VisitTypedefNameDecl()

RedeclarableResult ASTDeclReader::VisitTypedefNameDecl ( TypedefNameDecl TD)

◆ VisitUnnamedGlobalConstantDecl()

void ASTDeclReader::VisitUnnamedGlobalConstantDecl ( UnnamedGlobalConstantDecl D)

◆ VisitUnresolvedUsingIfExistsDecl()

void ASTDeclReader::VisitUnresolvedUsingIfExistsDecl ( UnresolvedUsingIfExistsDecl D)

Definition at line 1971 of file ASTReaderDecl.cpp.

References D, and VisitNamedDecl().

◆ VisitUnresolvedUsingTypenameDecl()

void ASTDeclReader::VisitUnresolvedUsingTypenameDecl ( UnresolvedUsingTypenameDecl D)

Definition at line 1962 of file ASTReaderDecl.cpp.

References D, mergeMergeable(), and VisitTypeDecl().

◆ VisitUnresolvedUsingValueDecl()

void ASTDeclReader::VisitUnresolvedUsingValueDecl ( UnresolvedUsingValueDecl D)

Definition at line 1953 of file ASTReaderDecl.cpp.

References D, mergeMergeable(), and VisitValueDecl().

◆ VisitUsingDecl()

void ASTDeclReader::VisitUsingDecl ( UsingDecl D)

◆ VisitUsingDirectiveDecl()

void ASTDeclReader::VisitUsingDirectiveDecl ( UsingDirectiveDecl D)

Definition at line 1944 of file ASTReaderDecl.cpp.

References D, and VisitNamedDecl().

◆ VisitUsingEnumDecl()

void ASTDeclReader::VisitUsingEnumDecl ( UsingEnumDecl D)

◆ VisitUsingPackDecl()

void ASTDeclReader::VisitUsingPackDecl ( UsingPackDecl D)

Definition at line 1915 of file ASTReaderDecl.cpp.

References D, mergeMergeable(), and VisitNamedDecl().

◆ VisitUsingShadowDecl()

void ASTDeclReader::VisitUsingShadowDecl ( UsingShadowDecl D)

◆ VisitValueDecl()

void ASTDeclReader::VisitValueDecl ( ValueDecl VD)

◆ VisitVarDecl()

void clang::ASTDeclReader::VisitVarDecl ( VarDecl VD)
inline

◆ VisitVarDeclImpl()

RedeclarableResult ASTDeclReader::VisitVarDeclImpl ( VarDecl D)

◆ VisitVarTemplateDecl()

void ASTDeclReader::VisitVarTemplateDecl ( VarTemplateDecl D)

TODO: Unify with ClassTemplateDecl version? May require unifying ClassTemplateDecl and VarTemplateDecl beyond TemplateDecl...

Definition at line 2491 of file ASTReaderDecl.cpp.

References D, Loc, mergeRedeclarableTemplate(), ReadSpecializations(), and VisitRedeclarableTemplateDecl().

◆ VisitVarTemplatePartialSpecializationDecl()

void ASTDeclReader::VisitVarTemplatePartialSpecializationDecl ( VarTemplatePartialSpecializationDecl D)

TODO: Unify with ClassTemplatePartialSpecializationDecl version? May require unifying ClassTemplate(Partial)SpecializationDecl and VarTemplate(Partial)SpecializationDecl with a new data structure Template(Partial)SpecializationDecl, and using Template(Partial)SpecializationDecl as input type.

Definition at line 2674 of file ASTReaderDecl.cpp.

References D, and VisitVarTemplateSpecializationDeclImpl().

◆ VisitVarTemplateSpecializationDecl()

void clang::ASTDeclReader::VisitVarTemplateSpecializationDecl ( VarTemplateSpecializationDecl D)
inline

Definition at line 354 of file ASTReaderDecl.cpp.

References D, and VisitVarTemplateSpecializationDeclImpl().

◆ VisitVarTemplateSpecializationDeclImpl()

RedeclarableResult ASTDeclReader::VisitVarTemplateSpecializationDeclImpl ( VarTemplateSpecializationDecl D)

TODO: Unify with ClassTemplateSpecializationDecl version? May require unifying ClassTemplate(Partial)SpecializationDecl and VarTemplate(Partial)SpecializationDecl with a new data structure Template(Partial)SpecializationDecl, and using Template(Partial)SpecializationDecl as input type.

Definition at line 2607 of file ASTReaderDecl.cpp.

References clang::C, clang::TemplateArgumentList::CreateCopy(), D, clang::ExplicitInstantiationInfo::ExternKeywordLoc, clang::ASTReader::getContext(), clang::Decl::isCanonicalDecl(), clang::ASTDeclMerger::mergeRedeclarable(), and VisitVarDeclImpl().

Referenced by VisitVarTemplatePartialSpecializationDecl(), and VisitVarTemplateSpecializationDecl().


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