Lines Matching refs:TL
194 void TypeLocWriter::VisitQualifiedTypeLoc(QualifiedTypeLoc TL) { in VisitQualifiedTypeLoc() argument
198 void TypeLocWriter::VisitBuiltinTypeLoc(BuiltinTypeLoc TL) { in VisitBuiltinTypeLoc() argument
199 Record.AddSourceLocation(TL.getBuiltinLoc()); in VisitBuiltinTypeLoc()
200 if (TL.needsExtraLocalData()) { in VisitBuiltinTypeLoc()
201 Record.push_back(TL.getWrittenTypeSpec()); in VisitBuiltinTypeLoc()
202 Record.push_back(static_cast<uint64_t>(TL.getWrittenSignSpec())); in VisitBuiltinTypeLoc()
203 Record.push_back(static_cast<uint64_t>(TL.getWrittenWidthSpec())); in VisitBuiltinTypeLoc()
204 Record.push_back(TL.hasModeAttr()); in VisitBuiltinTypeLoc()
208 void TypeLocWriter::VisitComplexTypeLoc(ComplexTypeLoc TL) { in VisitComplexTypeLoc() argument
209 Record.AddSourceLocation(TL.getNameLoc()); in VisitComplexTypeLoc()
212 void TypeLocWriter::VisitPointerTypeLoc(PointerTypeLoc TL) { in VisitPointerTypeLoc() argument
213 Record.AddSourceLocation(TL.getStarLoc()); in VisitPointerTypeLoc()
216 void TypeLocWriter::VisitDecayedTypeLoc(DecayedTypeLoc TL) { in VisitDecayedTypeLoc() argument
220 void TypeLocWriter::VisitAdjustedTypeLoc(AdjustedTypeLoc TL) { in VisitAdjustedTypeLoc() argument
224 void TypeLocWriter::VisitBlockPointerTypeLoc(BlockPointerTypeLoc TL) { in VisitBlockPointerTypeLoc() argument
225 Record.AddSourceLocation(TL.getCaretLoc()); in VisitBlockPointerTypeLoc()
228 void TypeLocWriter::VisitLValueReferenceTypeLoc(LValueReferenceTypeLoc TL) { in VisitLValueReferenceTypeLoc() argument
229 Record.AddSourceLocation(TL.getAmpLoc()); in VisitLValueReferenceTypeLoc()
232 void TypeLocWriter::VisitRValueReferenceTypeLoc(RValueReferenceTypeLoc TL) { in VisitRValueReferenceTypeLoc() argument
233 Record.AddSourceLocation(TL.getAmpAmpLoc()); in VisitRValueReferenceTypeLoc()
236 void TypeLocWriter::VisitMemberPointerTypeLoc(MemberPointerTypeLoc TL) { in VisitMemberPointerTypeLoc() argument
237 Record.AddSourceLocation(TL.getStarLoc()); in VisitMemberPointerTypeLoc()
238 Record.AddTypeSourceInfo(TL.getClassTInfo()); in VisitMemberPointerTypeLoc()
241 void TypeLocWriter::VisitArrayTypeLoc(ArrayTypeLoc TL) { in VisitArrayTypeLoc() argument
242 Record.AddSourceLocation(TL.getLBracketLoc()); in VisitArrayTypeLoc()
243 Record.AddSourceLocation(TL.getRBracketLoc()); in VisitArrayTypeLoc()
244 Record.push_back(TL.getSizeExpr() ? 1 : 0); in VisitArrayTypeLoc()
245 if (TL.getSizeExpr()) in VisitArrayTypeLoc()
246 Record.AddStmt(TL.getSizeExpr()); in VisitArrayTypeLoc()
249 void TypeLocWriter::VisitConstantArrayTypeLoc(ConstantArrayTypeLoc TL) { in VisitConstantArrayTypeLoc() argument
250 VisitArrayTypeLoc(TL); in VisitConstantArrayTypeLoc()
253 void TypeLocWriter::VisitIncompleteArrayTypeLoc(IncompleteArrayTypeLoc TL) { in VisitIncompleteArrayTypeLoc() argument
254 VisitArrayTypeLoc(TL); in VisitIncompleteArrayTypeLoc()
257 void TypeLocWriter::VisitVariableArrayTypeLoc(VariableArrayTypeLoc TL) { in VisitVariableArrayTypeLoc() argument
258 VisitArrayTypeLoc(TL); in VisitVariableArrayTypeLoc()
262 DependentSizedArrayTypeLoc TL) { in VisitDependentSizedArrayTypeLoc() argument
263 VisitArrayTypeLoc(TL); in VisitDependentSizedArrayTypeLoc()
267 DependentAddressSpaceTypeLoc TL) { in VisitDependentAddressSpaceTypeLoc() argument
268 Record.AddSourceLocation(TL.getAttrNameLoc()); in VisitDependentAddressSpaceTypeLoc()
269 SourceRange range = TL.getAttrOperandParensRange(); in VisitDependentAddressSpaceTypeLoc()
272 Record.AddStmt(TL.getAttrExprOperand()); in VisitDependentAddressSpaceTypeLoc()
276 DependentSizedExtVectorTypeLoc TL) { in VisitDependentSizedExtVectorTypeLoc() argument
277 Record.AddSourceLocation(TL.getNameLoc()); in VisitDependentSizedExtVectorTypeLoc()
280 void TypeLocWriter::VisitVectorTypeLoc(VectorTypeLoc TL) { in VisitVectorTypeLoc() argument
281 Record.AddSourceLocation(TL.getNameLoc()); in VisitVectorTypeLoc()
285 DependentVectorTypeLoc TL) { in VisitDependentVectorTypeLoc() argument
286 Record.AddSourceLocation(TL.getNameLoc()); in VisitDependentVectorTypeLoc()
289 void TypeLocWriter::VisitExtVectorTypeLoc(ExtVectorTypeLoc TL) { in VisitExtVectorTypeLoc() argument
290 Record.AddSourceLocation(TL.getNameLoc()); in VisitExtVectorTypeLoc()
293 void TypeLocWriter::VisitConstantMatrixTypeLoc(ConstantMatrixTypeLoc TL) { in VisitConstantMatrixTypeLoc() argument
294 Record.AddSourceLocation(TL.getAttrNameLoc()); in VisitConstantMatrixTypeLoc()
295 SourceRange range = TL.getAttrOperandParensRange(); in VisitConstantMatrixTypeLoc()
298 Record.AddStmt(TL.getAttrRowOperand()); in VisitConstantMatrixTypeLoc()
299 Record.AddStmt(TL.getAttrColumnOperand()); in VisitConstantMatrixTypeLoc()
303 DependentSizedMatrixTypeLoc TL) { in VisitDependentSizedMatrixTypeLoc() argument
304 Record.AddSourceLocation(TL.getAttrNameLoc()); in VisitDependentSizedMatrixTypeLoc()
305 SourceRange range = TL.getAttrOperandParensRange(); in VisitDependentSizedMatrixTypeLoc()
308 Record.AddStmt(TL.getAttrRowOperand()); in VisitDependentSizedMatrixTypeLoc()
309 Record.AddStmt(TL.getAttrColumnOperand()); in VisitDependentSizedMatrixTypeLoc()
312 void TypeLocWriter::VisitFunctionTypeLoc(FunctionTypeLoc TL) { in VisitFunctionTypeLoc() argument
313 Record.AddSourceLocation(TL.getLocalRangeBegin()); in VisitFunctionTypeLoc()
314 Record.AddSourceLocation(TL.getLParenLoc()); in VisitFunctionTypeLoc()
315 Record.AddSourceLocation(TL.getRParenLoc()); in VisitFunctionTypeLoc()
316 Record.AddSourceRange(TL.getExceptionSpecRange()); in VisitFunctionTypeLoc()
317 Record.AddSourceLocation(TL.getLocalRangeEnd()); in VisitFunctionTypeLoc()
318 for (unsigned i = 0, e = TL.getNumParams(); i != e; ++i) in VisitFunctionTypeLoc()
319 Record.AddDeclRef(TL.getParam(i)); in VisitFunctionTypeLoc()
322 void TypeLocWriter::VisitFunctionProtoTypeLoc(FunctionProtoTypeLoc TL) { in VisitFunctionProtoTypeLoc() argument
323 VisitFunctionTypeLoc(TL); in VisitFunctionProtoTypeLoc()
326 void TypeLocWriter::VisitFunctionNoProtoTypeLoc(FunctionNoProtoTypeLoc TL) { in VisitFunctionNoProtoTypeLoc() argument
327 VisitFunctionTypeLoc(TL); in VisitFunctionNoProtoTypeLoc()
330 void TypeLocWriter::VisitUnresolvedUsingTypeLoc(UnresolvedUsingTypeLoc TL) { in VisitUnresolvedUsingTypeLoc() argument
331 Record.AddSourceLocation(TL.getNameLoc()); in VisitUnresolvedUsingTypeLoc()
334 void TypeLocWriter::VisitTypedefTypeLoc(TypedefTypeLoc TL) { in VisitTypedefTypeLoc() argument
335 Record.AddSourceLocation(TL.getNameLoc()); in VisitTypedefTypeLoc()
338 void TypeLocWriter::VisitObjCTypeParamTypeLoc(ObjCTypeParamTypeLoc TL) { in VisitObjCTypeParamTypeLoc() argument
339 if (TL.getNumProtocols()) { in VisitObjCTypeParamTypeLoc()
340 Record.AddSourceLocation(TL.getProtocolLAngleLoc()); in VisitObjCTypeParamTypeLoc()
341 Record.AddSourceLocation(TL.getProtocolRAngleLoc()); in VisitObjCTypeParamTypeLoc()
343 for (unsigned i = 0, e = TL.getNumProtocols(); i != e; ++i) in VisitObjCTypeParamTypeLoc()
344 Record.AddSourceLocation(TL.getProtocolLoc(i)); in VisitObjCTypeParamTypeLoc()
347 void TypeLocWriter::VisitTypeOfExprTypeLoc(TypeOfExprTypeLoc TL) { in VisitTypeOfExprTypeLoc() argument
348 Record.AddSourceLocation(TL.getTypeofLoc()); in VisitTypeOfExprTypeLoc()
349 Record.AddSourceLocation(TL.getLParenLoc()); in VisitTypeOfExprTypeLoc()
350 Record.AddSourceLocation(TL.getRParenLoc()); in VisitTypeOfExprTypeLoc()
353 void TypeLocWriter::VisitTypeOfTypeLoc(TypeOfTypeLoc TL) { in VisitTypeOfTypeLoc() argument
354 Record.AddSourceLocation(TL.getTypeofLoc()); in VisitTypeOfTypeLoc()
355 Record.AddSourceLocation(TL.getLParenLoc()); in VisitTypeOfTypeLoc()
356 Record.AddSourceLocation(TL.getRParenLoc()); in VisitTypeOfTypeLoc()
357 Record.AddTypeSourceInfo(TL.getUnderlyingTInfo()); in VisitTypeOfTypeLoc()
360 void TypeLocWriter::VisitDecltypeTypeLoc(DecltypeTypeLoc TL) { in VisitDecltypeTypeLoc() argument
361 Record.AddSourceLocation(TL.getNameLoc()); in VisitDecltypeTypeLoc()
364 void TypeLocWriter::VisitUnaryTransformTypeLoc(UnaryTransformTypeLoc TL) { in VisitUnaryTransformTypeLoc() argument
365 Record.AddSourceLocation(TL.getKWLoc()); in VisitUnaryTransformTypeLoc()
366 Record.AddSourceLocation(TL.getLParenLoc()); in VisitUnaryTransformTypeLoc()
367 Record.AddSourceLocation(TL.getRParenLoc()); in VisitUnaryTransformTypeLoc()
368 Record.AddTypeSourceInfo(TL.getUnderlyingTInfo()); in VisitUnaryTransformTypeLoc()
371 void TypeLocWriter::VisitAutoTypeLoc(AutoTypeLoc TL) { in VisitAutoTypeLoc() argument
372 Record.AddSourceLocation(TL.getNameLoc()); in VisitAutoTypeLoc()
373 Record.push_back(TL.isConstrained()); in VisitAutoTypeLoc()
374 if (TL.isConstrained()) { in VisitAutoTypeLoc()
375 Record.AddNestedNameSpecifierLoc(TL.getNestedNameSpecifierLoc()); in VisitAutoTypeLoc()
376 Record.AddSourceLocation(TL.getTemplateKWLoc()); in VisitAutoTypeLoc()
377 Record.AddSourceLocation(TL.getConceptNameLoc()); in VisitAutoTypeLoc()
378 Record.AddDeclRef(TL.getFoundDecl()); in VisitAutoTypeLoc()
379 Record.AddSourceLocation(TL.getLAngleLoc()); in VisitAutoTypeLoc()
380 Record.AddSourceLocation(TL.getRAngleLoc()); in VisitAutoTypeLoc()
381 for (unsigned I = 0; I < TL.getNumArgs(); ++I) in VisitAutoTypeLoc()
382 Record.AddTemplateArgumentLocInfo(TL.getTypePtr()->getArg(I).getKind(), in VisitAutoTypeLoc()
383 TL.getArgLocInfo(I)); in VisitAutoTypeLoc()
388 DeducedTemplateSpecializationTypeLoc TL) { in VisitDeducedTemplateSpecializationTypeLoc() argument
389 Record.AddSourceLocation(TL.getTemplateNameLoc()); in VisitDeducedTemplateSpecializationTypeLoc()
392 void TypeLocWriter::VisitRecordTypeLoc(RecordTypeLoc TL) { in VisitRecordTypeLoc() argument
393 Record.AddSourceLocation(TL.getNameLoc()); in VisitRecordTypeLoc()
396 void TypeLocWriter::VisitEnumTypeLoc(EnumTypeLoc TL) { in VisitEnumTypeLoc() argument
397 Record.AddSourceLocation(TL.getNameLoc()); in VisitEnumTypeLoc()
400 void TypeLocWriter::VisitAttributedTypeLoc(AttributedTypeLoc TL) { in VisitAttributedTypeLoc() argument
401 Record.AddAttr(TL.getAttr()); in VisitAttributedTypeLoc()
404 void TypeLocWriter::VisitTemplateTypeParmTypeLoc(TemplateTypeParmTypeLoc TL) { in VisitTemplateTypeParmTypeLoc() argument
405 Record.AddSourceLocation(TL.getNameLoc()); in VisitTemplateTypeParmTypeLoc()
409 SubstTemplateTypeParmTypeLoc TL) { in VisitSubstTemplateTypeParmTypeLoc() argument
410 Record.AddSourceLocation(TL.getNameLoc()); in VisitSubstTemplateTypeParmTypeLoc()
414 SubstTemplateTypeParmPackTypeLoc TL) { in VisitSubstTemplateTypeParmPackTypeLoc() argument
415 Record.AddSourceLocation(TL.getNameLoc()); in VisitSubstTemplateTypeParmPackTypeLoc()
419 TemplateSpecializationTypeLoc TL) { in VisitTemplateSpecializationTypeLoc() argument
420 Record.AddSourceLocation(TL.getTemplateKeywordLoc()); in VisitTemplateSpecializationTypeLoc()
421 Record.AddSourceLocation(TL.getTemplateNameLoc()); in VisitTemplateSpecializationTypeLoc()
422 Record.AddSourceLocation(TL.getLAngleLoc()); in VisitTemplateSpecializationTypeLoc()
423 Record.AddSourceLocation(TL.getRAngleLoc()); in VisitTemplateSpecializationTypeLoc()
424 for (unsigned i = 0, e = TL.getNumArgs(); i != e; ++i) in VisitTemplateSpecializationTypeLoc()
425 Record.AddTemplateArgumentLocInfo(TL.getArgLoc(i).getArgument().getKind(), in VisitTemplateSpecializationTypeLoc()
426 TL.getArgLoc(i).getLocInfo()); in VisitTemplateSpecializationTypeLoc()
429 void TypeLocWriter::VisitParenTypeLoc(ParenTypeLoc TL) { in VisitParenTypeLoc() argument
430 Record.AddSourceLocation(TL.getLParenLoc()); in VisitParenTypeLoc()
431 Record.AddSourceLocation(TL.getRParenLoc()); in VisitParenTypeLoc()
434 void TypeLocWriter::VisitMacroQualifiedTypeLoc(MacroQualifiedTypeLoc TL) { in VisitMacroQualifiedTypeLoc() argument
435 Record.AddSourceLocation(TL.getExpansionLoc()); in VisitMacroQualifiedTypeLoc()
438 void TypeLocWriter::VisitElaboratedTypeLoc(ElaboratedTypeLoc TL) { in VisitElaboratedTypeLoc() argument
439 Record.AddSourceLocation(TL.getElaboratedKeywordLoc()); in VisitElaboratedTypeLoc()
440 Record.AddNestedNameSpecifierLoc(TL.getQualifierLoc()); in VisitElaboratedTypeLoc()
443 void TypeLocWriter::VisitInjectedClassNameTypeLoc(InjectedClassNameTypeLoc TL) { in VisitInjectedClassNameTypeLoc() argument
444 Record.AddSourceLocation(TL.getNameLoc()); in VisitInjectedClassNameTypeLoc()
447 void TypeLocWriter::VisitDependentNameTypeLoc(DependentNameTypeLoc TL) { in VisitDependentNameTypeLoc() argument
448 Record.AddSourceLocation(TL.getElaboratedKeywordLoc()); in VisitDependentNameTypeLoc()
449 Record.AddNestedNameSpecifierLoc(TL.getQualifierLoc()); in VisitDependentNameTypeLoc()
450 Record.AddSourceLocation(TL.getNameLoc()); in VisitDependentNameTypeLoc()
454 DependentTemplateSpecializationTypeLoc TL) { in VisitDependentTemplateSpecializationTypeLoc() argument
455 Record.AddSourceLocation(TL.getElaboratedKeywordLoc()); in VisitDependentTemplateSpecializationTypeLoc()
456 Record.AddNestedNameSpecifierLoc(TL.getQualifierLoc()); in VisitDependentTemplateSpecializationTypeLoc()
457 Record.AddSourceLocation(TL.getTemplateKeywordLoc()); in VisitDependentTemplateSpecializationTypeLoc()
458 Record.AddSourceLocation(TL.getTemplateNameLoc()); in VisitDependentTemplateSpecializationTypeLoc()
459 Record.AddSourceLocation(TL.getLAngleLoc()); in VisitDependentTemplateSpecializationTypeLoc()
460 Record.AddSourceLocation(TL.getRAngleLoc()); in VisitDependentTemplateSpecializationTypeLoc()
461 for (unsigned I = 0, E = TL.getNumArgs(); I != E; ++I) in VisitDependentTemplateSpecializationTypeLoc()
462 Record.AddTemplateArgumentLocInfo(TL.getArgLoc(I).getArgument().getKind(), in VisitDependentTemplateSpecializationTypeLoc()
463 TL.getArgLoc(I).getLocInfo()); in VisitDependentTemplateSpecializationTypeLoc()
466 void TypeLocWriter::VisitPackExpansionTypeLoc(PackExpansionTypeLoc TL) { in VisitPackExpansionTypeLoc() argument
467 Record.AddSourceLocation(TL.getEllipsisLoc()); in VisitPackExpansionTypeLoc()
470 void TypeLocWriter::VisitObjCInterfaceTypeLoc(ObjCInterfaceTypeLoc TL) { in VisitObjCInterfaceTypeLoc() argument
471 Record.AddSourceLocation(TL.getNameLoc()); in VisitObjCInterfaceTypeLoc()
474 void TypeLocWriter::VisitObjCObjectTypeLoc(ObjCObjectTypeLoc TL) { in VisitObjCObjectTypeLoc() argument
475 Record.push_back(TL.hasBaseTypeAsWritten()); in VisitObjCObjectTypeLoc()
476 Record.AddSourceLocation(TL.getTypeArgsLAngleLoc()); in VisitObjCObjectTypeLoc()
477 Record.AddSourceLocation(TL.getTypeArgsRAngleLoc()); in VisitObjCObjectTypeLoc()
478 for (unsigned i = 0, e = TL.getNumTypeArgs(); i != e; ++i) in VisitObjCObjectTypeLoc()
479 Record.AddTypeSourceInfo(TL.getTypeArgTInfo(i)); in VisitObjCObjectTypeLoc()
480 Record.AddSourceLocation(TL.getProtocolLAngleLoc()); in VisitObjCObjectTypeLoc()
481 Record.AddSourceLocation(TL.getProtocolRAngleLoc()); in VisitObjCObjectTypeLoc()
482 for (unsigned i = 0, e = TL.getNumProtocols(); i != e; ++i) in VisitObjCObjectTypeLoc()
483 Record.AddSourceLocation(TL.getProtocolLoc(i)); in VisitObjCObjectTypeLoc()
486 void TypeLocWriter::VisitObjCObjectPointerTypeLoc(ObjCObjectPointerTypeLoc TL) { in VisitObjCObjectPointerTypeLoc() argument
487 Record.AddSourceLocation(TL.getStarLoc()); in VisitObjCObjectPointerTypeLoc()
490 void TypeLocWriter::VisitAtomicTypeLoc(AtomicTypeLoc TL) { in VisitAtomicTypeLoc() argument
491 Record.AddSourceLocation(TL.getKWLoc()); in VisitAtomicTypeLoc()
492 Record.AddSourceLocation(TL.getLParenLoc()); in VisitAtomicTypeLoc()
493 Record.AddSourceLocation(TL.getRParenLoc()); in VisitAtomicTypeLoc()
496 void TypeLocWriter::VisitPipeTypeLoc(PipeTypeLoc TL) { in VisitPipeTypeLoc() argument
497 Record.AddSourceLocation(TL.getKWLoc()); in VisitPipeTypeLoc()
500 void TypeLocWriter::VisitExtIntTypeLoc(clang::ExtIntTypeLoc TL) { in VisitExtIntTypeLoc() argument
501 Record.AddSourceLocation(TL.getNameLoc()); in VisitExtIntTypeLoc()
504 clang::DependentExtIntTypeLoc TL) { in VisitDependentExtIntTypeLoc() argument
505 Record.AddSourceLocation(TL.getNameLoc()); in VisitDependentExtIntTypeLoc()
5163 void ASTRecordWriter::AddTypeLoc(TypeLoc TL) { in AddTypeLoc() argument
5165 for (; !TL.isNull(); TL = TL.getNextTypeLoc()) in AddTypeLoc()
5166 TLW.Visit(TL); in AddTypeLoc()