Lines Matching refs:Writer

81     ASTWriter &Writer;  member in __anon84a3a1ce0111::ASTTypeWriter
90 ASTTypeWriter(ASTWriter &Writer, ASTWriter::RecordDataImpl &Record) in ASTTypeWriter() argument
91 : Writer(Writer), Record(Record), Code(TYPE_EXT_QUAL) { } in ASTTypeWriter()
108 Writer.AddTypeRef(T->getElementType(), Record); in VisitComplexType()
113 Writer.AddTypeRef(T->getPointeeType(), Record); in VisitPointerType()
118 Writer.AddTypeRef(T->getOriginalType(), Record); in VisitDecayedType()
123 Writer.AddTypeRef(T->getOriginalType(), Record); in VisitAdjustedType()
124 Writer.AddTypeRef(T->getAdjustedType(), Record); in VisitAdjustedType()
129 Writer.AddTypeRef(T->getPointeeType(), Record); in VisitBlockPointerType()
134 Writer.AddTypeRef(T->getPointeeTypeAsWritten(), Record); in VisitLValueReferenceType()
140 Writer.AddTypeRef(T->getPointeeTypeAsWritten(), Record); in VisitRValueReferenceType()
145 Writer.AddTypeRef(T->getPointeeType(), Record); in VisitMemberPointerType()
146 Writer.AddTypeRef(QualType(T->getClass(), 0), Record); in VisitMemberPointerType()
151 Writer.AddTypeRef(T->getElementType(), Record); in VisitArrayType()
158 Writer.AddAPInt(T->getSize(), Record); in VisitConstantArrayType()
169 Writer.AddSourceLocation(T->getLBracketLoc(), Record); in VisitVariableArrayType()
170 Writer.AddSourceLocation(T->getRBracketLoc(), Record); in VisitVariableArrayType()
171 Writer.AddStmt(T->getSizeExpr()); in VisitVariableArrayType()
176 Writer.AddTypeRef(T->getElementType(), Record); in VisitVectorType()
188 Writer.AddTypeRef(T->getReturnType(), Record); in VisitFunctionType()
206 static void addExceptionSpec(ASTWriter &Writer, const FunctionProtoType *T, in addExceptionSpec() argument
212 Writer.AddTypeRef(T->getExceptionType(I), Record); in addExceptionSpec()
214 Writer.AddStmt(T->getNoexceptExpr()); in addExceptionSpec()
216 Writer.AddDeclRef(T->getExceptionSpecDecl(), Record); in addExceptionSpec()
217 Writer.AddDeclRef(T->getExceptionSpecTemplate(), Record); in addExceptionSpec()
219 Writer.AddDeclRef(T->getExceptionSpecDecl(), Record); in addExceptionSpec()
230 addExceptionSpec(Writer, T, Record); in VisitFunctionProtoType()
234 Writer.AddTypeRef(T->getParamType(I), Record); in VisitFunctionProtoType()
244 Writer.AddDeclRef(T->getDecl(), Record); in VisitUnresolvedUsingType()
249 Writer.AddDeclRef(T->getDecl(), Record); in VisitTypedefType()
251 Writer.AddTypeRef(T->getCanonicalTypeInternal(), Record); in VisitTypedefType()
256 Writer.AddStmt(T->getUnderlyingExpr()); in VisitTypeOfExprType()
261 Writer.AddTypeRef(T->getUnderlyingType(), Record); in VisitTypeOfType()
266 Writer.AddTypeRef(T->getUnderlyingType(), Record); in VisitDecltypeType()
267 Writer.AddStmt(T->getUnderlyingExpr()); in VisitDecltypeType()
272 Writer.AddTypeRef(T->getBaseType(), Record); in VisitUnaryTransformType()
273 Writer.AddTypeRef(T->getUnderlyingType(), Record); in VisitUnaryTransformType()
279 Writer.AddTypeRef(T->getDeducedType(), Record); in VisitAutoType()
288 Writer.AddDeclRef(T->getDecl()->getCanonicalDecl(), Record); in VisitTagType()
304 Writer.AddTypeRef(T->getModifiedType(), Record); in VisitAttributedType()
305 Writer.AddTypeRef(T->getEquivalentType(), Record); in VisitAttributedType()
313 Writer.AddTypeRef(QualType(T->getReplacedParameter(), 0), Record); in VisitSubstTemplateTypeParmType()
314 Writer.AddTypeRef(T->getReplacementType(), Record); in VisitSubstTemplateTypeParmType()
321 Writer.AddTypeRef(QualType(T->getReplacedParameter(), 0), Record); in VisitSubstTemplateTypeParmPackType()
322 Writer.AddTemplateArgument(T->getArgumentPack(), Record); in VisitSubstTemplateTypeParmPackType()
330 Writer.AddTemplateName(T->getTemplateName(), Record); in VisitTemplateSpecializationType()
334 Writer.AddTemplateArgument(*ArgI, Record); in VisitTemplateSpecializationType()
335 Writer.AddTypeRef(T->isTypeAlias() ? T->getAliasedType() : in VisitTemplateSpecializationType()
345 Writer.AddStmt(T->getSizeExpr()); in VisitDependentSizedArrayType()
346 Writer.AddSourceRange(T->getBracketsRange(), Record); in VisitDependentSizedArrayType()
362 Writer.AddDeclRef(T->getDecl(), Record); in VisitTemplateTypeParmType()
369 Writer.AddNestedNameSpecifier(T->getQualifier(), Record); in VisitDependentNameType()
370 Writer.AddIdentifierRef(T->getIdentifier(), Record); in VisitDependentNameType()
371 Writer.AddTypeRef(T->isCanonicalUnqualified() ? QualType() in VisitDependentNameType()
381 Writer.AddNestedNameSpecifier(T->getQualifier(), Record); in VisitDependentTemplateSpecializationType()
382 Writer.AddIdentifierRef(T->getIdentifier(), Record); in VisitDependentTemplateSpecializationType()
386 Writer.AddTemplateArgument(*I, Record); in VisitDependentTemplateSpecializationType()
391 Writer.AddTypeRef(T->getPattern(), Record); in VisitPackExpansionType()
400 Writer.AddTypeRef(T->getInnerType(), Record); in VisitParenType()
406 Writer.AddNestedNameSpecifier(T->getQualifier(), Record); in VisitElaboratedType()
407 Writer.AddTypeRef(T->getNamedType(), Record); in VisitElaboratedType()
412 Writer.AddDeclRef(T->getDecl()->getCanonicalDecl(), Record); in VisitInjectedClassNameType()
413 Writer.AddTypeRef(T->getInjectedSpecializationType(), Record); in VisitInjectedClassNameType()
418 Writer.AddDeclRef(T->getDecl()->getCanonicalDecl(), Record); in VisitObjCInterfaceType()
423 Writer.AddTypeRef(T->getBaseType(), Record); in VisitObjCObjectType()
426 Writer.AddDeclRef(I, Record); in VisitObjCObjectType()
432 Writer.AddTypeRef(T->getPointeeType(), Record); in VisitObjCObjectPointerType()
438 Writer.AddTypeRef(T->getValueType(), Record); in VisitAtomicType()
445 ASTWriter &Writer; member in __anon84a3a1ce0211::TypeLocWriter
449 TypeLocWriter(ASTWriter &Writer, ASTWriter::RecordDataImpl &Record) in TypeLocWriter() argument
450 : Writer(Writer), Record(Record) { } in TypeLocWriter()
467 Writer.AddSourceLocation(TL.getBuiltinLoc(), Record); in VisitBuiltinTypeLoc()
476 Writer.AddSourceLocation(TL.getNameLoc(), Record); in VisitComplexTypeLoc()
479 Writer.AddSourceLocation(TL.getStarLoc(), Record); in VisitPointerTypeLoc()
488 Writer.AddSourceLocation(TL.getCaretLoc(), Record); in VisitBlockPointerTypeLoc()
491 Writer.AddSourceLocation(TL.getAmpLoc(), Record); in VisitLValueReferenceTypeLoc()
494 Writer.AddSourceLocation(TL.getAmpAmpLoc(), Record); in VisitRValueReferenceTypeLoc()
497 Writer.AddSourceLocation(TL.getStarLoc(), Record); in VisitMemberPointerTypeLoc()
498 Writer.AddTypeSourceInfo(TL.getClassTInfo(), Record); in VisitMemberPointerTypeLoc()
501 Writer.AddSourceLocation(TL.getLBracketLoc(), Record); in VisitArrayTypeLoc()
502 Writer.AddSourceLocation(TL.getRBracketLoc(), Record); in VisitArrayTypeLoc()
505 Writer.AddStmt(TL.getSizeExpr()); in VisitArrayTypeLoc()
522 Writer.AddSourceLocation(TL.getNameLoc(), Record); in VisitDependentSizedExtVectorTypeLoc()
525 Writer.AddSourceLocation(TL.getNameLoc(), Record); in VisitVectorTypeLoc()
528 Writer.AddSourceLocation(TL.getNameLoc(), Record); in VisitExtVectorTypeLoc()
531 Writer.AddSourceLocation(TL.getLocalRangeBegin(), Record); in VisitFunctionTypeLoc()
532 Writer.AddSourceLocation(TL.getLParenLoc(), Record); in VisitFunctionTypeLoc()
533 Writer.AddSourceLocation(TL.getRParenLoc(), Record); in VisitFunctionTypeLoc()
534 Writer.AddSourceLocation(TL.getLocalRangeEnd(), Record); in VisitFunctionTypeLoc()
536 Writer.AddDeclRef(TL.getParam(i), Record); in VisitFunctionTypeLoc()
545 Writer.AddSourceLocation(TL.getNameLoc(), Record); in VisitUnresolvedUsingTypeLoc()
548 Writer.AddSourceLocation(TL.getNameLoc(), Record); in VisitTypedefTypeLoc()
551 Writer.AddSourceLocation(TL.getTypeofLoc(), Record); in VisitTypeOfExprTypeLoc()
552 Writer.AddSourceLocation(TL.getLParenLoc(), Record); in VisitTypeOfExprTypeLoc()
553 Writer.AddSourceLocation(TL.getRParenLoc(), Record); in VisitTypeOfExprTypeLoc()
556 Writer.AddSourceLocation(TL.getTypeofLoc(), Record); in VisitTypeOfTypeLoc()
557 Writer.AddSourceLocation(TL.getLParenLoc(), Record); in VisitTypeOfTypeLoc()
558 Writer.AddSourceLocation(TL.getRParenLoc(), Record); in VisitTypeOfTypeLoc()
559 Writer.AddTypeSourceInfo(TL.getUnderlyingTInfo(), Record); in VisitTypeOfTypeLoc()
562 Writer.AddSourceLocation(TL.getNameLoc(), Record); in VisitDecltypeTypeLoc()
565 Writer.AddSourceLocation(TL.getKWLoc(), Record); in VisitUnaryTransformTypeLoc()
566 Writer.AddSourceLocation(TL.getLParenLoc(), Record); in VisitUnaryTransformTypeLoc()
567 Writer.AddSourceLocation(TL.getRParenLoc(), Record); in VisitUnaryTransformTypeLoc()
568 Writer.AddTypeSourceInfo(TL.getUnderlyingTInfo(), Record); in VisitUnaryTransformTypeLoc()
571 Writer.AddSourceLocation(TL.getNameLoc(), Record); in VisitAutoTypeLoc()
574 Writer.AddSourceLocation(TL.getNameLoc(), Record); in VisitRecordTypeLoc()
577 Writer.AddSourceLocation(TL.getNameLoc(), Record); in VisitEnumTypeLoc()
580 Writer.AddSourceLocation(TL.getAttrNameLoc(), Record); in VisitAttributedTypeLoc()
583 Writer.AddSourceLocation(range.getBegin(), Record); in VisitAttributedTypeLoc()
584 Writer.AddSourceLocation(range.getEnd(), Record); in VisitAttributedTypeLoc()
589 if (operand) Writer.AddStmt(operand); in VisitAttributedTypeLoc()
591 Writer.AddSourceLocation(TL.getAttrEnumOperandLoc(), Record); in VisitAttributedTypeLoc()
595 Writer.AddSourceLocation(TL.getNameLoc(), Record); in VisitTemplateTypeParmTypeLoc()
599 Writer.AddSourceLocation(TL.getNameLoc(), Record); in VisitSubstTemplateTypeParmTypeLoc()
603 Writer.AddSourceLocation(TL.getNameLoc(), Record); in VisitSubstTemplateTypeParmPackTypeLoc()
607 Writer.AddSourceLocation(TL.getTemplateKeywordLoc(), Record); in VisitTemplateSpecializationTypeLoc()
608 Writer.AddSourceLocation(TL.getTemplateNameLoc(), Record); in VisitTemplateSpecializationTypeLoc()
609 Writer.AddSourceLocation(TL.getLAngleLoc(), Record); in VisitTemplateSpecializationTypeLoc()
610 Writer.AddSourceLocation(TL.getRAngleLoc(), Record); in VisitTemplateSpecializationTypeLoc()
612 Writer.AddTemplateArgumentLocInfo(TL.getArgLoc(i).getArgument().getKind(), in VisitTemplateSpecializationTypeLoc()
616 Writer.AddSourceLocation(TL.getLParenLoc(), Record); in VisitParenTypeLoc()
617 Writer.AddSourceLocation(TL.getRParenLoc(), Record); in VisitParenTypeLoc()
620 Writer.AddSourceLocation(TL.getElaboratedKeywordLoc(), Record); in VisitElaboratedTypeLoc()
621 Writer.AddNestedNameSpecifierLoc(TL.getQualifierLoc(), Record); in VisitElaboratedTypeLoc()
624 Writer.AddSourceLocation(TL.getNameLoc(), Record); in VisitInjectedClassNameTypeLoc()
627 Writer.AddSourceLocation(TL.getElaboratedKeywordLoc(), Record); in VisitDependentNameTypeLoc()
628 Writer.AddNestedNameSpecifierLoc(TL.getQualifierLoc(), Record); in VisitDependentNameTypeLoc()
629 Writer.AddSourceLocation(TL.getNameLoc(), Record); in VisitDependentNameTypeLoc()
633 Writer.AddSourceLocation(TL.getElaboratedKeywordLoc(), Record); in VisitDependentTemplateSpecializationTypeLoc()
634 Writer.AddNestedNameSpecifierLoc(TL.getQualifierLoc(), Record); in VisitDependentTemplateSpecializationTypeLoc()
635 Writer.AddSourceLocation(TL.getTemplateKeywordLoc(), Record); in VisitDependentTemplateSpecializationTypeLoc()
636 Writer.AddSourceLocation(TL.getTemplateNameLoc(), Record); in VisitDependentTemplateSpecializationTypeLoc()
637 Writer.AddSourceLocation(TL.getLAngleLoc(), Record); in VisitDependentTemplateSpecializationTypeLoc()
638 Writer.AddSourceLocation(TL.getRAngleLoc(), Record); in VisitDependentTemplateSpecializationTypeLoc()
640 Writer.AddTemplateArgumentLocInfo(TL.getArgLoc(I).getArgument().getKind(), in VisitDependentTemplateSpecializationTypeLoc()
644 Writer.AddSourceLocation(TL.getEllipsisLoc(), Record); in VisitPackExpansionTypeLoc()
647 Writer.AddSourceLocation(TL.getNameLoc(), Record); in VisitObjCInterfaceTypeLoc()
651 Writer.AddSourceLocation(TL.getLAngleLoc(), Record); in VisitObjCObjectTypeLoc()
652 Writer.AddSourceLocation(TL.getRAngleLoc(), Record); in VisitObjCObjectTypeLoc()
654 Writer.AddSourceLocation(TL.getProtocolLoc(i), Record); in VisitObjCObjectTypeLoc()
657 Writer.AddSourceLocation(TL.getStarLoc(), Record); in VisitObjCObjectPointerTypeLoc()
660 Writer.AddSourceLocation(TL.getKWLoc(), Record); in VisitAtomicTypeLoc()
661 Writer.AddSourceLocation(TL.getLParenLoc(), Record); in VisitAtomicTypeLoc()
662 Writer.AddSourceLocation(TL.getRParenLoc(), Record); in VisitAtomicTypeLoc()
1598 ASTWriter &Writer; member in __anon84a3a1ce0411::HeaderFileInfoTrait
1606 HeaderFileInfoTrait(ASTWriter &Writer, const HeaderSearch &HS) in HeaderFileInfoTrait() argument
1607 : Writer(Writer), HS(HS) { } in HeaderFileInfoTrait()
1634 endian::Writer<little> Writer(Out); in EmitKeyDataLength() local
1636 Writer.write<uint16_t>(KeyLen); in EmitKeyDataLength()
1640 Writer.write<uint8_t>(DataLen); in EmitKeyDataLength()
1646 endian::Writer<little> LE(Out); in EmitKey()
1657 endian::Writer<little> LE(Out); in EmitData()
1672 LE.write<uint32_t>(Writer.getIdentifierRef(Data.ControllingMacro)); in EmitData()
1693 LE.write<uint32_t>(Writer.getExistingSubmoduleID(Mod)); in EmitData()
1753 endian::Writer<little>(Out).write<uint32_t>(0); in WriteHeaderSearch()
2003 endian::Writer<little>(Out).write<uint32_t>(Key); in EmitKey()
2009 endian::Writer<little>(Out).write<uint32_t>(Data.MacroDirectivesOffset); in EmitData()
2874 ASTWriter &Writer; member in __anon84a3a1ce0711::ASTMethodPoolTrait
2889 explicit ASTMethodPoolTrait(ASTWriter &Writer) : Writer(Writer) { } in ASTMethodPoolTrait() argument
2899 endian::Writer<little> LE(Out); in EmitKeyDataLength()
2917 endian::Writer<little> LE(Out); in EmitKey()
2920 Writer.SetSelectorOffset(Sel, Start); in EmitKey()
2927 Writer.getIdentifierRef(Sel.getIdentifierInfoForSlot(I))); in EmitKey()
2933 endian::Writer<little> LE(Out); in EmitData()
2967 LE.write<uint32_t>(Writer.getDeclID(Method->getMethod())); in EmitData()
2971 LE.write<uint32_t>(Writer.getDeclID(Method->getMethod())); in EmitData()
3043 endian::Writer<little>(Out).write<uint32_t>(0); in WriteSelectors()
3137 ASTWriter &Writer; member in __anon84a3a1ce0811::ASTIdentifierTableTrait
3300 return Writer.inferSubmoduleIDFromLocation(MD->getLocation()); in getSubmoduleID()
3313 ASTIdentifierTableTrait(ASTWriter &Writer, Preprocessor &PP, in ASTIdentifierTableTrait() argument
3315 : Writer(Writer), PP(PP), IdResolver(IdResolver), IsModule(IsModule) { } in ASTIdentifierTableTrait()
3351 endian::Writer<little> LE(Out); in EmitKeyDataLength()
3366 Writer.SetIdentifierOffset(II, Out.tell()); in EmitKey()
3374 endian::Writer<little> LE(Out); in emitMacroOverrides()
3386 endian::Writer<little> LE(Out); in EmitData()
3408 LE.write<uint32_t>(Writer.getMacroDirectivesOffset(II)); in EmitData()
3420 MacroID InfoID = Writer.getMacroID(DefMD->getInfo()); in EmitData()
3447 Writer.getDeclID(getDeclForLocalLookup(PP.getLangOpts(), *D))); in EmitData()
3503 endian::Writer<little>(Out).write<uint32_t>(0); in WriteIdentifierTable()
3549 ASTWriter &Writer; member in __anon84a3a1ce0911::ASTDeclContextNameLookupTrait
3561 explicit ASTDeclContextNameLookupTrait(ASTWriter &Writer) : Writer(Writer) { } in ASTDeclContextNameLookupTrait() argument
3596 endian::Writer<little> LE(Out); in EmitKeyDataLength()
3626 endian::Writer<little> LE(Out); in EmitKey()
3630 LE.write<uint32_t>(Writer.getIdentifierRef(Name.getAsIdentifierInfo())); in EmitKey()
3635 LE.write<uint32_t>(Writer.getSelectorRef(Name.getObjCSelector())); in EmitKey()
3643 LE.write<uint32_t>(Writer.getIdentifierRef(Name.getCXXLiteralIdentifier())); in EmitKey()
3658 endian::Writer<little> LE(Out); in EmitData()
3664 Writer.GetDeclRef(getDeclForLocalLookup(Writer.getLangOpts(), *I))); in EmitData()
3860 endian::Writer<little>(Out).write<uint32_t>(0); in GenerateNameLookupTable()
4266 static void AddLazyVectorDecls(ASTWriter &Writer, Vector &Vec, in AddLazyVectorDecls() argument
4270 Writer.AddDeclRef(*I, Record); in AddLazyVectorDecls()
4533 endian::Writer<little> LE(Out); in WriteASTCore()