clang 20.0.0git
|
Definition at line 35 of file ASTWriterDecl.cpp.
|
inline |
Definition at line 45 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 198 of file ASTWriterDecl.cpp.
References CollectFirstDeclFromEachModule(), and D.
Referenced by VisitRedeclarable().
|
inline |
Add to the record the first template specialization from each module file that provides a declaration of D.
We store the DeclId and an ODRHash of the template arguments of D which should provide enough information to load D only if the template instantiator needs it.
Definition at line 210 of file ASTWriterDecl.cpp.
References CollectFirstDeclFromEachModule(), D, and clang::isa().
Referenced by AddTemplateSpecializations().
|
inline |
Add an Objective-C type parameter list to the given record.
Definition at line 165 of file ASTWriterDecl.cpp.
References clang::ObjCTypeParamList::getLAngleLoc(), clang::ObjCTypeParamList::getRAngleLoc(), and clang::ObjCTypeParamList::size().
Referenced by VisitObjCCategoryDecl(), and VisitObjCInterfaceDecl().
|
inline |
Definition at line 246 of file ASTWriterDecl.cpp.
References AddFirstSpecializationDeclFromEachModule(), D, getPartialSpecializations(), getSpecializationDecl(), clang::ASTReader::haveUnloadedSpecializations(), and clang::Decl::isCanonicalDecl().
Referenced by VisitClassTemplateDecl(), VisitFunctionTemplateDecl(), and VisitVarTemplateDecl().
|
inline |
Collect the first declaration from each module file that provides a declaration of D.
Definition at line 182 of file ASTWriterDecl.cpp.
References D, clang::Decl::getMostRecentDecl(), clang::ASTReader::getOwningModuleFile(), and clang::Decl::getPreviousDecl().
Referenced by AddFirstDeclFromEachModule(), and AddFirstSpecializationDeclFromEachModule().
|
inline |
Definition at line 51 of file ASTWriterDecl.cpp.
References D, and clang::Decl::getDeclKindName().
|
inline |
Definition at line 241 of file ASTWriterDecl.cpp.
|
inline |
Get the list of partial specializations from a template's common ptr.
Definition at line 237 of file ASTWriterDecl.cpp.
Referenced by AddTemplateSpecializations().
|
inline |
Get the specialization decl from an entry in the specialization list.
Definition at line 231 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 288 of file ASTWriterDecl.cpp.
References clang::Decl::getCanonicalDecl(), clang::ASTWriter::getFirstLocalDecl(), clang::isa(), clang::Decl::isFromASTFile(), and clang::Specialization.
Referenced by VisitClassTemplateSpecializationDecl(), VisitFunctionDecl(), and VisitVarTemplateSpecializationDecl().
void ASTDeclWriter::Visit | ( | Decl * | D | ) |
Definition at line 343 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 1697 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_ACCESS_SPEC, and VisitDecl().
void ASTDeclWriter::VisitBindingDecl | ( | BindingDecl * | D | ) |
Definition at line 1315 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_BINDING, and VisitValueDecl().
void ASTDeclWriter::VisitBlockDecl | ( | BlockDecl * | D | ) |
Definition at line 1350 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_BLOCK, clang::Decl::getBody(), P, and VisitDecl().
void ASTDeclWriter::VisitCapturedDecl | ( | CapturedDecl * | D | ) |
Definition at line 1379 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 1779 of file ASTWriterDecl.cpp.
References AddTemplateSpecializations(), D, clang::serialization::DECL_CLASS_TEMPLATE, 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 1855 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 1797 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_CLASS_TEMPLATE_SPECIALIZATION, clang::Decl::getCanonicalDecl(), clang::Decl::getDeclContext(), clang::ASTWriter::GetDeclRef(), clang::Decl::isCanonicalDecl(), clang::ASTWriter::isWritingStdCXXNamedModules(), clang::DeclContext::noload_lookup(), RegisterTemplateSpecialization(), clang::TSK_ExplicitInstantiationDeclaration, clang::TSK_ExplicitInstantiationDefinition, and VisitCXXRecordDecl().
Referenced by VisitClassTemplatePartialSpecializationDecl().
void ASTDeclWriter::VisitConceptDecl | ( | ConceptDecl * | D | ) |
Definition at line 1744 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_CONCEPT, and VisitTemplateDecl().
void ASTDeclWriter::VisitConstructorUsingShadowDecl | ( | ConstructorUsingShadowDecl * | D | ) |
Definition at line 1504 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_CONSTRUCTOR_USING_SHADOW, and VisitUsingShadowDecl().
void ASTDeclWriter::VisitCXXConstructorDecl | ( | CXXConstructorDecl * | D | ) |
Definition at line 1647 of file ASTWriterDecl.cpp.
References addExplicitSpecifier(), D, clang::serialization::DECL_CXX_CONSTRUCTOR, and VisitCXXMethodDecl().
void ASTDeclWriter::VisitCXXConversionDecl | ( | CXXConversionDecl * | D | ) |
Definition at line 1673 of file ASTWriterDecl.cpp.
References addExplicitSpecifier(), D, clang::serialization::DECL_CXX_CONVERSION, and VisitCXXMethodDecl().
void ASTDeclWriter::VisitCXXDeductionGuideDecl | ( | CXXDeductionGuideDecl * | D | ) |
Definition at line 828 of file ASTWriterDecl.cpp.
References addExplicitSpecifier(), D, clang::serialization::DECL_CXX_DEDUCTION_GUIDE, and VisitFunctionDecl().
void ASTDeclWriter::VisitCXXDestructorDecl | ( | CXXDestructorDecl * | D | ) |
Definition at line 1663 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_CXX_DESTRUCTOR, and VisitCXXMethodDecl().
void ASTDeclWriter::VisitCXXMethodDecl | ( | CXXMethodDecl * | D | ) |
Definition at line 1602 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 1547 of file ASTWriterDecl.cpp.
References clang::ASTWriter::AddDeclRef(), D, clang::serialization::DECL_CXX_RECORD, clang::Decl::getDeclContext(), clang::ASTWriter::GetDeclRef(), clang::Decl::isInNamedModule(), and VisitRecordDecl().
Referenced by VisitClassTemplateSpecializationDecl().
void ASTDeclWriter::VisitDecl | ( | Decl * | D | ) |
Definition at line 398 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 651 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 2062 of file ASTWriterDecl.cpp.
References clang::ASTWriter::isGeneratingReducedBMI().
Referenced by Visit(), and VisitHLSLBufferDecl().
void ASTDeclWriter::VisitDecompositionDecl | ( | DecompositionDecl * | D | ) |
Definition at line 1305 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_DECOMPOSITION, and VisitVarDecl().
void ASTDeclWriter::VisitEmptyDecl | ( | EmptyDecl * | D | ) |
Definition at line 1334 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_EMPTY, and VisitDecl().
void ASTDeclWriter::VisitEnumConstantDecl | ( | EnumConstantDecl * | D | ) |
Definition at line 641 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_ENUM_CONSTANT, and VisitValueDecl().
void ASTDeclWriter::VisitEnumDecl | ( | EnumDecl * | D | ) |
Definition at line 553 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 1402 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_EXPORT, and VisitDecl().
void ASTDeclWriter::VisitFieldDecl | ( | FieldDecl * | D | ) |
Definition at line 1079 of file ASTWriterDecl.cpp.
References clang::ObjCIvarDecl::classofKind(), clang::ObjCAtDefsFieldDecl::classofKind(), D, clang::serialization::DECL_FIELD, clang::Decl::getDeclContext(), clang::ASTWriter::getDeclFieldAbbrev(), clang::Decl::getKind(), clang::ASTWriter::getLangOpts(), 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 1321 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_FILE_SCOPE_ASM, and VisitDecl().
void ASTDeclWriter::VisitFriendDecl | ( | FriendDecl * | D | ) |
Definition at line 1703 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_FRIEND, and VisitDecl().
void ASTDeclWriter::VisitFriendTemplateDecl | ( | FriendTemplateDecl * | D | ) |
Definition at line 1723 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_FRIEND_TEMPLATE, and VisitDecl().
void ASTDeclWriter::VisitFunctionDecl | ( | FunctionDecl * | D | ) |
Definition at line 665 of file ASTWriterDecl.cpp.
References clang::BitsPacker::addBit(), clang::BitsPacker::addBits(), D, clang::serialization::DECL_FUNCTION, clang::DependentFunctionTemplateSpecializationInfo::getCandidates(), clang::FunctionTemplateDecl::getCanonicalDecl(), clang::ASTWriter::GetDeclRef(), clang::Decl::getEndLoc(), clang::Decl::getFriendObjectKind(), 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 1939 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 2163 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_HLSL_BUFFER, VisitDeclContext(), and VisitNamedDecl().
void ASTDeclWriter::VisitImplicitConceptSpecializationDecl | ( | ImplicitConceptSpecializationDecl * | D | ) |
Definition at line 1750 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_IMPLICIT_CONCEPT_SPECIALIZATION, and VisitDecl().
void ASTDeclWriter::VisitImplicitParamDecl | ( | ImplicitParamDecl * | D | ) |
Definition at line 1253 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_IMPLICIT_PARAM, and VisitVarDecl().
void ASTDeclWriter::VisitImportDecl | ( | ImportDecl * | D | ) |
Definition at line 1679 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_IMPORT, clang::Decl::getEndLoc(), and VisitDecl().
void ASTDeclWriter::VisitIndirectFieldDecl | ( | IndirectFieldDecl * | D | ) |
Definition at line 1143 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_INDIRECTFIELD, P, and VisitValueDecl().
void ASTDeclWriter::VisitLabelDecl | ( | LabelDecl * | LD | ) |
Definition at line 1408 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_LABEL, clang::Decl::getBeginLoc(), and VisitNamedDecl().
void ASTDeclWriter::VisitLifetimeExtendedTemporaryDecl | ( | LifetimeExtendedTemporaryDecl * | D | ) |
Definition at line 1339 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_LIFETIME_EXTENDED_TEMPORARY, and VisitDecl().
void ASTDeclWriter::VisitLinkageSpecDecl | ( | LinkageSpecDecl * | D | ) |
Definition at line 1390 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_LINKAGE_SPEC, and VisitDecl().
void ASTDeclWriter::VisitMSGuidDecl | ( | MSGuidDecl * | D | ) |
Definition at line 1120 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 1113 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_MS_PROPERTY, and VisitDeclaratorDecl().
void ASTDeclWriter::VisitNamedDecl | ( | NamedDecl * | D | ) |
Definition at line 477 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 1446 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_NAMESPACE_ALIAS, VisitNamedDecl(), and VisitRedeclarable().
void ASTDeclWriter::VisitNamespaceDecl | ( | NamespaceDecl * | D | ) |
Definition at line 1415 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 1982 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 992 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_OBJC_AT_DEFS_FIELD, and VisitFieldDecl().
void ASTDeclWriter::VisitObjCCategoryDecl | ( | ObjCCategoryDecl * | D | ) |
Definition at line 997 of file ASTWriterDecl.cpp.
References AddObjCTypeParamList(), D, clang::serialization::DECL_OBJC_CATEGORY, and VisitObjCContainerDecl().
void ASTDeclWriter::VisitObjCCategoryImplDecl | ( | ObjCCategoryImplDecl * | D | ) |
Definition at line 1045 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_OBJC_CATEGORY_IMPL, and VisitObjCImplDecl().
void ASTDeclWriter::VisitObjCCompatibleAliasDecl | ( | ObjCCompatibleAliasDecl * | D | ) |
Definition at line 1012 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_OBJC_COMPATIBLE_ALIAS, and VisitNamedDecl().
void ASTDeclWriter::VisitObjCContainerDecl | ( | ObjCContainerDecl * | D | ) |
Definition at line 898 of file ASTWriterDecl.cpp.
References D, and VisitNamedDecl().
Referenced by VisitObjCCategoryDecl(), VisitObjCImplDecl(), VisitObjCInterfaceDecl(), and VisitObjCProtocolDecl().
void ASTDeclWriter::VisitObjCImplDecl | ( | ObjCImplDecl * | D | ) |
Definition at line 1039 of file ASTWriterDecl.cpp.
References D, and VisitObjCContainerDecl().
Referenced by VisitObjCCategoryImplDecl(), and VisitObjCImplementationDecl().
void ASTDeclWriter::VisitObjCImplementationDecl | ( | ObjCImplementationDecl * | D | ) |
Definition at line 1051 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_OBJC_IMPLEMENTATION, and VisitObjCImplDecl().
void ASTDeclWriter::VisitObjCInterfaceDecl | ( | ObjCInterfaceDecl * | D | ) |
Definition at line 909 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 954 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 836 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_OBJC_METHOD, clang::Decl::getBody(), clang::Decl::getEndLoc(), P, and VisitNamedDecl().
void ASTDeclWriter::VisitObjCPropertyDecl | ( | ObjCPropertyDecl * | D | ) |
Definition at line 1018 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_OBJC_PROPERTY, and VisitNamedDecl().
void ASTDeclWriter::VisitObjCPropertyImplDecl | ( | ObjCPropertyImplDecl * | D | ) |
Definition at line 1066 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 975 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_OBJC_PROTOCOL, VisitObjCContainerDecl(), and VisitRedeclarable().
void ASTDeclWriter::VisitObjCTypeParamDecl | ( | ObjCTypeParamDecl * | D | ) |
Definition at line 888 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_OBJC_TYPE_PARAM, and VisitTypedefNameDecl().
void ASTDeclWriter::VisitOMPAllocateDecl | ( | OMPAllocateDecl * | D | ) |
Definition at line 2180 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_OMP_ALLOCATE, and VisitDecl().
void ASTDeclWriter::VisitOMPCapturedExprDecl | ( | OMPCapturedExprDecl * | D | ) |
Definition at line 2218 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_OMP_CAPTUREDEXPR, and VisitVarDecl().
void ASTDeclWriter::VisitOMPDeclareMapperDecl | ( | OMPDeclareMapperDecl * | D | ) |
Definition at line 2210 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_OMP_DECLARE_MAPPER, and VisitValueDecl().
void ASTDeclWriter::VisitOMPDeclareReductionDecl | ( | OMPDeclareReductionDecl * | D | ) |
Definition at line 2192 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 2186 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_OMP_REQUIRES, and VisitDecl().
void ASTDeclWriter::VisitOMPThreadPrivateDecl | ( | OMPThreadPrivateDecl * | D | ) |
Definition at line 2174 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_OMP_THREADPRIVATE, and VisitDecl().
void ASTDeclWriter::VisitParmVarDecl | ( | ParmVarDecl * | D | ) |
Definition at line 1258 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 451 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_PRAGMA_COMMENT, clang::Decl::getBeginLoc(), and VisitDecl().
void ASTDeclWriter::VisitPragmaDetectMismatchDecl | ( | PragmaDetectMismatchDecl * | D | ) |
Definition at line 461 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 596 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 2105 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 1763 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 1759 of file ASTWriterDecl.cpp.
References clang::serialization::DECL_REQUIRES_EXPR_BODY.
void ASTDeclWriter::VisitStaticAssertDecl | ( | StaticAssertDecl * | D | ) |
Definition at line 2052 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_STATIC_ASSERT, and VisitDecl().
void ASTDeclWriter::VisitTagDecl | ( | TagDecl * | D | ) |
Definition at line 523 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 1737 of file ASTWriterDecl.cpp.
References D, and VisitNamedDecl().
Referenced by VisitConceptDecl(), VisitRedeclarableTemplateDecl(), and VisitTemplateTemplateParmDecl().
void ASTDeclWriter::VisitTemplateParamObjectDecl | ( | TemplateParamObjectDecl * | D | ) |
Definition at line 1137 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_TEMPLATE_PARAM_OBJECT, and VisitValueDecl().
void ASTDeclWriter::VisitTemplateTemplateParmDecl | ( | TemplateTemplateParmDecl * | D | ) |
Definition at line 2017 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 1947 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 1328 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_TOP_LEVEL_STMT_DECL, and VisitDecl().
void ASTDeclWriter::VisitTranslationUnitDecl | ( | TranslationUnitDecl * | D | ) |
Definition at line 473 of file ASTWriterDecl.cpp.
void ASTDeclWriter::VisitTypeAliasDecl | ( | TypeAliasDecl * | D | ) |
Definition at line 517 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_TYPEALIAS, and VisitTypedefNameDecl().
void ASTDeclWriter::VisitTypeAliasTemplateDecl | ( | TypeAliasTemplateDecl * | D | ) |
Definition at line 2047 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_TYPE_ALIAS_TEMPLATE, and VisitRedeclarableTemplateDecl().
void ASTDeclWriter::VisitTypeDecl | ( | TypeDecl * | D | ) |
Definition at line 485 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 501 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 491 of file ASTWriterDecl.cpp.
References D, VisitRedeclarable(), and VisitTypeDecl().
Referenced by VisitObjCTypeParamDecl(), VisitTypeAliasDecl(), and VisitTypedefDecl().
void ASTDeclWriter::VisitUnnamedGlobalConstantDecl | ( | UnnamedGlobalConstantDecl * | D | ) |
Definition at line 1130 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_UNNAMED_GLOBAL_CONSTANT, and VisitValueDecl().
void ASTDeclWriter::VisitUnresolvedUsingIfExistsDecl | ( | UnresolvedUsingIfExistsDecl * | D | ) |
Definition at line 1541 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_UNRESOLVED_USING_IF_EXISTS, and VisitNamedDecl().
void ASTDeclWriter::VisitUnresolvedUsingTypenameDecl | ( | UnresolvedUsingTypenameDecl * | D | ) |
Definition at line 1532 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_UNRESOLVED_USING_TYPENAME, and VisitTypeDecl().
void ASTDeclWriter::VisitUnresolvedUsingValueDecl | ( | UnresolvedUsingValueDecl * | D | ) |
Definition at line 1523 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_UNRESOLVED_USING_VALUE, and VisitValueDecl().
void ASTDeclWriter::VisitUsingDecl | ( | UsingDecl * | D | ) |
Definition at line 1456 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_USING, and VisitNamedDecl().
void ASTDeclWriter::VisitUsingDirectiveDecl | ( | UsingDirectiveDecl * | D | ) |
Definition at line 1513 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_USING_DIRECTIVE, and VisitNamedDecl().
void ASTDeclWriter::VisitUsingEnumDecl | ( | UsingEnumDecl * | D | ) |
Definition at line 1467 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_USING_ENUM, and VisitNamedDecl().
void ASTDeclWriter::VisitUsingPackDecl | ( | UsingPackDecl * | D | ) |
Definition at line 1477 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_USING_PACK, E, and VisitNamedDecl().
void ASTDeclWriter::VisitUsingShadowDecl | ( | UsingShadowDecl * | D | ) |
Definition at line 1486 of file ASTWriterDecl.cpp.
References D, clang::serialization::DECL_USING_SHADOW, clang::Decl::getDeclContext(), clang::ASTWriter::getDeclUsingShadowAbbrev(), clang::Decl::getIdentifierNamespace(), 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 636 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 1152 of file ASTWriterDecl.cpp.
References clang::BitsPacker::addBit(), clang::BitsPacker::addBits(), clang::ASTWriter::AddDeclRef(), D, clang::serialization::DECL_VAR, clang::Decl::getDeclContext(), clang::ASTWriter::getDeclVarAbbrev(), clang::Decl::getKind(), clang::ASTWriter::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 1870 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 1924 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 1878 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().