Lines Matching defs:TL
6783 void TypeLocReader::VisitQualifiedTypeLoc(QualifiedTypeLoc TL) {
6787 void TypeLocReader::VisitBuiltinTypeLoc(BuiltinTypeLoc TL) {
6788 TL.setBuiltinLoc(readSourceLocation());
6789 if (TL.needsExtraLocalData()) {
6790 TL.setWrittenTypeSpec(static_cast<DeclSpec::TST>(Reader.readInt()));
6791 TL.setWrittenSignSpec(static_cast<TypeSpecifierSign>(Reader.readInt()));
6792 TL.setWrittenWidthSpec(static_cast<TypeSpecifierWidth>(Reader.readInt()));
6793 TL.setModeAttr(Reader.readInt());
6797 void TypeLocReader::VisitComplexTypeLoc(ComplexTypeLoc TL) {
6798 TL.setNameLoc(readSourceLocation());
6801 void TypeLocReader::VisitPointerTypeLoc(PointerTypeLoc TL) {
6802 TL.setStarLoc(readSourceLocation());
6805 void TypeLocReader::VisitDecayedTypeLoc(DecayedTypeLoc TL) {
6809 void TypeLocReader::VisitAdjustedTypeLoc(AdjustedTypeLoc TL) {
6813 void TypeLocReader::VisitArrayParameterTypeLoc(ArrayParameterTypeLoc TL) {
6817 void TypeLocReader::VisitMacroQualifiedTypeLoc(MacroQualifiedTypeLoc TL) {
6818 TL.setExpansionLoc(readSourceLocation());
6821 void TypeLocReader::VisitBlockPointerTypeLoc(BlockPointerTypeLoc TL) {
6822 TL.setCaretLoc(readSourceLocation());
6825 void TypeLocReader::VisitLValueReferenceTypeLoc(LValueReferenceTypeLoc TL) {
6826 TL.setAmpLoc(readSourceLocation());
6829 void TypeLocReader::VisitRValueReferenceTypeLoc(RValueReferenceTypeLoc TL) {
6830 TL.setAmpAmpLoc(readSourceLocation());
6833 void TypeLocReader::VisitMemberPointerTypeLoc(MemberPointerTypeLoc TL) {
6834 TL.setStarLoc(readSourceLocation());
6835 TL.setClassTInfo(GetTypeSourceInfo());
6838 void TypeLocReader::VisitArrayTypeLoc(ArrayTypeLoc TL) {
6839 TL.setLBracketLoc(readSourceLocation());
6840 TL.setRBracketLoc(readSourceLocation());
6842 TL.setSizeExpr(Reader.readExpr());
6844 TL.setSizeExpr(nullptr);
6847 void TypeLocReader::VisitConstantArrayTypeLoc(ConstantArrayTypeLoc TL) {
6848 VisitArrayTypeLoc(TL);
6851 void TypeLocReader::VisitIncompleteArrayTypeLoc(IncompleteArrayTypeLoc TL) {
6852 VisitArrayTypeLoc(TL);
6855 void TypeLocReader::VisitVariableArrayTypeLoc(VariableArrayTypeLoc TL) {
6856 VisitArrayTypeLoc(TL);
6860 DependentSizedArrayTypeLoc TL) {
6861 VisitArrayTypeLoc(TL);
6865 DependentAddressSpaceTypeLoc TL) {
6867 TL.setAttrNameLoc(readSourceLocation());
6868 TL.setAttrOperandParensRange(readSourceRange());
6869 TL.setAttrExprOperand(Reader.readExpr());
6873 DependentSizedExtVectorTypeLoc TL) {
6874 TL.setNameLoc(readSourceLocation());
6877 void TypeLocReader::VisitVectorTypeLoc(VectorTypeLoc TL) {
6878 TL.setNameLoc(readSourceLocation());
6882 DependentVectorTypeLoc TL) {
6883 TL.setNameLoc(readSourceLocation());
6886 void TypeLocReader::VisitExtVectorTypeLoc(ExtVectorTypeLoc TL) {
6887 TL.setNameLoc(readSourceLocation());
6890 void TypeLocReader::VisitConstantMatrixTypeLoc(ConstantMatrixTypeLoc TL) {
6891 TL.setAttrNameLoc(readSourceLocation());
6892 TL.setAttrOperandParensRange(readSourceRange());
6893 TL.setAttrRowOperand(Reader.readExpr());
6894 TL.setAttrColumnOperand(Reader.readExpr());
6898 DependentSizedMatrixTypeLoc TL) {
6899 TL.setAttrNameLoc(readSourceLocation());
6900 TL.setAttrOperandParensRange(readSourceRange());
6901 TL.setAttrRowOperand(Reader.readExpr());
6902 TL.setAttrColumnOperand(Reader.readExpr());
6905 void TypeLocReader::VisitFunctionTypeLoc(FunctionTypeLoc TL) {
6906 TL.setLocalRangeBegin(readSourceLocation());
6907 TL.setLParenLoc(readSourceLocation());
6908 TL.setRParenLoc(readSourceLocation());
6909 TL.setExceptionSpecRange(readSourceRange());
6910 TL.setLocalRangeEnd(readSourceLocation());
6911 for (unsigned i = 0, e = TL.getNumParams(); i != e; ++i) {
6912 TL.setParam(i, Reader.readDeclAs<ParmVarDecl>());
6916 void TypeLocReader::VisitFunctionProtoTypeLoc(FunctionProtoTypeLoc TL) {
6917 VisitFunctionTypeLoc(TL);
6920 void TypeLocReader::VisitFunctionNoProtoTypeLoc(FunctionNoProtoTypeLoc TL) {
6921 VisitFunctionTypeLoc(TL);
6924 void TypeLocReader::VisitUnresolvedUsingTypeLoc(UnresolvedUsingTypeLoc TL) {
6925 TL.setNameLoc(readSourceLocation());
6928 void TypeLocReader::VisitUsingTypeLoc(UsingTypeLoc TL) {
6929 TL.setNameLoc(readSourceLocation());
6932 void TypeLocReader::VisitTypedefTypeLoc(TypedefTypeLoc TL) {
6933 TL.setNameLoc(readSourceLocation());
6936 void TypeLocReader::VisitTypeOfExprTypeLoc(TypeOfExprTypeLoc TL) {
6937 TL.setTypeofLoc(readSourceLocation());
6938 TL.setLParenLoc(readSourceLocation());
6939 TL.setRParenLoc(readSourceLocation());
6942 void TypeLocReader::VisitTypeOfTypeLoc(TypeOfTypeLoc TL) {
6943 TL.setTypeofLoc(readSourceLocation());
6944 TL.setLParenLoc(readSourceLocation());
6945 TL.setRParenLoc(readSourceLocation());
6946 TL.setUnmodifiedTInfo(GetTypeSourceInfo());
6949 void TypeLocReader::VisitDecltypeTypeLoc(DecltypeTypeLoc TL) {
6950 TL.setDecltypeLoc(readSourceLocation());
6951 TL.setRParenLoc(readSourceLocation());
6954 void TypeLocReader::VisitPackIndexingTypeLoc(PackIndexingTypeLoc TL) {
6955 TL.setEllipsisLoc(readSourceLocation());
6958 void TypeLocReader::VisitUnaryTransformTypeLoc(UnaryTransformTypeLoc TL) {
6959 TL.setKWLoc(readSourceLocation());
6960 TL.setLParenLoc(readSourceLocation());
6961 TL.setRParenLoc(readSourceLocation());
6962 TL.setUnderlyingTInfo(GetTypeSourceInfo());
6977 void TypeLocReader::VisitAutoTypeLoc(AutoTypeLoc TL) {
6978 TL.setNameLoc(readSourceLocation());
6980 TL.setConceptReference(Reader.readConceptReference());
6982 TL.setRParenLoc(readSourceLocation());
6986 DeducedTemplateSpecializationTypeLoc TL) {
6987 TL.setTemplateNameLoc(readSourceLocation());
6990 void TypeLocReader::VisitRecordTypeLoc(RecordTypeLoc TL) {
6991 TL.setNameLoc(readSourceLocation());
6994 void TypeLocReader::VisitEnumTypeLoc(EnumTypeLoc TL) {
6995 TL.setNameLoc(readSourceLocation());
6998 void TypeLocReader::VisitAttributedTypeLoc(AttributedTypeLoc TL) {
6999 TL.setAttr(ReadAttr());
7002 void TypeLocReader::VisitCountAttributedTypeLoc(CountAttributedTypeLoc TL) {
7006 void TypeLocReader::VisitBTFTagAttributedTypeLoc(BTFTagAttributedTypeLoc TL) {
7010 void TypeLocReader::VisitTemplateTypeParmTypeLoc(TemplateTypeParmTypeLoc TL) {
7011 TL.setNameLoc(readSourceLocation());
7015 SubstTemplateTypeParmTypeLoc TL) {
7016 TL.setNameLoc(readSourceLocation());
7020 SubstTemplateTypeParmPackTypeLoc TL) {
7021 TL.setNameLoc(readSourceLocation());
7025 TemplateSpecializationTypeLoc TL) {
7026 TL.setTemplateKeywordLoc(readSourceLocation());
7027 TL.setTemplateNameLoc(readSourceLocation());
7028 TL.setLAngleLoc(readSourceLocation());
7029 TL.setRAngleLoc(readSourceLocation());
7030 for (unsigned i = 0, e = TL.getNumArgs(); i != e; ++i)
7031 TL.setArgLocInfo(i,
7033 TL.getTypePtr()->template_arguments()[i].getKind()));
7036 void TypeLocReader::VisitParenTypeLoc(ParenTypeLoc TL) {
7037 TL.setLParenLoc(readSourceLocation());
7038 TL.setRParenLoc(readSourceLocation());
7041 void TypeLocReader::VisitElaboratedTypeLoc(ElaboratedTypeLoc TL) {
7042 TL.setElaboratedKeywordLoc(readSourceLocation());
7043 TL.setQualifierLoc(ReadNestedNameSpecifierLoc());
7046 void TypeLocReader::VisitInjectedClassNameTypeLoc(InjectedClassNameTypeLoc TL) {
7047 TL.setNameLoc(readSourceLocation());
7050 void TypeLocReader::VisitDependentNameTypeLoc(DependentNameTypeLoc TL) {
7051 TL.setElaboratedKeywordLoc(readSourceLocation());
7052 TL.setQualifierLoc(ReadNestedNameSpecifierLoc());
7053 TL.setNameLoc(readSourceLocation());
7057 DependentTemplateSpecializationTypeLoc TL) {
7058 TL.setElaboratedKeywordLoc(readSourceLocation());
7059 TL.setQualifierLoc(ReadNestedNameSpecifierLoc());
7060 TL.setTemplateKeywordLoc(readSourceLocation());
7061 TL.setTemplateNameLoc(readSourceLocation());
7062 TL.setLAngleLoc(readSourceLocation());
7063 TL.setRAngleLoc(readSourceLocation());
7064 for (unsigned I = 0, E = TL.getNumArgs(); I != E; ++I)
7065 TL.setArgLocInfo(I,
7067 TL.getTypePtr()->template_arguments()[I].getKind()));
7070 void TypeLocReader::VisitPackExpansionTypeLoc(PackExpansionTypeLoc TL) {
7071 TL.setEllipsisLoc(readSourceLocation());
7074 void TypeLocReader::VisitObjCInterfaceTypeLoc(ObjCInterfaceTypeLoc TL) {
7075 TL.setNameLoc(readSourceLocation());
7076 TL.setNameEndLoc(readSourceLocation());
7079 void TypeLocReader::VisitObjCTypeParamTypeLoc(ObjCTypeParamTypeLoc TL) {
7080 if (TL.getNumProtocols()) {
7081 TL.setProtocolLAngleLoc(readSourceLocation());
7082 TL.setProtocolRAngleLoc(readSourceLocation());
7084 for (unsigned i = 0, e = TL.getNumProtocols(); i != e; ++i)
7085 TL.setProtocolLoc(i, readSourceLocation());
7088 void TypeLocReader::VisitObjCObjectTypeLoc(ObjCObjectTypeLoc TL) {
7089 TL.setHasBaseTypeAsWritten(Reader.readBool());
7090 TL.setTypeArgsLAngleLoc(readSourceLocation());
7091 TL.setTypeArgsRAngleLoc(readSourceLocation());
7092 for (unsigned i = 0, e = TL.getNumTypeArgs(); i != e; ++i)
7093 TL.setTypeArgTInfo(i, GetTypeSourceInfo());
7094 TL.setProtocolLAngleLoc(readSourceLocation());
7095 TL.setProtocolRAngleLoc(readSourceLocation());
7096 for (unsigned i = 0, e = TL.getNumProtocols(); i != e; ++i)
7097 TL.setProtocolLoc(i, readSourceLocation());
7100 void TypeLocReader::VisitObjCObjectPointerTypeLoc(ObjCObjectPointerTypeLoc TL) {
7101 TL.setStarLoc(readSourceLocation());
7104 void TypeLocReader::VisitAtomicTypeLoc(AtomicTypeLoc TL) {
7105 TL.setKWLoc(readSourceLocation());
7106 TL.setLParenLoc(readSourceLocation());
7107 TL.setRParenLoc(readSourceLocation());
7110 void TypeLocReader::VisitPipeTypeLoc(PipeTypeLoc TL) {
7111 TL.setKWLoc(readSourceLocation());
7114 void TypeLocReader::VisitBitIntTypeLoc(clang::BitIntTypeLoc TL) {
7115 TL.setNameLoc(readSourceLocation());
7118 clang::DependentBitIntTypeLoc TL) {
7119 TL.setNameLoc(readSourceLocation());
7122 void ASTRecordReader::readTypeLoc(TypeLoc TL, LocSeq *ParentSeq) {
7125 for (; !TL.isNull(); TL = TL.getNextTypeLoc())
7126 TLR.Visit(TL);