Lines Matching defs:TL
7048 void TypeLocReader::VisitQualifiedTypeLoc(QualifiedTypeLoc TL) {
7052 void TypeLocReader::VisitBuiltinTypeLoc(BuiltinTypeLoc TL) {
7053 TL.setBuiltinLoc(readSourceLocation());
7054 if (TL.needsExtraLocalData()) {
7055 TL.setWrittenTypeSpec(static_cast<DeclSpec::TST>(Reader.readInt()));
7056 TL.setWrittenSignSpec(static_cast<TypeSpecifierSign>(Reader.readInt()));
7057 TL.setWrittenWidthSpec(static_cast<TypeSpecifierWidth>(Reader.readInt()));
7058 TL.setModeAttr(Reader.readInt());
7062 void TypeLocReader::VisitComplexTypeLoc(ComplexTypeLoc TL) {
7063 TL.setNameLoc(readSourceLocation());
7066 void TypeLocReader::VisitPointerTypeLoc(PointerTypeLoc TL) {
7067 TL.setStarLoc(readSourceLocation());
7070 void TypeLocReader::VisitDecayedTypeLoc(DecayedTypeLoc TL) {
7074 void TypeLocReader::VisitAdjustedTypeLoc(AdjustedTypeLoc TL) {
7078 void TypeLocReader::VisitArrayParameterTypeLoc(ArrayParameterTypeLoc TL) {
7082 void TypeLocReader::VisitMacroQualifiedTypeLoc(MacroQualifiedTypeLoc TL) {
7083 TL.setExpansionLoc(readSourceLocation());
7086 void TypeLocReader::VisitBlockPointerTypeLoc(BlockPointerTypeLoc TL) {
7087 TL.setCaretLoc(readSourceLocation());
7090 void TypeLocReader::VisitLValueReferenceTypeLoc(LValueReferenceTypeLoc TL) {
7091 TL.setAmpLoc(readSourceLocation());
7094 void TypeLocReader::VisitRValueReferenceTypeLoc(RValueReferenceTypeLoc TL) {
7095 TL.setAmpAmpLoc(readSourceLocation());
7098 void TypeLocReader::VisitMemberPointerTypeLoc(MemberPointerTypeLoc TL) {
7099 TL.setStarLoc(readSourceLocation());
7100 TL.setClassTInfo(GetTypeSourceInfo());
7103 void TypeLocReader::VisitArrayTypeLoc(ArrayTypeLoc TL) {
7104 TL.setLBracketLoc(readSourceLocation());
7105 TL.setRBracketLoc(readSourceLocation());
7107 TL.setSizeExpr(Reader.readExpr());
7109 TL.setSizeExpr(nullptr);
7112 void TypeLocReader::VisitConstantArrayTypeLoc(ConstantArrayTypeLoc TL) {
7113 VisitArrayTypeLoc(TL);
7116 void TypeLocReader::VisitIncompleteArrayTypeLoc(IncompleteArrayTypeLoc TL) {
7117 VisitArrayTypeLoc(TL);
7120 void TypeLocReader::VisitVariableArrayTypeLoc(VariableArrayTypeLoc TL) {
7121 VisitArrayTypeLoc(TL);
7125 DependentSizedArrayTypeLoc TL) {
7126 VisitArrayTypeLoc(TL);
7130 DependentAddressSpaceTypeLoc TL) {
7132 TL.setAttrNameLoc(readSourceLocation());
7133 TL.setAttrOperandParensRange(readSourceRange());
7134 TL.setAttrExprOperand(Reader.readExpr());
7138 DependentSizedExtVectorTypeLoc TL) {
7139 TL.setNameLoc(readSourceLocation());
7142 void TypeLocReader::VisitVectorTypeLoc(VectorTypeLoc TL) {
7143 TL.setNameLoc(readSourceLocation());
7147 DependentVectorTypeLoc TL) {
7148 TL.setNameLoc(readSourceLocation());
7151 void TypeLocReader::VisitExtVectorTypeLoc(ExtVectorTypeLoc TL) {
7152 TL.setNameLoc(readSourceLocation());
7155 void TypeLocReader::VisitConstantMatrixTypeLoc(ConstantMatrixTypeLoc TL) {
7156 TL.setAttrNameLoc(readSourceLocation());
7157 TL.setAttrOperandParensRange(readSourceRange());
7158 TL.setAttrRowOperand(Reader.readExpr());
7159 TL.setAttrColumnOperand(Reader.readExpr());
7163 DependentSizedMatrixTypeLoc TL) {
7164 TL.setAttrNameLoc(readSourceLocation());
7165 TL.setAttrOperandParensRange(readSourceRange());
7166 TL.setAttrRowOperand(Reader.readExpr());
7167 TL.setAttrColumnOperand(Reader.readExpr());
7170 void TypeLocReader::VisitFunctionTypeLoc(FunctionTypeLoc TL) {
7171 TL.setLocalRangeBegin(readSourceLocation());
7172 TL.setLParenLoc(readSourceLocation());
7173 TL.setRParenLoc(readSourceLocation());
7174 TL.setExceptionSpecRange(readSourceRange());
7175 TL.setLocalRangeEnd(readSourceLocation());
7176 for (unsigned i = 0, e = TL.getNumParams(); i != e; ++i) {
7177 TL.setParam(i, Reader.readDeclAs<ParmVarDecl>());
7181 void TypeLocReader::VisitFunctionProtoTypeLoc(FunctionProtoTypeLoc TL) {
7182 VisitFunctionTypeLoc(TL);
7185 void TypeLocReader::VisitFunctionNoProtoTypeLoc(FunctionNoProtoTypeLoc TL) {
7186 VisitFunctionTypeLoc(TL);
7189 void TypeLocReader::VisitUnresolvedUsingTypeLoc(UnresolvedUsingTypeLoc TL) {
7190 TL.setNameLoc(readSourceLocation());
7193 void TypeLocReader::VisitUsingTypeLoc(UsingTypeLoc TL) {
7194 TL.setNameLoc(readSourceLocation());
7197 void TypeLocReader::VisitTypedefTypeLoc(TypedefTypeLoc TL) {
7198 TL.setNameLoc(readSourceLocation());
7201 void TypeLocReader::VisitTypeOfExprTypeLoc(TypeOfExprTypeLoc TL) {
7202 TL.setTypeofLoc(readSourceLocation());
7203 TL.setLParenLoc(readSourceLocation());
7204 TL.setRParenLoc(readSourceLocation());
7207 void TypeLocReader::VisitTypeOfTypeLoc(TypeOfTypeLoc TL) {
7208 TL.setTypeofLoc(readSourceLocation());
7209 TL.setLParenLoc(readSourceLocation());
7210 TL.setRParenLoc(readSourceLocation());
7211 TL.setUnmodifiedTInfo(GetTypeSourceInfo());
7214 void TypeLocReader::VisitDecltypeTypeLoc(DecltypeTypeLoc TL) {
7215 TL.setDecltypeLoc(readSourceLocation());
7216 TL.setRParenLoc(readSourceLocation());
7219 void TypeLocReader::VisitPackIndexingTypeLoc(PackIndexingTypeLoc TL) {
7220 TL.setEllipsisLoc(readSourceLocation());
7223 void TypeLocReader::VisitUnaryTransformTypeLoc(UnaryTransformTypeLoc TL) {
7224 TL.setKWLoc(readSourceLocation());
7225 TL.setLParenLoc(readSourceLocation());
7226 TL.setRParenLoc(readSourceLocation());
7227 TL.setUnderlyingTInfo(GetTypeSourceInfo());
7242 void TypeLocReader::VisitAutoTypeLoc(AutoTypeLoc TL) {
7243 TL.setNameLoc(readSourceLocation());
7245 TL.setConceptReference(Reader.readConceptReference());
7247 TL.setRParenLoc(readSourceLocation());
7251 DeducedTemplateSpecializationTypeLoc TL) {
7252 TL.setTemplateNameLoc(readSourceLocation());
7255 void TypeLocReader::VisitRecordTypeLoc(RecordTypeLoc TL) {
7256 TL.setNameLoc(readSourceLocation());
7259 void TypeLocReader::VisitEnumTypeLoc(EnumTypeLoc TL) {
7260 TL.setNameLoc(readSourceLocation());
7263 void TypeLocReader::VisitAttributedTypeLoc(AttributedTypeLoc TL) {
7264 TL.setAttr(ReadAttr());
7267 void TypeLocReader::VisitCountAttributedTypeLoc(CountAttributedTypeLoc TL) {
7271 void TypeLocReader::VisitBTFTagAttributedTypeLoc(BTFTagAttributedTypeLoc TL) {
7276 HLSLAttributedResourceTypeLoc TL) {
7280 void TypeLocReader::VisitTemplateTypeParmTypeLoc(TemplateTypeParmTypeLoc TL) {
7281 TL.setNameLoc(readSourceLocation());
7285 SubstTemplateTypeParmTypeLoc TL) {
7286 TL.setNameLoc(readSourceLocation());
7290 SubstTemplateTypeParmPackTypeLoc TL) {
7291 TL.setNameLoc(readSourceLocation());
7295 TemplateSpecializationTypeLoc TL) {
7296 TL.setTemplateKeywordLoc(readSourceLocation());
7297 TL.setTemplateNameLoc(readSourceLocation());
7298 TL.setLAngleLoc(readSourceLocation());
7299 TL.setRAngleLoc(readSourceLocation());
7300 for (unsigned i = 0, e = TL.getNumArgs(); i != e; ++i)
7301 TL.setArgLocInfo(i,
7303 TL.getTypePtr()->template_arguments()[i].getKind()));
7306 void TypeLocReader::VisitParenTypeLoc(ParenTypeLoc TL) {
7307 TL.setLParenLoc(readSourceLocation());
7308 TL.setRParenLoc(readSourceLocation());
7311 void TypeLocReader::VisitElaboratedTypeLoc(ElaboratedTypeLoc TL) {
7312 TL.setElaboratedKeywordLoc(readSourceLocation());
7313 TL.setQualifierLoc(ReadNestedNameSpecifierLoc());
7316 void TypeLocReader::VisitInjectedClassNameTypeLoc(InjectedClassNameTypeLoc TL) {
7317 TL.setNameLoc(readSourceLocation());
7320 void TypeLocReader::VisitDependentNameTypeLoc(DependentNameTypeLoc TL) {
7321 TL.setElaboratedKeywordLoc(readSourceLocation());
7322 TL.setQualifierLoc(ReadNestedNameSpecifierLoc());
7323 TL.setNameLoc(readSourceLocation());
7327 DependentTemplateSpecializationTypeLoc TL) {
7328 TL.setElaboratedKeywordLoc(readSourceLocation());
7329 TL.setQualifierLoc(ReadNestedNameSpecifierLoc());
7330 TL.setTemplateKeywordLoc(readSourceLocation());
7331 TL.setTemplateNameLoc(readSourceLocation());
7332 TL.setLAngleLoc(readSourceLocation());
7333 TL.setRAngleLoc(readSourceLocation());
7334 for (unsigned I = 0, E = TL.getNumArgs(); I != E; ++I)
7335 TL.setArgLocInfo(I,
7337 TL.getTypePtr()->template_arguments()[I].getKind()));
7340 void TypeLocReader::VisitPackExpansionTypeLoc(PackExpansionTypeLoc TL) {
7341 TL.setEllipsisLoc(readSourceLocation());
7344 void TypeLocReader::VisitObjCInterfaceTypeLoc(ObjCInterfaceTypeLoc TL) {
7345 TL.setNameLoc(readSourceLocation());
7346 TL.setNameEndLoc(readSourceLocation());
7349 void TypeLocReader::VisitObjCTypeParamTypeLoc(ObjCTypeParamTypeLoc TL) {
7350 if (TL.getNumProtocols()) {
7351 TL.setProtocolLAngleLoc(readSourceLocation());
7352 TL.setProtocolRAngleLoc(readSourceLocation());
7354 for (unsigned i = 0, e = TL.getNumProtocols(); i != e; ++i)
7355 TL.setProtocolLoc(i, readSourceLocation());
7358 void TypeLocReader::VisitObjCObjectTypeLoc(ObjCObjectTypeLoc TL) {
7359 TL.setHasBaseTypeAsWritten(Reader.readBool());
7360 TL.setTypeArgsLAngleLoc(readSourceLocation());
7361 TL.setTypeArgsRAngleLoc(readSourceLocation());
7362 for (unsigned i = 0, e = TL.getNumTypeArgs(); i != e; ++i)
7363 TL.setTypeArgTInfo(i, GetTypeSourceInfo());
7364 TL.setProtocolLAngleLoc(readSourceLocation());
7365 TL.setProtocolRAngleLoc(readSourceLocation());
7366 for (unsigned i = 0, e = TL.getNumProtocols(); i != e; ++i)
7367 TL.setProtocolLoc(i, readSourceLocation());
7370 void TypeLocReader::VisitObjCObjectPointerTypeLoc(ObjCObjectPointerTypeLoc TL) {
7371 TL.setStarLoc(readSourceLocation());
7374 void TypeLocReader::VisitAtomicTypeLoc(AtomicTypeLoc TL) {
7375 TL.setKWLoc(readSourceLocation());
7376 TL.setLParenLoc(readSourceLocation());
7377 TL.setRParenLoc(readSourceLocation());
7380 void TypeLocReader::VisitPipeTypeLoc(PipeTypeLoc TL) {
7381 TL.setKWLoc(readSourceLocation());
7384 void TypeLocReader::VisitBitIntTypeLoc(clang::BitIntTypeLoc TL) {
7385 TL.setNameLoc(readSourceLocation());
7388 clang::DependentBitIntTypeLoc TL) {
7389 TL.setNameLoc(readSourceLocation());
7392 void ASTRecordReader::readTypeLoc(TypeLoc TL, LocSeq *ParentSeq) {
7395 for (; !TL.isNull(); TL = TL.getNextTypeLoc())
7396 TLR.Visit(TL);