Home | History | Annotate | Download | only in Serialization

Lines Matching refs:TL

5560 void TypeLocReader::VisitQualifiedTypeLoc(QualifiedTypeLoc TL) {
5563 void TypeLocReader::VisitBuiltinTypeLoc(BuiltinTypeLoc TL) {
5564 TL.setBuiltinLoc(ReadSourceLocation(Record, Idx));
5565 if (TL.needsExtraLocalData()) {
5566 TL.setWrittenTypeSpec(static_cast<DeclSpec::TST>(Record[Idx++]));
5567 TL.setWrittenSignSpec(static_cast<DeclSpec::TSS>(Record[Idx++]));
5568 TL.setWrittenWidthSpec(static_cast<DeclSpec::TSW>(Record[Idx++]));
5569 TL.setModeAttr(Record[Idx++]);
5572 void TypeLocReader::VisitComplexTypeLoc(ComplexTypeLoc TL) {
5573 TL.setNameLoc(ReadSourceLocation(Record, Idx));
5575 void TypeLocReader::VisitPointerTypeLoc(PointerTypeLoc TL) {
5576 TL.setStarLoc(ReadSourceLocation(Record, Idx));
5578 void TypeLocReader::VisitDecayedTypeLoc(DecayedTypeLoc TL) {
5581 void TypeLocReader::VisitAdjustedTypeLoc(AdjustedTypeLoc TL) {
5584 void TypeLocReader::VisitBlockPointerTypeLoc(BlockPointerTypeLoc TL) {
5585 TL
5587 void TypeLocReader::VisitLValueReferenceTypeLoc(LValueReferenceTypeLoc TL) {
5588 TL.setAmpLoc(ReadSourceLocation(Record, Idx));
5590 void TypeLocReader::VisitRValueReferenceTypeLoc(RValueReferenceTypeLoc TL) {
5591 TL.setAmpAmpLoc(ReadSourceLocation(Record, Idx));
5593 void TypeLocReader::VisitMemberPointerTypeLoc(MemberPointerTypeLoc TL) {
5594 TL.setStarLoc(ReadSourceLocation(Record, Idx));
5595 TL.setClassTInfo(Reader.GetTypeSourceInfo(F, Record, Idx));
5597 void TypeLocReader::VisitArrayTypeLoc(ArrayTypeLoc TL) {
5598 TL.setLBracketLoc(ReadSourceLocation(Record, Idx));
5599 TL.setRBracketLoc(ReadSourceLocation(Record, Idx));
5601 TL.setSizeExpr(Reader.ReadExpr(F));
5603 TL.setSizeExpr(nullptr);
5605 void TypeLocReader::VisitConstantArrayTypeLoc(ConstantArrayTypeLoc TL) {
5606 VisitArrayTypeLoc(TL);
5608 void TypeLocReader::VisitIncompleteArrayTypeLoc(IncompleteArrayTypeLoc TL) {
5609 VisitArrayTypeLoc(TL);
5611 void TypeLocReader::VisitVariableArrayTypeLoc(VariableArrayTypeLoc TL) {
5612 VisitArrayTypeLoc(TL);
5615 DependentSizedArrayTypeLoc TL) {
5616 VisitArrayTypeLoc(TL);
5619 DependentSizedExtVectorTypeLoc TL) {
5620 TL.setNameLoc(ReadSourceLocation(Record, Idx));
5622 void TypeLocReader::VisitVectorTypeLoc(VectorTypeLoc TL) {
5623 TL.setNameLoc(ReadSourceLocation(Record, Idx));
5625 void TypeLocReader::VisitExtVectorTypeLoc(ExtVectorTypeLoc TL) {
5626 TL.setNameLoc(ReadSourceLocation(Record, Idx));
5628 void TypeLocReader::VisitFunctionTypeLoc(FunctionTypeLoc TL) {
5629 TL.setLocalRangeBegin(ReadSourceLocation(Record, Idx));
5630 TL.setLParenLoc(ReadSourceLocation(Record, Idx));
5631 TL.setRParenLoc(ReadSourceLocation(Record, Idx));
5632 TL.setLocalRangeEnd(ReadSourceLocation(Record, Idx));
5633 for (unsigned i = 0, e = TL.getNumParams(); i != e; ++i) {
5634 TL.setParam(i, ReadDeclAs<ParmVarDecl>(Record, Idx));
5637 void TypeLocReader::VisitFunctionProtoTypeLoc(FunctionProtoTypeLoc TL) {
5638 VisitFunctionTypeLoc(TL);
5640 void TypeLocReader::VisitFunctionNoProtoTypeLoc(FunctionNoProtoTypeLoc TL) {
5641 VisitFunctionTypeLoc(TL);
5643 void TypeLocReader::VisitUnresolvedUsingTypeLoc(UnresolvedUsingTypeLoc TL) {
5644 TL.setNameLoc(ReadSourceLocation(Record, Idx));
5646 void TypeLocReader::VisitTypedefTypeLoc(TypedefTypeLoc TL) {
5647 TL.setNameLoc(ReadSourceLocation(Record, Idx));
5649 void TypeLocReader::VisitTypeOfExprTypeLoc(TypeOfExprTypeLoc TL) {
5650 TL.setTypeofLoc(ReadSourceLocation(Record, Idx));
5651 TL.setLParenLoc(ReadSourceLocation(Record, Idx));
5652 TL.setRParenLoc(ReadSourceLocation(Record, Idx));
5654 void TypeLocReader::VisitTypeOfTypeLoc(TypeOfTypeLoc TL) {
5655 TL.setTypeofLoc(ReadSourceLocation(Record, Idx));
5656 TL.setLParenLoc(ReadSourceLocation(Record, Idx));
5657 TL.setRParenLoc(ReadSourceLocation(Record, Idx));
5658 TL.setUnderlyingTInfo(Reader.GetTypeSourceInfo(F, Record, Idx));
5660 void TypeLocReader::VisitDecltypeTypeLoc(DecltypeTypeLoc TL) {
5661 TL.setNameLoc(ReadSourceLocation(Record, Idx));
5663 void TypeLocReader::VisitUnaryTransformTypeLoc(UnaryTransformTypeLoc TL) {
5664 TL.setKWLoc(ReadSourceLocation(Record, Idx));
5665 TL.setLParenLoc(ReadSourceLocation(Record, Idx));
5666 TL.setRParenLoc(ReadSourceLocation(Record, Idx));
5667 TL.setUnderlyingTInfo(Reader.GetTypeSourceInfo(F, Record, Idx));
5669 void TypeLocReader::VisitAutoTypeLoc(AutoTypeLoc TL) {
5670 TL.setNameLoc(ReadSourceLocation(Record, Idx));
5672 void TypeLocReader::VisitRecordTypeLoc(RecordTypeLoc TL) {
5673 TL.setNameLoc(ReadSourceLocation(Record, Idx));
5675 void TypeLocReader::VisitEnumTypeLoc(EnumTypeLoc TL) {
5676 TL.setNameLoc(ReadSourceLocation(Record, Idx));
5678 void TypeLocReader::VisitAttributedTypeLoc(AttributedTypeLoc TL) {
5679 TL.setAttrNameLoc(ReadSourceLocation(Record, Idx));
5680 if (TL.hasAttrOperand()) {
5684 TL.setAttrOperandParensRange(range);
5686 if (TL.hasAttrExprOperand()) {
5688 TL.setAttrExprOperand(Reader.ReadExpr(F));
5690 TL.setAttrExprOperand(nullptr);
5691 } else if (TL.hasAttrEnumOperand())
5692 TL.setAttrEnumOperandLoc(ReadSourceLocation(Record, Idx));
5694 void TypeLocReader::VisitTemplateTypeParmTypeLoc(TemplateTypeParmTypeLoc TL) {
5695 TL.setNameLoc(ReadSourceLocation(Record, Idx));
5698 SubstTemplateTypeParmTypeLoc TL) {
5699 TL.setNameLoc(ReadSourceLocation(Record, Idx));
5702 SubstTemplateTypeParmPackTypeLoc TL) {
5703 TL.setNameLoc(ReadSourceLocation(Record, Idx));
5706 TemplateSpecializationTypeLoc TL) {
5707 TL.setTemplateKeywordLoc(ReadSourceLocation(Record, Idx));
5708 TL.setTemplateNameLoc(ReadSourceLocation(Record, Idx));
5709 TL.setLAngleLoc(ReadSourceLocation(Record, Idx));
5710 TL.setRAngleLoc(ReadSourceLocation(Record, Idx));
5711 for (unsigned i = 0, e = TL.getNumArgs(); i != e; ++i)
5712 TL.setArgLocInfo(i,
5714 TL.getTypePtr()->getArg(i).getKind(),
5717 void TypeLocReader::VisitParenTypeLoc(ParenTypeLoc TL) {
5718 TL.setLParenLoc(ReadSourceLocation(Record, Idx));
5719 TL.setRParenLoc(ReadSourceLocation(Record, Idx));
5721 void TypeLocReader::VisitElaboratedTypeLoc(ElaboratedTypeLoc TL) {
5722 TL.setElaboratedKeywordLoc(ReadSourceLocation(Record, Idx));
5723 TL.setQualifierLoc(Reader.ReadNestedNameSpecifierLoc(F, Record, Idx));
5725 void TypeLocReader::VisitInjectedClassNameTypeLoc(InjectedClassNameTypeLoc TL) {
5726 TL.setNameLoc(ReadSourceLocation(Record, Idx));
5728 void TypeLocReader::VisitDependentNameTypeLoc(DependentNameTypeLoc TL) {
5729 TL.setElaboratedKeywordLoc(ReadSourceLocation(Record, Idx));
5730 TL.setQualifierLoc(Reader.ReadNestedNameSpecifierLoc(F, Record, Idx));
5731 TL.setNameLoc(ReadSourceLocation(Record, Idx));
5734 DependentTemplateSpecializationTypeLoc TL) {
5735 TL.setElaboratedKeywordLoc(ReadSourceLocation(Record, Idx));
5736 TL.setQualifierLoc(Reader.ReadNestedNameSpecifierLoc(F, Record, Idx));
5737 TL.setTemplateKeywordLoc(ReadSourceLocation(Record, Idx));
5738 TL.setTemplateNameLoc(ReadSourceLocation(Record, Idx));
5739 TL.setLAngleLoc(ReadSourceLocation(Record, Idx));
5740 TL.setRAngleLoc(ReadSourceLocation(Record, Idx));
5741 for (unsigned I = 0, E = TL.getNumArgs(); I != E; ++I)
5742 TL.setArgLocInfo(I,
5744 TL.getTypePtr()->getArg(I).getKind(),
5747 void TypeLocReader::VisitPackExpansionTypeLoc(PackExpansionTypeLoc TL) {
5748 TL.setEllipsisLoc(ReadSourceLocation(Record, Idx));
5750 void TypeLocReader::VisitObjCInterfaceTypeLoc(ObjCInterfaceTypeLoc TL) {
5751 TL.setNameLoc(ReadSourceLocation(Record, Idx));
5753 void TypeLocReader::VisitObjCObjectTypeLoc(ObjCObjectTypeLoc TL) {
5754 TL.setHasBaseTypeAsWritten(Record[Idx++]);
5755 TL.setLAngleLoc(ReadSourceLocation(Record, Idx));
5756 TL.setRAngleLoc(ReadSourceLocation(Record, Idx));
5757 for (unsigned i = 0, e = TL.getNumProtocols(); i != e; ++i)
5758 TL.setProtocolLoc(i, ReadSourceLocation(Record, Idx));
5760 void TypeLocReader::VisitObjCObjectPointerTypeLoc(ObjCObjectPointerTypeLoc TL) {
5761 TL.setStarLoc(ReadSourceLocation(Record, Idx));
5763 void TypeLocReader::VisitAtomicTypeLoc(AtomicTypeLoc TL) {
5764 TL.setKWLoc(ReadSourceLocation(Record, Idx));
5765 TL.setLParenLoc(ReadSourceLocation(Record, Idx));
5766 TL.setRParenLoc(ReadSourceLocation(Record, Idx));
5778 for (TypeLoc TL = TInfo->getTypeLoc(); !TL.isNull(); TL = TL.getNextTypeLoc())
5779 TLR.Visit(TL);