Lines Matching refs:Writer
36 ASTWriter &Writer;
45 ASTDeclWriter(ASTWriter &Writer, ASTContext &Context, RecordData &Record)
46 : Writer(Writer), Context(Context), Record(Record) {
143 Writer.AddTypeSourceInfo(DD->getTypeSourceInfo(), Record);
152 Writer.AddStmt(FD->getBody());
157 Writer.AddDeclRef(cast_or_null<Decl>(D->getDeclContext()), Record);
158 Writer.AddDeclRef(cast_or_null<Decl>(D->getLexicalDeclContext()), Record);
162 Writer.WriteAttributes(ArrayRef<const Attr*>(D->getAttrs().begin(),
170 Record.push_back(Writer.inferSubmoduleIDFromLocation(D->getLocation()));
179 Writer.AddDeclarationName(D->getDeclName(), Record);
184 Writer.AddSourceLocation(D->getLocStart(), Record);
185 Writer.AddTypeRef(QualType(D->getTypeForDecl(), 0), Record);
191 Writer.AddTypeSourceInfo(D->getTypeSourceInfo(), Record);
194 Writer.AddTypeRef(D->getUnderlyingType(), Record);
209 AbbrevToUse = Writer.getDeclTypedefAbbrev();
228 Writer.AddSourceLocation(D->getRBraceLoc(), Record);
231 Writer.AddQualifierInfo(*D->getExtInfo(), Record);
233 Writer.AddDeclRef(D->getTypedefNameForAnonDecl(), Record);
238 Writer.AddTypeSourceInfo(D->getIntegerTypeSourceInfo(), Record);
240 Writer.AddTypeRef(D->getIntegerType(), Record);
241 Writer.AddTypeRef(D->getPromotionType(), Record);
248 Writer.AddDeclRef(MemberInfo->getInstantiatedFrom(), Record);
250 Writer.AddSourceLocation(MemberInfo->getPointOfInstantiation(), Record);
252 Writer.AddDeclRef(0, Record);
269 AbbrevToUse = Writer.getDeclEnumAbbrev();
293 AbbrevToUse = Writer.getDeclRecordAbbrev();
300 Writer.AddTypeRef(D->getType(), Record);
307 Writer.AddStmt(D->getInitExpr());
308 Writer.AddAPSInt(D->getInitVal(), Record);
315 Writer.AddSourceLocation(D->getInnerLocStart(), Record);
318 Writer.AddQualifierInfo(*D->getExtInfo(), Record);
325 Writer.AddDeclarationNameLoc(D->DNLoc, D->getDeclName(), Record);
346 Writer.AddSourceLocation(D->getLocEnd(), Record);
353 Writer.AddDeclRef(D->getDescribedFunctionTemplate(), Record);
357 Writer.AddDeclRef(MemberInfo->getInstantiatedFrom(), Record);
359 Writer.AddSourceLocation(MemberInfo->getPointOfInstantiation(), Record);
365 Writer.AddDeclRef(FTSInfo->getTemplate(), Record);
369 Writer.AddTemplateArgumentList(FTSInfo->TemplateArguments, Record);
377 Writer.AddTemplateArgumentLoc((*FTSInfo->TemplateArgumentsAsWritten)[i],
379 Writer.AddSourceLocation(FTSInfo->TemplateArgumentsAsWritten->LAngleLoc,
381 Writer.AddSourceLocation(FTSInfo->TemplateArgumentsAsWritten->RAngleLoc,
385 Writer.AddSourceLocation(FTSInfo->getPointOfInstantiation(), Record);
390 Writer.AddDeclRef(FTSInfo->getTemplate()->getCanonicalDecl(), Record);
401 Writer.AddDeclRef(DFTSInfo->getTemplate(i), Record);
406 Writer.AddTemplateArgumentLoc(DFTSInfo->getTemplateArg(i), Record);
407 Writer.AddSourceLocation(DFTSInfo->getLAngleLoc(), Record);
408 Writer.AddSourceLocation(DFTSInfo->getRAngleLoc(), Record);
416 Writer.AddDeclRef(*P, Record);
428 Writer.AddStmt(D->getBody());
429 Writer.AddDeclRef(D->getSelfDecl(), Record);
430 Writer.AddDeclRef(D->getCmdDecl(), Record);
443 Writer.AddDeclRef(Context.getObjCMethodRedeclaration(D), Record);
451 Writer.AddTypeRef(D->getResultType(), Record);
452 Writer.AddTypeSourceInfo(D->getResultTypeSourceInfo(), Record);
453 Writer.AddSourceLocation(D->getLocEnd(), Record);
457 Writer.AddDeclRef(*P, Record);
464 Writer.AddSourceLocation(SelLocs[i], Record);
471 Writer.AddSourceLocation(D->getAtStartLoc(), Record);
472 Writer.AddSourceRange(D->getAtEndRange(), Record);
479 Writer.AddTypeRef(QualType(D->getTypeForDecl(), 0), Record);
486 Writer.AddDeclRef(D->getSuperClass(), Record);
487 Writer.AddSourceLocation(D->getSuperClassLoc(), Record);
488 Writer.AddSourceLocation(D->getEndOfDefinitionLoc(), Record);
495 Writer.AddDeclRef(*P, Record);
499 Writer.AddSourceLocation(*PL, Record);
507 Writer.AddDeclRef(*P, Record);
512 Writer.ObjCClassesWithCategories.insert(D);
516 (void)Writer.GetDeclRef(Cat);
538 AbbrevToUse = Writer.getDeclObjCIvarAbbrev();
552 Writer.AddDeclRef(*I, Record);
556 Writer.AddSourceLocation(*PL, Record);
569 Writer.AddSourceLocation(D->getCategoryNameLoc(), Record);
570 Writer.AddSourceLocation(D->getIvarLBraceLoc(), Record);
571 Writer.AddSourceLocation(D->getIvarRBraceLoc(), Record);
572 Writer.AddDeclRef(D->getClassInterface(), Record);
576 Writer.AddDeclRef(*I, Record);
580 Writer.AddSourceLocation(*PL, Record);
586 Writer.AddDeclRef(D->getClassInterface(), Record);
592 Writer.AddSourceLocation(D->getAtLoc(), Record);
593 Writer.AddSourceLocation(D->getLParenLoc(), Record);
594 Writer.AddTypeSourceInfo(D->getTypeSourceInfo(), Record);
600 Writer.AddDeclarationName(D->getGetterName(), Record);
601 Writer.AddDeclarationName(D->getSetterName(), Record);
602 Writer.AddDeclRef(D->getGetterMethodDecl(), Record);
603 Writer.AddDeclRef(D->getSetterMethodDecl(), Record);
604 Writer.AddDeclRef(D->getPropertyIvarDecl(), Record);
610 Writer.AddDeclRef(D->getClassInterface(), Record);
616 Writer.AddIdentifierRef(D->getIdentifier(), Record);
617 Writer.AddSourceLocation(D->getCategoryNameLoc(), Record);
623 Writer.AddDeclRef(D->getSuperClass(), Record);
624 Writer.AddSourceLocation(D->getSuperClassLoc(), Record);
625 Writer.AddSourceLocation(D->getIvarLBraceLoc(), Record);
626 Writer.AddSourceLocation(D->getIvarRBraceLoc(), Record);
629 Writer.AddCXXCtorInitializers(D->IvarInitializers, D->NumIvarInitializers,
636 Writer.AddSourceLocation(D->getLocStart(), Record);
637 Writer.AddDeclRef(D->getPropertyDecl(), Record);
638 Writer.AddDeclRef(D->getPropertyIvarDecl(), Record);
639 Writer.AddSourceLocation(D->getPropertyIvarDeclLoc(), Record);
640 Writer.AddStmt(D->getGetterCXXConstructor());
641 Writer.AddStmt(D->getSetterCXXAssignment());
651 Writer.AddStmt(D->InitializerOrBitWidth.getPointer());
656 Writer.AddDeclRef(Context.getInstantiatedFromUnnamedFieldDecl(D), Record);
671 AbbrevToUse = Writer.getDeclFieldAbbrev();
678 Writer.AddIdentifierRef(D->getGetterId(), Record);
679 Writer.AddIdentifierRef(D->getSetterId(), Record);
690 Writer.AddDeclRef(*P, Record);
709 Writer.AddStmt(D->getInit());
718 Writer.AddDeclRef(SpecInfo->getInstantiatedFrom(), Record);
720 Writer.AddSourceLocation(SpecInfo->getPointOfInstantiation(), Record);
739 AbbrevToUse = Writer.getDeclVarAbbrev();
759 Writer.AddStmt(D->getUninstantiatedDefaultArg());
783 AbbrevToUse = Writer.getDeclParmVarAbbrev();
797 Writer.AddStmt(D->getAsmString());
798 Writer.AddSourceLocation(D->getRParenLoc(), Record);
809 Writer.AddStmt(D->getBody());
810 Writer.AddTypeSourceInfo(D->getSignatureAsWritten(), Record);
814 Writer.AddDeclRef(*P, Record);
823 Writer.AddDeclRef(capture.getVariable(), Record);
831 if (capture.hasCopyExpr()) Writer.AddStmt(capture.getCopyExpr());
842 Writer.AddDeclRef(CD->getParam(i), Record);
849 Writer.AddSourceLocation(D->getExternLoc(), Record);
850 Writer.AddSourceLocation(D->getRBraceLoc(), Record);
856 Writer.AddSourceLocation(D->getLocStart(), Record);
865 Writer.AddSourceLocation(D->getLocStart(), Record);
866 Writer
869 Writer.AddDeclRef(D->getAnonymousNamespace(), Record);
872 if (Writer.hasChain() && !D->isOriginalNamespace() &&
875 Writer.AddUpdatedDeclContext(NS);
884 Writer.GetDeclRef(*I);
889 if (Writer.hasChain() && D->isAnonymousNamespace() &&
898 ASTWriter::UpdateRecord &Record = Writer.DeclUpdates[Parent];
900 Writer.AddDeclRef(D, Record);
907 Writer.AddSourceLocation(D->getNamespaceLoc(), Record);
908 Writer.AddSourceLocation(D->getTargetNameLoc(), Record);
909 Writer.AddNestedNameSpecifierLoc(D->getQualifierLoc(), Record);
910 Writer.AddDeclRef(D->getNamespace(), Record);
916 Writer.AddSourceLocation(D->getUsingLoc(), Record);
917 Writer.AddNestedNameSpecifierLoc(D->getQualifierLoc(), Record);
918 Writer.AddDeclarationNameLoc(D->DNLoc, D->getDeclName(), Record);
919 Writer.AddDeclRef(D->FirstUsingShadow.getPointer(), Record);
921 Writer.AddDeclRef(Context.getInstantiatedFromUsingDecl(D), Record);
927 Writer.AddDeclRef(D->getTargetDecl(), Record);
928 Writer.AddDeclRef(D->UsingOrNextShadow, Record);
929 Writer.AddDeclRef(Context.getInstantiatedFromUsingShadowDecl(D), Record);
935 Writer.AddSourceLocation(D->getUsingLoc(), Record);
936 Writer.AddSourceLocation(D->getNamespaceKeyLocation(), Record);
937 Writer.AddNestedNameSpecifierLoc(D->getQualifierLoc(), Record);
938 Writer.AddDeclRef(D->getNominatedNamespace(), Record);
939 Writer.AddDeclRef(dyn_cast<Decl>(D->getCommonAncestor()), Record);
945 Writer.AddSourceLocation(D->getUsingLoc(), Record);
946 Writer.AddNestedNameSpecifierLoc(D->getQualifierLoc(), Record);
947 Writer.AddDeclarationNameLoc(D->DNLoc, D->getDeclName(), Record);
954 Writer.AddSourceLocation(D->getTypenameLoc(), Record);
955 Writer.AddNestedNameSpecifierLoc(D->getQualifierLoc(), Record);
963 Writer.AddCXXDefinitionData(D, Record);
970 Writer.AddDeclRef(TemplD, Record);
974 Writer.AddDeclRef(MSInfo->getInstantiatedFrom(), Record);
976 Writer.AddSourceLocation(MSInfo->getPointOfInstantiation(), Record);
984 Writer.AddDeclRef(Context.getCurrentKeyFunction(D), Record);
996 Writer.AddDeclRef(*I, Record);
1008 Writer.AddCXXCtorInitializers(D->CtorInitializers, D->NumCtorInitializers,
1017 Writer.AddDeclRef(D->OperatorDelete, Record);
1030 Record.push_back(Writer.getSubmoduleID(D->getImportedModule()));
1034 Writer.AddSourceLocation(D->getLocEnd(), Record);
1038 Writer.AddSourceLocation(IdentifierLocs[I], Record);
1048 Writer.AddSourceLocation(D->getColonLoc(), Record);
1060 Writer.AddDeclRef(D->getFriendDecl(), Record);
1062 Writer.AddTypeSourceInfo(D->getFriendType(), Record);
1064 Writer.AddTemplateParameterList(D->getFriendTypeTemplateParameterList(i),
1066 Writer.AddDeclRef(D->getNextFriend(), Record);
1068 Writer.AddSourceLocation(D->FriendLoc, Record);
1076 Writer.AddTemplateParameterList(D->getTemplateParameterList(i), Record);
1079 Writer.AddDeclRef(D->getFriendDecl(), Record);
1081 Writer.AddTypeSourceInfo(D->getFriendType(), Record);
1082 Writer.AddSourceLocation(D->getFriendLoc(), Record);
1089 Writer.AddDeclRef(D->getTemplatedDecl(), Record);
1090 Writer.AddTemplateParameterList(D->getTemplateParameters(), Record);
1100 Writer.AddDeclRef(D->getInstantiatedFromMemberTemplate(), Record);
1118 Writer.AddDeclRef(&*I, Record);
1127 Writer.AddDeclRef(&*I, Record);
1130 Writer.AddTypeRef(D->getCommonPtr()->InjectedClassNameType, Record);
1143 Writer.AddDeclRef(InstFromD, Record);
1145 Writer.AddDeclRef(InstFrom.get<ClassTemplatePartialSpecializationDecl *>(),
1147 Writer.AddTemplateArgumentList(&D->getTemplateInstantiationArgs(), Record);
1151 Writer.AddTypeSourceInfo(D->getTypeAsWritten(), Record);
1153 Writer.AddSourceLocation(D->getExternLoc(), Record);
1154 Writer.AddSourceLocation(D->getTemplateKeywordLoc(), Record);
1157 Writer.AddTemplateArgumentList(&D->getTemplateArgs(), Record);
1158 Writer.AddSourceLocation(D->getPointOfInstantiation(), Record);
1164 Writer.AddDeclRef(D->getSpecializedTemplate()->getCanonicalDecl(), Record);
1174 Writer.AddTemplateParameterList(D->getTemplateParameters(), Record);
1178 Writer.AddTemplateArgumentLoc(D->getTemplateArgsAsWritten()[i], Record);
1182 Writer.AddDeclRef(D->getInstantiatedFromMember(), Record);
1199 Writer.AddDeclRef(&*I, Record);
1209 Writer.AddDeclRef(&*I, Record);
1222 Writer.AddDeclRef(InstFromD, Record);
1224 Writer.AddDeclRef(InstFrom.get<VarTemplatePartialSpecializationDecl *>(),
1226 Writer.AddTemplateArgumentList(&D->getTemplateInstantiationArgs(), Record);
1230 Writer.AddTypeSourceInfo(D->getTypeAsWritten(), Record);
1232 Writer.AddSourceLocation(D->getExternLoc(), Record);
1233 Writer.AddSourceLocation(D->getTemplateKeywordLoc(), Record);
1236 Writer.AddTemplateArgumentList(&D->getTemplateArgs(), Record);
1237 Writer.AddSourceLocation(D->getPointOfInstantiation(), Record);
1243 Writer.AddDeclRef(D->getSpecializedTemplate()->getCanonicalDecl(), Record);
1253 Writer.AddTemplateParameterList(D->getTemplateParameters(), Record);
1257 Writer.AddTemplateArgumentLoc(D->getTemplateArgsAsWritten()[i], Record);
1263 Writer.AddDeclRef(D->getInstantiatedFromMember(), Record);
1273 Writer.AddDeclRef(D->getSpecialization(), Record);
1291 Writer.AddDeclRef(I->Function, Record);
1302 Writer.AddTypeSourceInfo(D->getDefaultArgumentInfo(), Record);
1321 Writer.AddTypeRef(D->getExpansionType(I), Record);
1322 Writer.AddTypeSourceInfo(D->getExpansionTypeSourceInfo(I), Record);
1331 Writer.AddStmt(D->getDefaultArgument());
1353 Writer.AddTemplateParameterList(D->getExpansionTemplateParameters(I),
1358 Writer.AddTemplateArgumentLoc(D->getDefaultArgument(), Record);
1372 Writer.AddStmt(D->getAssertExpr());
1374 Writer.AddStmt(D->getMessage());
1375 Writer.AddSourceLocation(D->getRParenLoc(), Record);
1405 Writer.AddDeclRef(First, Record);
1406 Writer.Redeclarations.insert(First);
1411 (void)Writer.GetDeclRef(D->getPreviousDecl());
1412 (void)Writer.GetDeclRef(First->getMostRecentDecl());
1426 Writer.AddStmt(*I);