clang 22.0.0git
clang::ASTDeclReader Class Reference
Inheritance diagram for clang::ASTDeclReader:
[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?
void VisitVarTemplateSpecializationDecl (VarTemplateSpecializationDecl *D)
void VisitVarTemplatePartialSpecializationDecl (VarTemplatePartialSpecializationDecl *D)
 TODO: Unify with ClassTemplatePartialSpecializationDecl version?
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?
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 VisitOpenACCDeclareDecl (OpenACCDeclareDecl *D)
void VisitOpenACCRoutineDecl (OpenACCRoutineDecl *D)
void VisitDeclContext (DeclContext *DC, LookupBlockOffsets &Offsets)
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< std::add_pointer, ASTDeclReader, void >
void Visit (PTR(Decl) D)
void 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 144 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 273 of file ASTReaderDecl.cpp.

Member Function Documentation

◆ attachLatestDecl()

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

Definition at line 3847 of file ASTReaderDecl.cpp.

References clang::Decl::getKind().

◆ attachLatestDeclImpl() [1/2]

void ASTDeclReader::attachLatestDeclImpl ( ...)
static

Definition at line 3843 of file ASTReaderDecl.cpp.

◆ attachLatestDeclImpl() [2/2]

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

◆ 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

◆ attachPreviousDeclImpl() [2/4]

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

◆ attachPreviousDeclImpl() [3/4]

◆ attachPreviousDeclImpl() [4/4]

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

Definition at line 3693 of file ASTReaderDecl.cpp.

◆ checkMultipleDefinitionInNamedModules()

◆ getMostRecentDecl()

Decl * ASTDeclReader::getMostRecentDecl ( Decl * D)
static

Definition at line 3561 of file ASTReaderDecl.cpp.

References clang::Decl::getKind().

◆ getMostRecentDeclImpl() [1/2]

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

Definition at line 3557 of file ASTReaderDecl.cpp.

◆ getMostRecentDeclImpl() [2/2]

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

◆ markIncompleteDeclChainImpl() [1/2]

void ASTDeclReader::markIncompleteDeclChainImpl ( ...)
static

Definition at line 3865 of file ASTReaderDecl.cpp.

◆ markIncompleteDeclChainImpl() [2/2]

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

◆ mergeMergeable() [1/2]

void ASTDeclReader::mergeMergeable ( LifetimeExtendedTemporaryDecl * D)

Attempts to merge LifetimeExtendedTemporaryDecl with identical class definitions from two different modules.

Definition at line 3010 of file ASTReaderDecl.cpp.

References clang::LifetimeExtendedTemporaryDecl::getExtendingDecl(), and clang::LifetimeExtendedTemporaryDecl::getManglingNumber().

◆ 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 3032 of file ASTReaderDecl.cpp.

References allowODRLikeMergeInC(), 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()

◆ ReadFunctionDefinition()

void ASTDeclReader::ReadFunctionDefinition ( FunctionDecl * FD)

Definition at line 508 of file ASTReaderDecl.cpp.

References clang::Decl::getFriendObjectKind(), and clang::serialization::MK_MainFile.

Referenced by UpdateDecl(), and Visit().

◆ ReadObjCTypeParamList()

ObjCTypeParamList * ASTDeclReader::ReadObjCTypeParamList ( )

◆ ReadSpecializations()

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

◆ ReadVarDeclInit()

◆ setNextObjCCategory()

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

Definition at line 311 of file ASTReaderDecl.cpp.

References Next.

◆ UpdateDecl()

void ASTDeclReader::UpdateDecl ( Decl * D)

Definition at line 4666 of file ASTReaderDecl.cpp.

References clang::Decl::addAttr(), clang::serialization::AddedAttrToRecord, clang::cast(), clang::TemplateArgumentList::CreateCopy(), clang::serialization::CXXAddedAnonymousNamespace, clang::serialization::CXXAddedFunctionDefinition, clang::serialization::CXXAddedImplicitMember, clang::serialization::CXXAddedVarDefinition, clang::serialization::CXXDeducedReturnType, clang::serialization::CXXInstantiatedClassDefinition, clang::serialization::CXXInstantiatedDefaultArgument, clang::serialization::CXXInstantiatedDefaultMemberInitializer, clang::serialization::CXXPointOfInstantiation, clang::serialization::CXXResolvedDtorDelete, clang::serialization::CXXResolvedExceptionSpec, clang::serialization::DeclExported, clang::serialization::DeclMarkedOpenMPAllocate, clang::serialization::DeclMarkedOpenMPDeclareTarget, clang::serialization::DeclMarkedOpenMPThreadPrivate, clang::serialization::DeclMarkedUsed, clang::First, forAllLaterRedecls(), clang::CXXRecordDecl::getCanonicalDecl(), clang::Decl::getCanonicalDecl(), clang::CXXRecordDecl::getMemberSpecializationInfo(), clang::Decl::hasAttrs(), clang::isa(), clang::isUnresolvedExceptionSpec(), clang::serialization::ManglingNumber, clang::Decl::markUsed(), ReadFunctionDefinition(), ReadVarDeclInit(), clang::RecordDecl::setArgPassingRestrictions(), clang::TagDecl::setBraceRange(), clang::FunctionDecl::setImplicitlyInline(), clang::Decl::setLocation(), clang::TypeDecl::setLocStart(), clang::RecordDecl::setParamDestroyedInCallee(), clang::MemberSpecializationInfo::setPointOfInstantiation(), clang::TagDecl::setTagKind(), and clang::serialization::StaticLocalNumber.

◆ Visit()

◆ VisitAccessSpecDecl()

void ASTDeclReader::VisitAccessSpecDecl ( AccessSpecDecl * D)

Definition at line 2368 of file ASTReaderDecl.cpp.

References clang::AccessSpecDecl::setColonLoc(), and VisitDecl().

◆ VisitBindingDecl()

void ASTDeclReader::VisitBindingDecl ( BindingDecl * BD)

Definition at line 1764 of file ASTReaderDecl.cpp.

References VisitValueDecl().

◆ VisitBlockDecl()

◆ VisitBuiltinTemplateDecl()

void ASTDeclReader::VisitBuiltinTemplateDecl ( BuiltinTemplateDecl * D)

Definition at line 2482 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 2575 of file ASTReaderDecl.cpp.

References VisitClassTemplateSpecializationDeclImpl().

◆ VisitClassTemplateSpecializationDecl()

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

Definition at line 342 of file ASTReaderDecl.cpp.

References VisitClassTemplateSpecializationDeclImpl().

◆ VisitClassTemplateSpecializationDeclImpl()

◆ VisitConceptDecl()

void ASTDeclReader::VisitConceptDecl ( ConceptDecl * D)

◆ VisitConstructorUsingShadowDecl()

void ASTDeclReader::VisitConstructorUsingShadowDecl ( ConstructorUsingShadowDecl * D)

Definition at line 1946 of file ASTReaderDecl.cpp.

References VisitUsingShadowDecl().

◆ VisitCXXConstructorDecl()

◆ VisitCXXConversionDecl()

void ASTDeclReader::VisitCXXConversionDecl ( CXXConversionDecl * D)

◆ VisitCXXDeductionGuideDecl()

◆ VisitCXXDestructorDecl()

void ASTDeclReader::VisitCXXDestructorDecl ( CXXDestructorDecl * D)

◆ VisitCXXMethodDecl()

◆ VisitCXXRecordDecl()

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

Definition at line 337 of file ASTReaderDecl.cpp.

References VisitCXXRecordDeclImpl().

◆ VisitCXXRecordDeclImpl()

◆ VisitDecl()

◆ VisitDeclaratorDecl()

◆ VisitDeclContext()

◆ VisitDecompositionDecl()

void ASTDeclReader::VisitDecompositionDecl ( DecompositionDecl * DD)

Definition at line 1755 of file ASTReaderDecl.cpp.

References VisitVarDecl().

◆ VisitEmptyDecl()

void ASTDeclReader::VisitEmptyDecl ( EmptyDecl * D)

Definition at line 2767 of file ASTReaderDecl.cpp.

References VisitDecl().

◆ VisitEnumConstantDecl()

void ASTDeclReader::VisitEnumConstantDecl ( EnumConstantDecl * ECD)

◆ VisitEnumDecl()

◆ VisitExportDecl()

void ASTDeclReader::VisitExportDecl ( ExportDecl * D)

Definition at line 1842 of file ASTReaderDecl.cpp.

References VisitDecl().

◆ VisitFieldDecl()

◆ VisitFileScopeAsmDecl()

void ASTDeclReader::VisitFileScopeAsmDecl ( FileScopeAsmDecl * AD)

◆ VisitFriendDecl()

void ASTDeclReader::VisitFriendDecl ( FriendDecl * D)

Definition at line 2373 of file ASTReaderDecl.cpp.

References VisitDecl().

◆ VisitFriendTemplateDecl()

void ASTDeclReader::VisitFriendTemplateDecl ( FriendTemplateDecl * D)

Definition at line 2387 of file ASTReaderDecl.cpp.

References VisitDecl().

◆ VisitFunctionDecl()

void ASTDeclReader::VisitFunctionDecl ( FunctionDecl * FD)

Definition at line 917 of file ASTReaderDecl.cpp.

References clang::UnresolvedSetImpl::addDecl(), clang::C, clang::cast(), clang::Type::castAs(), clang::FunctionDecl::DefaultedOrDeletedFunctionInfo::Create(), clang::FunctionTemplateSpecializationInfo::Create(), clang::TemplateArgumentList::CreateCopy(), clang::declaresSameEntity(), clang::Decl::getAttr(), clang::Type::getContainedAutoType(), clang::NamedDecl::getDeclName(), clang::FunctionDecl::getDescribedFunctionTemplate(), clang::FunctionTemplateSpecializationInfo::getFunction(), clang::SYCLKernelInfo::getKernelEntryPointDecl(), clang::Decl::getLocation(), clang::FunctionDecl::getMemberSpecializationInfo(), clang::BitsUnpacker::getNextBit(), clang::BitsUnpacker::getNextBits(), clang::FunctionType::getReturnType(), clang::FunctionTemplateSpecializationInfo::getTemplate(), clang::FunctionDecl::getTemplatedKind(), clang::FunctionDecl::getTemplateSpecializationInfo(), clang::TypeSourceInfo::getType(), clang::DeclaratorDecl::getTypeSourceInfo(), clang::Decl::hasAttr(), clang::Decl::isCanonicalDecl(), clang::FunctionDecl::isDefaulted(), clang::FunctionDecl::isDeletedAsWritten(), clang::FunctionDecl::isExplicitlyDefaulted(), clang::DeclAccessPair::make(), 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::setInstantiatedFromMemberTemplate(), clang::FunctionDecl::setIsDestroyingOperatorDelete(), clang::FunctionDecl::setIsMultiVersion(), clang::FunctionDecl::setIsPureVirtual(), clang::FunctionDecl::setIsTypeAwareOperatorNewOrDelete(), 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::Template, 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 2592 of file ASTReaderDecl.cpp.

References ReadSpecializations(), and VisitRedeclarableTemplateDecl().

◆ VisitHLSLBufferDecl()

void ASTDeclReader::VisitHLSLBufferDecl ( HLSLBufferDecl * D)

Definition at line 1882 of file ASTReaderDecl.cpp.

References VisitDeclContext(), and VisitNamedDecl().

◆ VisitImplicitConceptSpecializationDecl()

void ASTDeclReader::VisitImplicitConceptSpecializationDecl ( ImplicitConceptSpecializationDecl * D)

◆ VisitImplicitParamDecl()

void ASTDeclReader::VisitImplicitParamDecl ( ImplicitParamDecl * PD)

Definition at line 1723 of file ASTReaderDecl.cpp.

References VisitVarDecl().

◆ VisitImportDecl()

void ASTDeclReader::VisitImportDecl ( ImportDecl * D)

Definition at line 2358 of file ASTReaderDecl.cpp.

References VisitDecl().

◆ VisitIndirectFieldDecl()

void ASTDeclReader::VisitIndirectFieldDecl ( IndirectFieldDecl * FD)

Definition at line 1598 of file ASTReaderDecl.cpp.

References mergeMergeable(), and VisitValueDecl().

◆ VisitLabelDecl()

void ASTDeclReader::VisitLabelDecl ( LabelDecl * LD)

Definition at line 1847 of file ASTReaderDecl.cpp.

References clang::LabelDecl::setLocStart(), and VisitNamedDecl().

◆ VisitLifetimeExtendedTemporaryDecl()

void ASTDeclReader::VisitLifetimeExtendedTemporaryDecl ( LifetimeExtendedTemporaryDecl * D)

◆ VisitLinkageSpecDecl()

◆ VisitMSGuidDecl()

◆ VisitMSPropertyDecl()

void ASTDeclReader::VisitMSPropertyDecl ( MSPropertyDecl * FD)

Definition at line 1557 of file ASTReaderDecl.cpp.

References VisitDeclaratorDecl().

◆ VisitNamedDecl()

◆ VisitNamespaceAliasDecl()

void ASTDeclReader::VisitNamespaceAliasDecl ( NamespaceAliasDecl * D)

Definition at line 1892 of file ASTReaderDecl.cpp.

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

◆ VisitNamespaceDecl()

◆ VisitNonTypeTemplateParmDecl()

◆ VisitObjCAtDefsFieldDecl()

void ASTDeclReader::VisitObjCAtDefsFieldDecl ( ObjCAtDefsFieldDecl * D)

Definition at line 1438 of file ASTReaderDecl.cpp.

References VisitFieldDecl().

◆ VisitObjCCategoryDecl()

◆ VisitObjCCategoryImplDecl()

void ASTDeclReader::VisitObjCCategoryImplDecl ( ObjCCategoryImplDecl * D)

Definition at line 1507 of file ASTReaderDecl.cpp.

References VisitObjCImplDecl().

◆ VisitObjCCompatibleAliasDecl()

void ASTDeclReader::VisitObjCCompatibleAliasDecl ( ObjCCompatibleAliasDecl * D)

◆ VisitObjCContainerDecl()

◆ VisitObjCImplDecl()

void ASTDeclReader::VisitObjCImplDecl ( ObjCImplDecl * D)

◆ VisitObjCImplementationDecl()

◆ VisitObjCInterfaceDecl()

◆ VisitObjCIvarDecl()

◆ VisitObjCMethodDecl()

◆ VisitObjCPropertyDecl()

◆ VisitObjCPropertyImplDecl()

◆ VisitObjCProtocolDecl()

void ASTDeclReader::VisitObjCProtocolDecl ( ObjCProtocolDecl * D)

◆ VisitObjCTypeParamDecl()

void ASTDeclReader::VisitObjCTypeParamDecl ( ObjCTypeParamDecl * D)

Definition at line 1213 of file ASTReaderDecl.cpp.

References VisitTypedefNameDecl().

◆ VisitOMPAllocateDecl()

void ASTDeclReader::VisitOMPAllocateDecl ( OMPAllocateDecl * D)

Definition at line 3056 of file ASTReaderDecl.cpp.

References clang::OMPDeclarativeDirective< U >::Data, and VisitDecl().

◆ VisitOMPCapturedExprDecl()

void ASTDeclReader::VisitOMPCapturedExprDecl ( OMPCapturedExprDecl * D)

Definition at line 3090 of file ASTReaderDecl.cpp.

References VisitVarDecl().

◆ VisitOMPDeclareMapperDecl()

void ASTDeclReader::VisitOMPDeclareMapperDecl ( OMPDeclareMapperDecl * D)

◆ VisitOMPDeclareReductionDecl()

◆ VisitOMPRequiresDecl()

void ASTDeclReader::VisitOMPRequiresDecl ( OMPRequiresDecl * D)

Definition at line 3061 of file ASTReaderDecl.cpp.

References clang::OMPDeclarativeDirective< U >::Data, and VisitDecl().

◆ VisitOMPThreadPrivateDecl()

void ASTDeclReader::VisitOMPThreadPrivateDecl ( OMPThreadPrivateDecl * D)

Definition at line 3051 of file ASTReaderDecl.cpp.

References clang::OMPDeclarativeDirective< U >::Data, and VisitDecl().

◆ VisitOpenACCDeclareDecl()

void ASTDeclReader::VisitOpenACCDeclareDecl ( OpenACCDeclareDecl * D)

Definition at line 3094 of file ASTReaderDecl.cpp.

References VisitDecl().

◆ VisitOpenACCRoutineDecl()

void ASTDeclReader::VisitOpenACCRoutineDecl ( OpenACCRoutineDecl * D)

Definition at line 3101 of file ASTReaderDecl.cpp.

References VisitDecl().

◆ VisitOutlinedFunctionDecl()

◆ VisitParmVarDecl()

◆ VisitPragmaCommentDecl()

void ASTDeclReader::VisitPragmaCommentDecl ( PragmaCommentDecl * D)

Definition at line 666 of file ASTReaderDecl.cpp.

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

◆ VisitPragmaDetectMismatchDecl()

void ASTDeclReader::VisitPragmaDetectMismatchDecl ( PragmaDetectMismatchDecl * D)

Definition at line 675 of file ASTReaderDecl.cpp.

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

◆ VisitRecordDecl()

◆ VisitRecordDeclImpl()

◆ VisitRedeclarable()

◆ VisitRedeclarableTemplateDecl()

◆ VisitRequiresExprBodyDecl()

void ASTDeclReader::VisitRequiresExprBodyDecl ( RequiresExprBodyDecl * D)

Definition at line 2426 of file ASTReaderDecl.cpp.

◆ VisitStaticAssertDecl()

void ASTDeclReader::VisitStaticAssertDecl ( StaticAssertDecl * D)

Definition at line 2759 of file ASTReaderDecl.cpp.

References VisitDecl().

◆ VisitTagDecl()

◆ VisitTemplateDecl()

◆ VisitTemplateParamObjectDecl()

void ASTDeclReader::VisitTemplateParamObjectDecl ( TemplateParamObjectDecl * D)

◆ VisitTemplateTemplateParmDecl()

◆ VisitTemplateTypeParmDecl()

◆ VisitTopLevelStmtDecl()

void ASTDeclReader::VisitTopLevelStmtDecl ( TopLevelStmtDecl * D)

Definition at line 1775 of file ASTReaderDecl.cpp.

References VisitDecl().

◆ VisitTranslationUnitDecl()

void ASTDeclReader::VisitTranslationUnitDecl ( TranslationUnitDecl * TU)

Definition at line 688 of file ASTReaderDecl.cpp.

◆ VisitTypeAliasDecl()

void ASTDeclReader::VisitTypeAliasDecl ( TypeAliasDecl * TD)

◆ VisitTypeAliasTemplateDecl()

void ASTDeclReader::VisitTypeAliasTemplateDecl ( TypeAliasTemplateDecl * D)

◆ VisitTypeDecl()

◆ VisitTypedefDecl()

void ASTDeclReader::VisitTypedefDecl ( TypedefDecl * TD)

Definition at line 723 of file ASTReaderDecl.cpp.

References mergeRedeclarable(), and VisitTypedefNameDecl().

◆ VisitTypedefNameDecl()

◆ VisitUnnamedGlobalConstantDecl()

void ASTDeclReader::VisitUnnamedGlobalConstantDecl ( UnnamedGlobalConstantDecl * D)

Definition at line 1576 of file ASTReaderDecl.cpp.

References clang::Decl::getCanonicalDecl(), and VisitValueDecl().

◆ VisitUnresolvedUsingIfExistsDecl()

void ASTDeclReader::VisitUnresolvedUsingIfExistsDecl ( UnresolvedUsingIfExistsDecl * D)

Definition at line 1981 of file ASTReaderDecl.cpp.

References VisitNamedDecl().

◆ VisitUnresolvedUsingTypenameDecl()

void ASTDeclReader::VisitUnresolvedUsingTypenameDecl ( UnresolvedUsingTypenameDecl * D)

Definition at line 1972 of file ASTReaderDecl.cpp.

References mergeMergeable(), and VisitTypeDecl().

◆ VisitUnresolvedUsingValueDecl()

void ASTDeclReader::VisitUnresolvedUsingValueDecl ( UnresolvedUsingValueDecl * D)

◆ VisitUsingDecl()

◆ VisitUsingDirectiveDecl()

void ASTDeclReader::VisitUsingDirectiveDecl ( UsingDirectiveDecl * D)

Definition at line 1954 of file ASTReaderDecl.cpp.

References VisitNamedDecl().

◆ VisitUsingEnumDecl()

◆ VisitUsingPackDecl()

void ASTDeclReader::VisitUsingPackDecl ( UsingPackDecl * D)

Definition at line 1925 of file ASTReaderDecl.cpp.

References mergeMergeable(), and VisitNamedDecl().

◆ VisitUsingShadowDecl()

void ASTDeclReader::VisitUsingShadowDecl ( UsingShadowDecl * D)

◆ VisitValueDecl()

◆ VisitVarDecl()

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

◆ VisitVarDeclImpl()

◆ VisitVarTemplateDecl()

void ASTDeclReader::VisitVarTemplateDecl ( VarTemplateDecl * D)

TODO: Unify with ClassTemplateDecl version?

May require unifying ClassTemplateDecl and VarTemplateDecl beyond TemplateDecl...

Definition at line 2489 of file ASTReaderDecl.cpp.

References 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 2673 of file ASTReaderDecl.cpp.

References VisitVarTemplateSpecializationDeclImpl().

◆ VisitVarTemplateSpecializationDecl()

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

Definition at line 351 of file ASTReaderDecl.cpp.

References 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 2606 of file ASTReaderDecl.cpp.

References clang::C, clang::cast(), clang::TemplateArgumentList::CreateCopy(), clang::ExplicitInstantiationInfo::ExternKeywordLoc, clang::Decl::isCanonicalDecl(), clang::VarTemplateSpecializationDecl::setTemplateArgsAsWritten(), and VisitVarDeclImpl().

Referenced by VisitVarTemplatePartialSpecializationDecl(), and VisitVarTemplateSpecializationDecl().


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