clang 20.0.0git
|
Definition at line 35 of file ASTWriterDecl.cpp.
|
inline |
Definition at line 46 of file ASTWriterDecl.cpp.
Add to the record the first declaration from each module file that provides a declaration of D.
The intent is to provide a sufficient set such that reloading this set will load all current redeclarations.
Definition at line 184 of file ASTWriterDecl.cpp.
References D, clang::Decl::getMostRecentDecl(), clang::ASTReader::getOwningModuleFile(), and clang::Decl::getPreviousDecl().
Referenced by AddTemplateSpecializations(), and VisitRedeclarable().
|
inline |
Add an Objective-C type parameter list to the given record.
Definition at line 166 of file ASTWriterDecl.cpp.
References clang::ObjCTypeParamList::getLAngleLoc(), clang::ObjCTypeParamList::getRAngleLoc(), and clang::ObjCTypeParamList::size().
Referenced by VisitObjCCategoryDecl(), and VisitObjCInterfaceDecl().
|
inline |
Definition at line 214 of file ASTWriterDecl.cpp.
References AddFirstDeclFromEachModule(), D, clang::ASTContext::getExternalSource(), getPartialSpecializations(), getSpecializationDecl(), and clang::Decl::isCanonicalDecl().
Referenced by VisitClassTemplateDecl(), VisitFunctionTemplateDecl(), and VisitVarTemplateDecl().
|
inline |
Definition at line 52 of file ASTWriterDecl.cpp.
References D, and clang::Decl::getDeclKindName().
|
inline |
Definition at line 209 of file ASTWriterDecl.cpp.
|
inline |
Get the list of partial specializations from a template's common ptr.
Definition at line 206 of file ASTWriterDecl.cpp.
Referenced by AddTemplateSpecializations().
|
inline |
Get the specialization decl from an entry in the specialization list.
Definition at line 200 of file ASTWriterDecl.cpp.
References clang::RedeclarableTemplateDecl::SpecEntryTraits< EntryType >::getDecl(), and clang::T.
Referenced by AddTemplateSpecializations().
|
inline |
Ensure that this template specialization is associated with the specified template on reload.
Definition at line 256 of file ASTWriterDecl.cpp.
References clang::Decl::getCanonicalDecl(), clang::ASTWriter::getFirstLocalDecl(), clang::Decl::isFromASTFile(), clang::Specialization, and clang::serialization::UPD_CXX_ADDED_TEMPLATE_SPECIALIZATION.
Referenced by VisitClassTemplateSpecializationDecl(), VisitFunctionDecl(), and VisitVarTemplateSpecializationDecl().
void ASTDeclWriter::Visit | ( | Decl * | D | ) |
Definition at line 306 of file ASTWriterDecl.cpp.
References clang::CanElideDeclDef(), D, clang::Init, clang::declvisitor::Base< Ptr, ImplClass, RetTy >::Visit(), and VisitDeclContext().
void ASTDeclWriter::VisitAccessSpecDecl | ( | AccessSpecDecl * | D | ) |
Definition at line 1641 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_ACCESS_SPEC, and VisitDecl().
void ASTDeclWriter::VisitBindingDecl | ( | BindingDecl * | D | ) |
Definition at line 1266 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_BINDING, and VisitValueDecl().
void ASTDeclWriter::VisitBlockDecl | ( | BlockDecl * | D | ) |
Definition at line 1301 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_BLOCK, clang::Decl::getBody(), P, and VisitDecl().
void ASTDeclWriter::VisitCapturedDecl | ( | CapturedDecl * | D | ) |
Definition at line 1330 of file ASTWriterDecl.cpp.
References clang::serialization::DECL_CAPTURED, clang::CapturedDecl::getContextParamPosition(), clang::CapturedDecl::getNumParams(), clang::CapturedDecl::getParam(), clang::CapturedDecl::isNothrow(), and VisitDecl().
void ASTDeclWriter::VisitClassTemplateDecl | ( | ClassTemplateDecl * | D | ) |
Definition at line 1723 of file ASTWriterDecl.cpp.
References AddTemplateSpecializations(), D, clang::serialization::DECL_CLASS_TEMPLATE, clang::ASTContext::DeclarationNames, clang::DeclarationNameTable::getCXXDeductionGuideName(), clang::Decl::getDeclContext(), clang::ASTWriter::GetDeclRef(), clang::Decl::isFirstDecl(), clang::ASTWriter::isGeneratingReducedBMI(), clang::DeclContext::noload_lookup(), and VisitRedeclarableTemplateDecl().
void ASTDeclWriter::VisitClassTemplatePartialSpecializationDecl | ( | ClassTemplatePartialSpecializationDecl * | D | ) |
Definition at line 1785 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_CLASS_TEMPLATE_PARTIAL_SPECIALIZATION, clang::Decl::getPreviousDecl(), and VisitClassTemplateSpecializationDecl().
void ASTDeclWriter::VisitClassTemplateSpecializationDecl | ( | ClassTemplateSpecializationDecl * | D | ) |
Definition at line 1740 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_CLASS_TEMPLATE_SPECIALIZATION, clang::Decl::getCanonicalDecl(), clang::Decl::isCanonicalDecl(), RegisterTemplateSpecialization(), clang::TSK_ExplicitInstantiationDeclaration, clang::TSK_ExplicitInstantiationDefinition, and VisitCXXRecordDecl().
Referenced by VisitClassTemplatePartialSpecializationDecl().
void ASTDeclWriter::VisitConceptDecl | ( | ConceptDecl * | D | ) |
Definition at line 1688 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_CONCEPT, and VisitTemplateDecl().
void ASTDeclWriter::VisitConstructorUsingShadowDecl | ( | ConstructorUsingShadowDecl * | D | ) |
Definition at line 1454 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_CONSTRUCTOR_USING_SHADOW, and VisitUsingShadowDecl().
void ASTDeclWriter::VisitCXXConstructorDecl | ( | CXXConstructorDecl * | D | ) |
Definition at line 1591 of file ASTWriterDecl.cpp.
References addExplicitSpecifier(), D, clang::serialization::DECL_CXX_CONSTRUCTOR, and VisitCXXMethodDecl().
void ASTDeclWriter::VisitCXXConversionDecl | ( | CXXConversionDecl * | D | ) |
Definition at line 1617 of file ASTWriterDecl.cpp.
References addExplicitSpecifier(), D, clang::serialization::DECL_CXX_CONVERSION, and VisitCXXMethodDecl().
void ASTDeclWriter::VisitCXXDeductionGuideDecl | ( | CXXDeductionGuideDecl * | D | ) |
Definition at line 780 of file ASTWriterDecl.cpp.
References addExplicitSpecifier(), D, clang::serialization::DECL_CXX_DEDUCTION_GUIDE, and VisitFunctionDecl().
void ASTDeclWriter::VisitCXXDestructorDecl | ( | CXXDestructorDecl * | D | ) |
Definition at line 1607 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_CXX_DESTRUCTOR, and VisitCXXMethodDecl().
void ASTDeclWriter::VisitCXXMethodDecl | ( | CXXMethodDecl * | D | ) |
Definition at line 1546 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_CXX_METHOD, clang::TemplateArgumentList::get(), clang::Decl::getDeclContext(), clang::ASTWriter::getDeclCXXMethodAbbrev(), clang::TemplateArgument::getKind(), clang::Decl::getLexicalDeclContext(), clang::FunctionTemplateSpecializationInfo::getMemberSpecializationInfo(), clang::Decl::getMostRecentDecl(), clang::Decl::hasAttrs(), clang::DeclarationName::Identifier, clang::Decl::isCanonicalDecl(), clang::Decl::isInvalidDecl(), clang::Decl::isTopLevelDeclInObjCContainer(), clang::TemplateArgumentList::size(), clang::FunctionTemplateSpecializationInfo::TemplateArguments, clang::FunctionTemplateSpecializationInfo::TemplateArgumentsAsWritten, clang::DependentFunctionTemplateSpecializationInfo::TemplateArgumentsAsWritten, clang::FunctionDecl::TK_DependentFunctionTemplateSpecialization, clang::FunctionDecl::TK_DependentNonTemplate, clang::FunctionDecl::TK_FunctionTemplate, clang::FunctionDecl::TK_FunctionTemplateSpecialization, clang::FunctionDecl::TK_MemberSpecialization, clang::FunctionDecl::TK_NonTemplate, clang::TemplateArgument::Type, and VisitFunctionDecl().
Referenced by VisitCXXConstructorDecl(), VisitCXXConversionDecl(), and VisitCXXDestructorDecl().
void ASTDeclWriter::VisitCXXRecordDecl | ( | CXXRecordDecl * | D | ) |
Definition at line 1497 of file ASTWriterDecl.cpp.
References clang::ASTWriter::AddDeclRef(), D, clang::serialization::DECL_CXX_RECORD, clang::ASTContext::getCurrentKeyFunction(), clang::Decl::isInNamedModule(), and VisitRecordDecl().
Referenced by VisitClassTemplateSpecializationDecl().
void ASTDeclWriter::VisitDecl | ( | Decl * | D | ) |
Definition at line 361 of file ASTWriterDecl.cpp.
References clang::BitsPacker::addBit(), clang::BitsPacker::addBits(), D, clang::Decl::getAccess(), clang::Decl::getAttrs(), clang::Decl::getDeclContext(), clang::Decl::getLexicalDeclContext(), clang::Decl::getModuleOwnershipKind(), clang::Decl::getOwningModule(), clang::Decl::hasAttrs(), clang::Decl::isImplicit(), clang::Decl::isInvalidDecl(), clang::Decl::isOutOfLine(), clang::Decl::isReferenced(), clang::Decl::isTopLevelDeclInObjCContainer(), and clang::Decl::isUsed().
Referenced by VisitAccessSpecDecl(), VisitBlockDecl(), VisitCapturedDecl(), VisitEmptyDecl(), VisitExportDecl(), VisitFileScopeAsmDecl(), VisitFriendDecl(), VisitFriendTemplateDecl(), VisitImplicitConceptSpecializationDecl(), VisitImportDecl(), VisitLifetimeExtendedTemporaryDecl(), VisitLinkageSpecDecl(), VisitNamedDecl(), VisitObjCPropertyImplDecl(), VisitOMPAllocateDecl(), VisitOMPRequiresDecl(), VisitOMPThreadPrivateDecl(), VisitPragmaCommentDecl(), VisitPragmaDetectMismatchDecl(), VisitStaticAssertDecl(), and VisitTopLevelStmtDecl().
void ASTDeclWriter::VisitDeclaratorDecl | ( | DeclaratorDecl * | D | ) |
Definition at line 614 of file ASTWriterDecl.cpp.
References D, and VisitValueDecl().
Referenced by VisitFieldDecl(), VisitFunctionDecl(), VisitMSPropertyDecl(), VisitNonTypeTemplateParmDecl(), and VisitVarDecl().
void ASTDeclWriter::VisitDeclContext | ( | DeclContext * | DC | ) |
Emit the DeclContext part of a declaration context decl.
Definition at line 1992 of file ASTWriterDecl.cpp.
References clang::ASTWriter::isGeneratingReducedBMI().
Referenced by Visit(), and VisitHLSLBufferDecl().
void ASTDeclWriter::VisitDecompositionDecl | ( | DecompositionDecl * | D | ) |
Definition at line 1256 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_DECOMPOSITION, and VisitVarDecl().
void ASTDeclWriter::VisitEmptyDecl | ( | EmptyDecl * | D | ) |
Definition at line 1285 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_EMPTY, and VisitDecl().
void ASTDeclWriter::VisitEnumConstantDecl | ( | EnumConstantDecl * | D | ) |
Definition at line 604 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_ENUM_CONSTANT, and VisitValueDecl().
void ASTDeclWriter::VisitEnumDecl | ( | EnumDecl * | D | ) |
Definition at line 516 of file ASTWriterDecl.cpp.
References clang::BitsPacker::addBit(), clang::BitsPacker::addBits(), clang::CXXRecordDecl::classofKind(), D, clang::serialization::DECL_ENUM, clang::Decl::getDeclContext(), clang::ASTWriter::getDeclEnumAbbrev(), clang::Decl::getKind(), clang::Decl::getLexicalDeclContext(), clang::Decl::getMostRecentDecl(), clang::Decl::hasAttrs(), clang::DeclarationName::Identifier, clang::Decl::isImplicit(), clang::Decl::isInvalidDecl(), clang::Decl::isTopLevelDeclInObjCContainer(), clang::serialization::needsAnonymousDeclarationNumber(), and VisitTagDecl().
void ASTDeclWriter::VisitExportDecl | ( | ExportDecl * | D | ) |
Definition at line 1353 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_EXPORT, and VisitDecl().
void ASTDeclWriter::VisitFieldDecl | ( | FieldDecl * | D | ) |
Definition at line 1031 of file ASTWriterDecl.cpp.
References clang::ObjCIvarDecl::classofKind(), clang::ObjCAtDefsFieldDecl::classofKind(), D, clang::serialization::DECL_FIELD, clang::Decl::getDeclContext(), clang::ASTWriter::getDeclFieldAbbrev(), clang::ASTContext::getInstantiatedFromUnnamedFieldDecl(), clang::Decl::getKind(), clang::Decl::getLexicalDeclContext(), clang::Decl::hasAttrs(), clang::Decl::isImplicit(), clang::Decl::isInvalidDecl(), clang::Decl::isModulePrivate(), clang::Decl::isReferenced(), clang::Decl::isTopLevelDeclInObjCContainer(), clang::Decl::isUsed(), and VisitDeclaratorDecl().
Referenced by VisitObjCAtDefsFieldDecl(), and VisitObjCIvarDecl().
void ASTDeclWriter::VisitFileScopeAsmDecl | ( | FileScopeAsmDecl * | D | ) |
Definition at line 1272 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_FILE_SCOPE_ASM, and VisitDecl().
void ASTDeclWriter::VisitFriendDecl | ( | FriendDecl * | D | ) |
Definition at line 1647 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_FRIEND, and VisitDecl().
void ASTDeclWriter::VisitFriendTemplateDecl | ( | FriendTemplateDecl * | D | ) |
Definition at line 1667 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_FRIEND_TEMPLATE, and VisitDecl().
void ASTDeclWriter::VisitFunctionDecl | ( | FunctionDecl * | D | ) |
Definition at line 628 of file ASTWriterDecl.cpp.
References clang::BitsPacker::addBit(), clang::BitsPacker::addBits(), D, clang::serialization::DECL_FUNCTION, clang::DependentFunctionTemplateSpecializationInfo::getCandidates(), clang::FunctionTemplateDecl::getCanonicalDecl(), clang::Decl::getEndLoc(), clang::Decl::getIdentifierNamespace(), clang::MemberSpecializationInfo::getInstantiatedFrom(), clang::FunctionTemplateSpecializationInfo::getMemberSpecializationInfo(), clang::FunctionTemplateSpecializationInfo::getPointOfInstantiation(), clang::MemberSpecializationInfo::getPointOfInstantiation(), clang::FunctionTemplateSpecializationInfo::getTemplate(), clang::FunctionTemplateSpecializationInfo::getTemplateSpecializationKind(), clang::MemberSpecializationInfo::getTemplateSpecializationKind(), clang::Decl::isCanonicalDecl(), P, RegisterTemplateSpecialization(), clang::FunctionTemplateSpecializationInfo::TemplateArguments, clang::FunctionTemplateSpecializationInfo::TemplateArgumentsAsWritten, clang::DependentFunctionTemplateSpecializationInfo::TemplateArgumentsAsWritten, 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().
void ASTDeclWriter::VisitFunctionTemplateDecl | ( | FunctionTemplateDecl * | D | ) |
Definition at line 1869 of file ASTWriterDecl.cpp.
References AddTemplateSpecializations(), D, clang::serialization::DECL_FUNCTION_TEMPLATE, clang::Decl::isFirstDecl(), and VisitRedeclarableTemplateDecl().
void ASTDeclWriter::VisitHLSLBufferDecl | ( | HLSLBufferDecl * | D | ) |
Definition at line 2091 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_HLSL_BUFFER, VisitDeclContext(), and VisitNamedDecl().
void ASTDeclWriter::VisitImplicitConceptSpecializationDecl | ( | ImplicitConceptSpecializationDecl * | D | ) |
Definition at line 1694 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_IMPLICIT_CONCEPT_SPECIALIZATION, and VisitDecl().
void ASTDeclWriter::VisitImplicitParamDecl | ( | ImplicitParamDecl * | D | ) |
Definition at line 1204 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_IMPLICIT_PARAM, and VisitVarDecl().
void ASTDeclWriter::VisitImportDecl | ( | ImportDecl * | D | ) |
Definition at line 1623 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_IMPORT, clang::Decl::getEndLoc(), and VisitDecl().
void ASTDeclWriter::VisitIndirectFieldDecl | ( | IndirectFieldDecl * | D | ) |
Definition at line 1094 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_INDIRECTFIELD, P, and VisitValueDecl().
void ASTDeclWriter::VisitLabelDecl | ( | LabelDecl * | LD | ) |
Definition at line 1359 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_LABEL, clang::Decl::getBeginLoc(), and VisitNamedDecl().
void ASTDeclWriter::VisitLifetimeExtendedTemporaryDecl | ( | LifetimeExtendedTemporaryDecl * | D | ) |
Definition at line 1290 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_LIFETIME_EXTENDED_TEMPORARY, and VisitDecl().
void ASTDeclWriter::VisitLinkageSpecDecl | ( | LinkageSpecDecl * | D | ) |
Definition at line 1341 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_LINKAGE_SPEC, and VisitDecl().
void ASTDeclWriter::VisitMSGuidDecl | ( | MSGuidDecl * | D | ) |
Definition at line 1071 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_MS_GUID, clang::MSGuidDeclParts::Part1, clang::MSGuidDeclParts::Part2, clang::MSGuidDeclParts::Part3, clang::MSGuidDeclParts::Part4And5, and VisitValueDecl().
void ASTDeclWriter::VisitMSPropertyDecl | ( | MSPropertyDecl * | D | ) |
Definition at line 1064 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_MS_PROPERTY, and VisitDeclaratorDecl().
void ASTDeclWriter::VisitNamedDecl | ( | NamedDecl * | D | ) |
Definition at line 440 of file ASTWriterDecl.cpp.
References D, clang::ASTWriter::getAnonymousDeclarationNumber(), clang::serialization::needsAnonymousDeclarationNumber(), and VisitDecl().
Referenced by VisitHLSLBufferDecl(), VisitLabelDecl(), VisitNamespaceAliasDecl(), VisitNamespaceDecl(), VisitObjCCompatibleAliasDecl(), VisitObjCContainerDecl(), VisitObjCMethodDecl(), VisitObjCPropertyDecl(), VisitTemplateDecl(), VisitTypeDecl(), VisitUnresolvedUsingIfExistsDecl(), VisitUsingDecl(), VisitUsingDirectiveDecl(), VisitUsingEnumDecl(), VisitUsingPackDecl(), VisitUsingShadowDecl(), and VisitValueDecl().
void ASTDeclWriter::VisitNamespaceAliasDecl | ( | NamespaceAliasDecl * | D | ) |
Definition at line 1397 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_NAMESPACE_ALIAS, VisitNamedDecl(), and VisitRedeclarable().
void ASTDeclWriter::VisitNamespaceDecl | ( | NamespaceDecl * | D | ) |
Definition at line 1366 of file ASTWriterDecl.cpp.
References clang::BitsPacker::addBit(), D, clang::serialization::DECL_NAMESPACE, clang::Decl::getBeginLoc(), clang::Decl::getMostRecentDecl(), clang::ASTWriter::hasChain(), clang::Decl::isFirstDecl(), Parent, clang::serialization::UPD_CXX_ADDED_ANONYMOUS_NAMESPACE, VisitNamedDecl(), and VisitRedeclarable().
void ASTDeclWriter::VisitNonTypeTemplateParmDecl | ( | NonTypeTemplateParmDecl * | D | ) |
Definition at line 1912 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_EXPANDED_NON_TYPE_TEMPLATE_PARM_PACK, clang::serialization::DECL_NON_TYPE_TEMPLATE_PARM, clang::Decl::isParameterPack(), and VisitDeclaratorDecl().
void ASTDeclWriter::VisitObjCAtDefsFieldDecl | ( | ObjCAtDefsFieldDecl * | D | ) |
Definition at line 944 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_OBJC_AT_DEFS_FIELD, and VisitFieldDecl().
void ASTDeclWriter::VisitObjCCategoryDecl | ( | ObjCCategoryDecl * | D | ) |
Definition at line 949 of file ASTWriterDecl.cpp.
References AddObjCTypeParamList(), D, clang::serialization::DECL_OBJC_CATEGORY, and VisitObjCContainerDecl().
void ASTDeclWriter::VisitObjCCategoryImplDecl | ( | ObjCCategoryImplDecl * | D | ) |
Definition at line 997 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_OBJC_CATEGORY_IMPL, and VisitObjCImplDecl().
void ASTDeclWriter::VisitObjCCompatibleAliasDecl | ( | ObjCCompatibleAliasDecl * | D | ) |
Definition at line 964 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_OBJC_COMPATIBLE_ALIAS, and VisitNamedDecl().
void ASTDeclWriter::VisitObjCContainerDecl | ( | ObjCContainerDecl * | D | ) |
Definition at line 850 of file ASTWriterDecl.cpp.
References D, and VisitNamedDecl().
Referenced by VisitObjCCategoryDecl(), VisitObjCImplDecl(), VisitObjCInterfaceDecl(), and VisitObjCProtocolDecl().
void ASTDeclWriter::VisitObjCImplDecl | ( | ObjCImplDecl * | D | ) |
Definition at line 991 of file ASTWriterDecl.cpp.
References D, and VisitObjCContainerDecl().
Referenced by VisitObjCCategoryImplDecl(), and VisitObjCImplementationDecl().
void ASTDeclWriter::VisitObjCImplementationDecl | ( | ObjCImplementationDecl * | D | ) |
Definition at line 1003 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_OBJC_IMPLEMENTATION, and VisitObjCImplDecl().
void ASTDeclWriter::VisitObjCInterfaceDecl | ( | ObjCInterfaceDecl * | D | ) |
Definition at line 861 of file ASTWriterDecl.cpp.
References AddObjCTypeParamList(), D, clang::Data, clang::serialization::DECL_OBJC_INTERFACE, clang::ASTWriter::GetDeclRef(), P, VisitObjCContainerDecl(), and VisitRedeclarable().
void ASTDeclWriter::VisitObjCIvarDecl | ( | ObjCIvarDecl * | D | ) |
Definition at line 906 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_OBJC_IVAR, clang::Decl::getDeclContext(), clang::ASTWriter::getDeclObjCIvarAbbrev(), clang::Decl::getLexicalDeclContext(), clang::Decl::hasAttrs(), clang::Decl::isImplicit(), clang::Decl::isInvalidDecl(), clang::Decl::isModulePrivate(), clang::Decl::isReferenced(), clang::Decl::isUsed(), and VisitFieldDecl().
void ASTDeclWriter::VisitObjCMethodDecl | ( | ObjCMethodDecl * | D | ) |
Definition at line 788 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_OBJC_METHOD, clang::Decl::getBody(), clang::Decl::getEndLoc(), clang::ASTContext::getObjCMethodRedeclaration(), P, and VisitNamedDecl().
void ASTDeclWriter::VisitObjCPropertyDecl | ( | ObjCPropertyDecl * | D | ) |
Definition at line 970 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_OBJC_PROPERTY, and VisitNamedDecl().
void ASTDeclWriter::VisitObjCPropertyImplDecl | ( | ObjCPropertyImplDecl * | D | ) |
Definition at line 1018 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_OBJC_PROPERTY_IMPL, clang::Decl::getBeginLoc(), and VisitDecl().
void ASTDeclWriter::VisitObjCProtocolDecl | ( | ObjCProtocolDecl * | D | ) |
Definition at line 927 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_OBJC_PROTOCOL, VisitObjCContainerDecl(), and VisitRedeclarable().
void ASTDeclWriter::VisitObjCTypeParamDecl | ( | ObjCTypeParamDecl * | D | ) |
Definition at line 840 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_OBJC_TYPE_PARAM, and VisitTypedefNameDecl().
void ASTDeclWriter::VisitOMPAllocateDecl | ( | OMPAllocateDecl * | D | ) |
Definition at line 2108 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_OMP_ALLOCATE, and VisitDecl().
void ASTDeclWriter::VisitOMPCapturedExprDecl | ( | OMPCapturedExprDecl * | D | ) |
Definition at line 2146 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_OMP_CAPTUREDEXPR, and VisitVarDecl().
void ASTDeclWriter::VisitOMPDeclareMapperDecl | ( | OMPDeclareMapperDecl * | D | ) |
Definition at line 2138 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_OMP_DECLARE_MAPPER, and VisitValueDecl().
void ASTDeclWriter::VisitOMPDeclareReductionDecl | ( | OMPDeclareReductionDecl * | D | ) |
Definition at line 2120 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_OMP_DECLARE_REDUCTION, clang::Decl::getBeginLoc(), and VisitValueDecl().
void ASTDeclWriter::VisitOMPRequiresDecl | ( | OMPRequiresDecl * | D | ) |
Definition at line 2114 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_OMP_REQUIRES, and VisitDecl().
void ASTDeclWriter::VisitOMPThreadPrivateDecl | ( | OMPThreadPrivateDecl * | D | ) |
Definition at line 2102 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_OMP_THREADPRIVATE, and VisitDecl().
void ASTDeclWriter::VisitParmVarDecl | ( | ParmVarDecl * | D | ) |
Definition at line 1209 of file ASTWriterDecl.cpp.
References clang::BitsPacker::addBit(), clang::BitsPacker::addBits(), clang::AS_none, clang::VarDecl::CInit, D, clang::serialization::DECL_PARM_VAR, clang::Decl::getAccess(), clang::Decl::getDeclContext(), clang::ASTWriter::getDeclParmVarAbbrev(), clang::Decl::getLexicalDeclContext(), clang::Decl::getPreviousDecl(), clang::Decl::hasAttrs(), clang::Decl::isInvalidDecl(), clang::Decl::isTopLevelDeclInObjCContainer(), and VisitVarDecl().
void ASTDeclWriter::VisitPragmaCommentDecl | ( | PragmaCommentDecl * | D | ) |
Definition at line 414 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_PRAGMA_COMMENT, clang::Decl::getBeginLoc(), and VisitDecl().
void ASTDeclWriter::VisitPragmaDetectMismatchDecl | ( | PragmaDetectMismatchDecl * | D | ) |
Definition at line 424 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_PRAGMA_DETECT_MISMATCH, clang::Decl::getBeginLoc(), and VisitDecl().
void ASTDeclWriter::VisitRecordDecl | ( | RecordDecl * | D | ) |
Definition at line 559 of file ASTWriterDecl.cpp.
References clang::BitsPacker::addBit(), clang::BitsPacker::addBits(), clang::CXXRecordDecl::classofKind(), D, clang::serialization::DECL_RECORD, clang::Decl::getDeclContext(), clang::ASTWriter::getDeclRecordAbbrev(), clang::Decl::getKind(), clang::Decl::getLexicalDeclContext(), clang::Decl::getMostRecentDecl(), clang::Decl::hasAttrs(), clang::DeclarationName::Identifier, clang::Decl::isImplicit(), clang::Decl::isInvalidDecl(), clang::Decl::isTopLevelDeclInObjCContainer(), clang::serialization::needsAnonymousDeclarationNumber(), and VisitTagDecl().
Referenced by VisitCXXRecordDecl().
void ASTDeclWriter::VisitRedeclarable | ( | Redeclarable< T > * | D | ) |
Definition at line 2033 of file ASTWriterDecl.cpp.
References clang::ASTRecordWriter::AddDeclRef(), AddFirstDeclFromEachModule(), D, clang::ASTRecordWriter::Emit(), clang::First, clang::ASTWriter::GetDeclRef(), clang::ASTWriter::getFirstLocalDecl(), clang::Decl::getMostRecentDecl(), clang::Decl::getPreviousDecl(), clang::serialization::isRedeclarableDeclKind(), clang::serialization::LOCAL_REDECLARATIONS, and clang::T.
Referenced by VisitFunctionDecl(), VisitNamespaceAliasDecl(), VisitNamespaceDecl(), VisitObjCInterfaceDecl(), VisitObjCProtocolDecl(), VisitRedeclarableTemplateDecl(), VisitTagDecl(), VisitTypedefNameDecl(), VisitUsingShadowDecl(), and VisitVarDecl().
void ASTDeclWriter::VisitRedeclarableTemplateDecl | ( | RedeclarableTemplateDecl * | D | ) |
Definition at line 1707 of file ASTWriterDecl.cpp.
References D, clang::Decl::getIdentifierNamespace(), clang::Decl::isFirstDecl(), VisitRedeclarable(), and VisitTemplateDecl().
Referenced by VisitClassTemplateDecl(), VisitFunctionTemplateDecl(), VisitTypeAliasTemplateDecl(), and VisitVarTemplateDecl().
void ASTDeclWriter::VisitRequiresExprBodyDecl | ( | RequiresExprBodyDecl * | D | ) |
Definition at line 1703 of file ASTWriterDecl.cpp.
References clang::serialization::DECL_REQUIRES_EXPR_BODY.
void ASTDeclWriter::VisitStaticAssertDecl | ( | StaticAssertDecl * | D | ) |
Definition at line 1982 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_STATIC_ASSERT, and VisitDecl().
void ASTDeclWriter::VisitTagDecl | ( | TagDecl * | D | ) |
Definition at line 486 of file ASTWriterDecl.cpp.
References clang::BitsPacker::addBit(), clang::BitsPacker::addBits(), D, clang::Decl::getIdentifierNamespace(), VisitRedeclarable(), and VisitTypeDecl().
Referenced by VisitEnumDecl(), and VisitRecordDecl().
void ASTDeclWriter::VisitTemplateDecl | ( | TemplateDecl * | D | ) |
Definition at line 1681 of file ASTWriterDecl.cpp.
References D, and VisitNamedDecl().
Referenced by VisitConceptDecl(), VisitRedeclarableTemplateDecl(), and VisitTemplateTemplateParmDecl().
void ASTDeclWriter::VisitTemplateParamObjectDecl | ( | TemplateParamObjectDecl * | D | ) |
Definition at line 1088 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_TEMPLATE_PARAM_OBJECT, and VisitValueDecl().
void ASTDeclWriter::VisitTemplateTemplateParmDecl | ( | TemplateTemplateParmDecl * | D | ) |
Definition at line 1947 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_EXPANDED_TEMPLATE_TEMPLATE_PARM_PACK, clang::serialization::DECL_TEMPLATE_TEMPLATE_PARM, clang::Decl::isParameterPack(), and VisitTemplateDecl().
void ASTDeclWriter::VisitTemplateTypeParmDecl | ( | TemplateTypeParmDecl * | D | ) |
Definition at line 1877 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_TEMPLATE_TYPE_PARM, clang::TypeConstraint::getConceptReference(), clang::Decl::getDeclContext(), clang::ASTWriter::getDeclTemplateTypeParmAbbrev(), clang::TypeConstraint::getImmediatelyDeclaredConstraint(), clang::Decl::getLexicalDeclContext(), clang::Decl::hasAttrs(), clang::DeclarationName::Identifier, clang::Decl::isImplicit(), clang::Decl::isInvalidDecl(), clang::Decl::isTopLevelDeclInObjCContainer(), and VisitTypeDecl().
void ASTDeclWriter::VisitTopLevelStmtDecl | ( | TopLevelStmtDecl * | D | ) |
Definition at line 1279 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_TOP_LEVEL_STMT_DECL, and VisitDecl().
void ASTDeclWriter::VisitTranslationUnitDecl | ( | TranslationUnitDecl * | D | ) |
Definition at line 436 of file ASTWriterDecl.cpp.
void ASTDeclWriter::VisitTypeAliasDecl | ( | TypeAliasDecl * | D | ) |
Definition at line 480 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_TYPEALIAS, and VisitTypedefNameDecl().
void ASTDeclWriter::VisitTypeAliasTemplateDecl | ( | TypeAliasTemplateDecl * | D | ) |
Definition at line 1977 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_TYPE_ALIAS_TEMPLATE, and VisitRedeclarableTemplateDecl().
void ASTDeclWriter::VisitTypeDecl | ( | TypeDecl * | D | ) |
Definition at line 448 of file ASTWriterDecl.cpp.
References D, clang::Decl::getBeginLoc(), and VisitNamedDecl().
Referenced by VisitTagDecl(), VisitTemplateTypeParmDecl(), VisitTypedefNameDecl(), and VisitUnresolvedUsingTypenameDecl().
void ASTDeclWriter::VisitTypedefDecl | ( | TypedefDecl * | D | ) |
Definition at line 464 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_TYPEDEF, clang::Decl::getDeclContext(), clang::ASTWriter::getDeclTypedefAbbrev(), clang::Decl::getLexicalDeclContext(), clang::Decl::getMostRecentDecl(), clang::Decl::hasAttrs(), clang::DeclarationName::Identifier, clang::Decl::isImplicit(), clang::Decl::isInvalidDecl(), clang::Decl::isModulePrivate(), clang::Decl::isTopLevelDeclInObjCContainer(), clang::serialization::needsAnonymousDeclarationNumber(), and VisitTypedefNameDecl().
void ASTDeclWriter::VisitTypedefNameDecl | ( | TypedefNameDecl * | D | ) |
Definition at line 454 of file ASTWriterDecl.cpp.
References D, VisitRedeclarable(), and VisitTypeDecl().
Referenced by VisitObjCTypeParamDecl(), VisitTypeAliasDecl(), and VisitTypedefDecl().
void ASTDeclWriter::VisitUnnamedGlobalConstantDecl | ( | UnnamedGlobalConstantDecl * | D | ) |
Definition at line 1081 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_UNNAMED_GLOBAL_CONSTANT, and VisitValueDecl().
void ASTDeclWriter::VisitUnresolvedUsingIfExistsDecl | ( | UnresolvedUsingIfExistsDecl * | D | ) |
Definition at line 1491 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_UNRESOLVED_USING_IF_EXISTS, and VisitNamedDecl().
void ASTDeclWriter::VisitUnresolvedUsingTypenameDecl | ( | UnresolvedUsingTypenameDecl * | D | ) |
Definition at line 1482 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_UNRESOLVED_USING_TYPENAME, and VisitTypeDecl().
void ASTDeclWriter::VisitUnresolvedUsingValueDecl | ( | UnresolvedUsingValueDecl * | D | ) |
Definition at line 1473 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_UNRESOLVED_USING_VALUE, and VisitValueDecl().
void ASTDeclWriter::VisitUsingDecl | ( | UsingDecl * | D | ) |
Definition at line 1407 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_USING, clang::ASTContext::getInstantiatedFromUsingDecl(), and VisitNamedDecl().
void ASTDeclWriter::VisitUsingDirectiveDecl | ( | UsingDirectiveDecl * | D | ) |
Definition at line 1463 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_USING_DIRECTIVE, and VisitNamedDecl().
void ASTDeclWriter::VisitUsingEnumDecl | ( | UsingEnumDecl * | D | ) |
Definition at line 1418 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_USING_ENUM, clang::ASTContext::getInstantiatedFromUsingEnumDecl(), and VisitNamedDecl().
void ASTDeclWriter::VisitUsingPackDecl | ( | UsingPackDecl * | D | ) |
Definition at line 1428 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_USING_PACK, E, and VisitNamedDecl().
void ASTDeclWriter::VisitUsingShadowDecl | ( | UsingShadowDecl * | D | ) |
Definition at line 1437 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_USING_SHADOW, clang::Decl::getDeclContext(), clang::ASTWriter::getDeclUsingShadowAbbrev(), clang::Decl::getIdentifierNamespace(), clang::ASTContext::getInstantiatedFromUsingShadowDecl(), clang::Decl::getLexicalDeclContext(), clang::Decl::getMostRecentDecl(), clang::Decl::hasAttrs(), clang::DeclarationName::Identifier, clang::serialization::needsAnonymousDeclarationNumber(), VisitNamedDecl(), and VisitRedeclarable().
Referenced by VisitConstructorUsingShadowDecl().
void ASTDeclWriter::VisitValueDecl | ( | ValueDecl * | D | ) |
Definition at line 599 of file ASTWriterDecl.cpp.
References D, and VisitNamedDecl().
Referenced by VisitBindingDecl(), VisitDeclaratorDecl(), VisitEnumConstantDecl(), VisitIndirectFieldDecl(), VisitMSGuidDecl(), VisitOMPDeclareMapperDecl(), VisitOMPDeclareReductionDecl(), VisitTemplateParamObjectDecl(), VisitUnnamedGlobalConstantDecl(), and VisitUnresolvedUsingValueDecl().
void ASTDeclWriter::VisitVarDecl | ( | VarDecl * | D | ) |
Definition at line 1103 of file ASTWriterDecl.cpp.
References clang::BitsPacker::addBit(), clang::BitsPacker::addBits(), clang::ASTWriter::AddDeclRef(), D, clang::serialization::DECL_VAR, clang::ASTContext::getBlockVarCopyInit(), clang::Decl::getDeclContext(), clang::ASTWriter::getDeclVarAbbrev(), clang::ASTContext::GetGVALinkageForVariable(), clang::Decl::getKind(), clang::ASTContext::getLangOpts(), clang::Decl::getLexicalDeclContext(), clang::Decl::getMostRecentDecl(), clang::GVA_StrongExternal, clang::Decl::hasAttr(), clang::Decl::hasAttrs(), clang::DeclarationName::Identifier, clang::Init, clang::Module::isInterfaceOrPartition(), clang::Decl::isTopLevelDeclInObjCContainer(), clang::serialization::needsAnonymousDeclarationNumber(), clang::SD_Static, VisitDeclaratorDecl(), and VisitRedeclarable().
Referenced by VisitDecompositionDecl(), VisitImplicitParamDecl(), VisitOMPCapturedExprDecl(), VisitParmVarDecl(), and VisitVarTemplateSpecializationDecl().
void ASTDeclWriter::VisitVarTemplateDecl | ( | VarTemplateDecl * | D | ) |
Definition at line 1800 of file ASTWriterDecl.cpp.
References AddTemplateSpecializations(), D, clang::serialization::DECL_VAR_TEMPLATE, clang::Decl::isFirstDecl(), and VisitRedeclarableTemplateDecl().
void ASTDeclWriter::VisitVarTemplatePartialSpecializationDecl | ( | VarTemplatePartialSpecializationDecl * | D | ) |
Definition at line 1854 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_VAR_TEMPLATE_PARTIAL_SPECIALIZATION, clang::Decl::getPreviousDecl(), and VisitVarTemplateSpecializationDecl().
void ASTDeclWriter::VisitVarTemplateSpecializationDecl | ( | VarTemplateSpecializationDecl * | D | ) |
Definition at line 1808 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_VAR_TEMPLATE_SPECIALIZATION, clang::Decl::getCanonicalDecl(), clang::Decl::isCanonicalDecl(), RegisterTemplateSpecialization(), clang::TSK_ExplicitInstantiationDeclaration, clang::TSK_ExplicitInstantiationDefinition, and VisitVarDecl().
Referenced by VisitVarTemplatePartialSpecializationDecl().