Home | History | Annotate | Download | only in Serialization

Lines Matching refs:FD

280     void VisitFunctionDecl(FunctionDecl *FD);
285 void VisitFieldDecl(FieldDecl *FD);
286 void VisitMSPropertyDecl(MSPropertyDecl *FD);
287 void VisitIndirectFieldDecl(IndirectFieldDecl *FD);
450 } else if (FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) {
452 // We only read it if FD doesn't already have a body (e.g., from another
456 if (auto *CD = dyn_cast<CXXConstructorDecl>(FD)) {
462 Reader.PendingBodies[FD] = GetCurrentCursorOffset();
699 void ASTDeclReader::VisitFunctionDecl(FunctionDecl *FD) {
700 RedeclarableResult Redecl = VisitRedeclarable(FD);
701 VisitDeclaratorDecl(FD);
703 ReadDeclarationNameLoc(FD->DNLoc, FD->getDeclName(), Record, Idx);
704 FD->IdentifierNamespace = Record[Idx++];
709 FD->SClass = (StorageClass)Record[Idx++];
710 FD->IsInline = Record[Idx++];
711 FD->IsInlineSpecified = Record[Idx++];
712 FD->IsVirtualAsWritten = Record[Idx++];
713 FD->IsPure = Record[Idx++];
714 FD->HasInheritedPrototype = Record[Idx++];
715 FD->HasWrittenPrototype = Record[Idx++];
716 FD->IsDeleted = Record[Idx++];
717 FD->IsTrivial = Record[Idx++];
718 FD->IsDefaulted = Record[Idx++];
719 FD->IsExplicitlyDefaulted = Record[Idx++];
720 FD->HasImplicitReturnZero = Record[Idx++];
721 FD->IsConstexpr = Record[Idx++];
722 FD->HasSkippedBody = Record[Idx++];
723 FD->IsLateTemplateParsed = Record[Idx++];
724 FD->setCachedLinkage(Linkage(Record[Idx++]));
725 FD->EndRangeLoc = ReadSourceLocation(Record, Idx);
729 mergeRedeclarable(FD, Redecl);
733 FD->setDescribedFunctionTemplate(ReadDeclAs<FunctionTemplateDecl>(Record,
740 FD->setInstantiationOfMemberFunction(Reader.getContext(), InstFD, TSK);
741 FD->getMemberSpecializationInfo()->setPointOfInstantiation(POI);
742 mergeRedeclarable(FD, Redecl);
779 = FunctionTemplateSpecializationInfo::Create(C, FD, Template, TSK,
784 FD->TemplateOrSpecialization = FTInfo;
786 if (FD->isCanonicalDecl()) { // if canonical add to template's set.
807 mergeRedeclarable(FD, ExistingInfo->Function, Redecl);
827 FD->setDependentTemplateSpecialization(Reader.getContext(),
841 FD->setParams(Reader.getContext(), Params);
1025 void ASTDeclReader::VisitObjCAtDefsFieldDecl(ObjCAtDefsFieldDecl *FD) {
1026 VisitFieldDecl(FD);
1114 void ASTDeclReader::VisitFieldDecl(FieldDecl *FD) {
1115 VisitDeclaratorDecl(FD);
1116 FD->Mutable = Record[Idx++];
1118 FD->InitStorage.setInt(
1120 if (FD->InitStorage.getInt() == FieldDecl::ISK_CapturedVLAType) {
1122 FD->InitStorage.setPointer(
1125 FD->InitStorage.setPointer(Reader.ReadExpr(F));
1128 if (!FD->getDeclName()) {
1130 Reader.getContext().setInstantiatedFromUnnamedFieldDecl(FD, Tmpl);
1132 mergeMergeable(FD);
1141 void ASTDeclReader::VisitIndirectFieldDecl(IndirectFieldDecl *FD) {
1142 VisitValueDecl(FD);
1144 FD->ChainingSize = Record[Idx++];
1145 assert(FD->ChainingSize >= 2 && "Anonymous chaining must be >= 2");
1146 FD->Chaining = new (Reader.getContext())NamedDecl*[FD->ChainingSize];
1148 for (unsigned I = 0; I != FD->ChainingSize; ++I)
1149 FD->Chaining[I] = ReadDeclAs<NamedDecl>(Record, Idx);
1151 mergeMergeable(FD);
2933 FunctionDecl *FD = static_cast<FunctionDecl*>(D);
2936 FD->RedeclLink.setPrevious(PrevFD);
2937 FD->First = PrevFD->First;
2941 if (PrevFD->IsInline != FD->IsInline) {
2957 FD->IsInline = true;
2962 auto *FPT = FD->getType()->getAs<FunctionProtoType>();
2970 std::make_pair(Canon, IsUnresolved ? PrevFD : FD));
3627 FunctionDecl *FD = cast<FunctionDecl>(D);
3628 if (Reader.PendingBodies[FD]) {
3638 forAllLaterRedecls(FD, [](FunctionDecl *FD) {
3639 FD->setImplicitlyInline();
3642 FD->setInnerLocStart(Reader.ReadSourceLocation(ModuleFile, Record, Idx));
3643 if (auto *CD = dyn_cast<CXXConstructorDecl>(FD)) {
3650 Reader.PendingBodies[FD] = GetCurrentCursorOffset();
3730 auto *FD = cast<FunctionDecl>(D);
3731 auto *FPT = FD->getType()->castAs<FunctionProtoType>();
3735 FD->setType(Reader.Context.getFunctionType(
3742 std::make_pair(FD->getCanonicalDecl(), FD));
3752 FunctionDecl *FD = cast<FunctionDecl>(Redecl);
3753 Reader.Context.adjustDeducedFunctionResultType(FD, DeducedResultType);