Lines Matching refs:TL

525           for (ASTUnit::top_level_iterator TL = CXXUnit->top_level_begin(),  in VisitChildren()  local
527 TL != TLEnd; ++TL) { in VisitChildren()
528 if (Visit(MakeCXCursor(*TL, TU, RegionOfInterest), true)) in VisitChildren()
704 TypeLoc TL = SpecType->getTypeLoc(); in VisitClassTemplateSpecializationDecl() local
706 TL.getAs<TemplateSpecializationTypeLoc>()) { in VisitClassTemplateSpecializationDecl()
789 TypeLoc TL = TSInfo->getTypeLoc().IgnoreParens(); in VisitFunctionDecl() local
790 FunctionTypeLoc FTL = TL.getAs<FunctionTypeLoc>(); in VisitFunctionDecl()
796 (!FTL && Visit(TL))) in VisitFunctionDecl()
1406 bool CursorVisitor::VisitQualifiedTypeLoc(QualifiedTypeLoc TL) { in VisitQualifiedTypeLoc() argument
1407 return Visit(TL.getUnqualifiedLoc()); in VisitQualifiedTypeLoc()
1410 bool CursorVisitor::VisitBuiltinTypeLoc(BuiltinTypeLoc TL) { in VisitBuiltinTypeLoc() argument
1416 switch (TL.getTypePtr()->getKind()) { in VisitBuiltinTypeLoc()
1452 return Visit(MakeCursorTypeRef(Typedef->getDecl(), TL.getBuiltinLoc(), in VisitBuiltinTypeLoc()
1459 bool CursorVisitor::VisitTypedefTypeLoc(TypedefTypeLoc TL) { in VisitTypedefTypeLoc() argument
1460 return Visit(MakeCursorTypeRef(TL.getTypedefNameDecl(), TL.getNameLoc(), TU)); in VisitTypedefTypeLoc()
1463 bool CursorVisitor::VisitUnresolvedUsingTypeLoc(UnresolvedUsingTypeLoc TL) { in VisitUnresolvedUsingTypeLoc() argument
1464 return Visit(MakeCursorTypeRef(TL.getDecl(), TL.getNameLoc(), TU)); in VisitUnresolvedUsingTypeLoc()
1467 bool CursorVisitor::VisitTagTypeLoc(TagTypeLoc TL) { in VisitTagTypeLoc() argument
1468 if (TL.isDefinition()) in VisitTagTypeLoc()
1469 return Visit(MakeCXCursor(TL.getDecl(), TU, RegionOfInterest)); in VisitTagTypeLoc()
1471 return Visit(MakeCursorTypeRef(TL.getDecl(), TL.getNameLoc(), TU)); in VisitTagTypeLoc()
1474 bool CursorVisitor::VisitTemplateTypeParmTypeLoc(TemplateTypeParmTypeLoc TL) { in VisitTemplateTypeParmTypeLoc() argument
1475 return Visit(MakeCursorTypeRef(TL.getDecl(), TL.getNameLoc(), TU)); in VisitTemplateTypeParmTypeLoc()
1478 bool CursorVisitor::VisitObjCInterfaceTypeLoc(ObjCInterfaceTypeLoc TL) { in VisitObjCInterfaceTypeLoc() argument
1479 if (Visit(MakeCursorObjCClassRef(TL.getIFaceDecl(), TL.getNameLoc(), TU))) in VisitObjCInterfaceTypeLoc()
1485 bool CursorVisitor::VisitObjCObjectTypeLoc(ObjCObjectTypeLoc TL) { in VisitObjCObjectTypeLoc() argument
1486 if (TL.hasBaseTypeAsWritten() && Visit(TL.getBaseLoc())) in VisitObjCObjectTypeLoc()
1489 for (unsigned I = 0, N = TL.getNumProtocols(); I != N; ++I) { in VisitObjCObjectTypeLoc()
1490 if (Visit(MakeCursorObjCProtocolRef(TL.getProtocol(I), TL.getProtocolLoc(I), in VisitObjCObjectTypeLoc()
1498 bool CursorVisitor::VisitObjCObjectPointerTypeLoc(ObjCObjectPointerTypeLoc TL) { in VisitObjCObjectPointerTypeLoc() argument
1499 return Visit(TL.getPointeeLoc()); in VisitObjCObjectPointerTypeLoc()
1502 bool CursorVisitor::VisitParenTypeLoc(ParenTypeLoc TL) { in VisitParenTypeLoc() argument
1503 return Visit(TL.getInnerLoc()); in VisitParenTypeLoc()
1506 bool CursorVisitor::VisitPointerTypeLoc(PointerTypeLoc TL) { in VisitPointerTypeLoc() argument
1507 return Visit(TL.getPointeeLoc()); in VisitPointerTypeLoc()
1510 bool CursorVisitor::VisitBlockPointerTypeLoc(BlockPointerTypeLoc TL) { in VisitBlockPointerTypeLoc() argument
1511 return Visit(TL.getPointeeLoc()); in VisitBlockPointerTypeLoc()
1514 bool CursorVisitor::VisitMemberPointerTypeLoc(MemberPointerTypeLoc TL) { in VisitMemberPointerTypeLoc() argument
1515 return Visit(TL.getPointeeLoc()); in VisitMemberPointerTypeLoc()
1518 bool CursorVisitor::VisitLValueReferenceTypeLoc(LValueReferenceTypeLoc TL) { in VisitLValueReferenceTypeLoc() argument
1519 return Visit(TL.getPointeeLoc()); in VisitLValueReferenceTypeLoc()
1522 bool CursorVisitor::VisitRValueReferenceTypeLoc(RValueReferenceTypeLoc TL) { in VisitRValueReferenceTypeLoc() argument
1523 return Visit(TL.getPointeeLoc()); in VisitRValueReferenceTypeLoc()
1526 bool CursorVisitor::VisitAttributedTypeLoc(AttributedTypeLoc TL) { in VisitAttributedTypeLoc() argument
1527 return Visit(TL.getModifiedLoc()); in VisitAttributedTypeLoc()
1530 bool CursorVisitor::VisitFunctionTypeLoc(FunctionTypeLoc TL, in VisitFunctionTypeLoc() argument
1532 if (!SkipResultType && Visit(TL.getReturnLoc())) in VisitFunctionTypeLoc()
1535 for (unsigned I = 0, N = TL.getNumParams(); I != N; ++I) in VisitFunctionTypeLoc()
1536 if (Decl *D = TL.getParam(I)) in VisitFunctionTypeLoc()
1543 bool CursorVisitor::VisitArrayTypeLoc(ArrayTypeLoc TL) { in VisitArrayTypeLoc() argument
1544 if (Visit(TL.getElementLoc())) in VisitArrayTypeLoc()
1547 if (Expr *Size = TL.getSizeExpr()) in VisitArrayTypeLoc()
1553 bool CursorVisitor::VisitDecayedTypeLoc(DecayedTypeLoc TL) { in VisitDecayedTypeLoc() argument
1554 return Visit(TL.getOriginalLoc()); in VisitDecayedTypeLoc()
1557 bool CursorVisitor::VisitAdjustedTypeLoc(AdjustedTypeLoc TL) { in VisitAdjustedTypeLoc() argument
1558 return Visit(TL.getOriginalLoc()); in VisitAdjustedTypeLoc()
1562 TemplateSpecializationTypeLoc TL) { in VisitTemplateSpecializationTypeLoc() argument
1564 if (VisitTemplateName(TL.getTypePtr()->getTemplateName(), in VisitTemplateSpecializationTypeLoc()
1565 TL.getTemplateNameLoc())) in VisitTemplateSpecializationTypeLoc()
1569 for (unsigned I = 0, N = TL.getNumArgs(); I != N; ++I) in VisitTemplateSpecializationTypeLoc()
1570 if (VisitTemplateArgumentLoc(TL.getArgLoc(I))) in VisitTemplateSpecializationTypeLoc()
1576 bool CursorVisitor::VisitTypeOfExprTypeLoc(TypeOfExprTypeLoc TL) { in VisitTypeOfExprTypeLoc() argument
1577 return Visit(MakeCXCursor(TL.getUnderlyingExpr(), StmtParent, TU)); in VisitTypeOfExprTypeLoc()
1580 bool CursorVisitor::VisitTypeOfTypeLoc(TypeOfTypeLoc TL) { in VisitTypeOfTypeLoc() argument
1581 if (TypeSourceInfo *TSInfo = TL.getUnderlyingTInfo()) in VisitTypeOfTypeLoc()
1587 bool CursorVisitor::VisitUnaryTransformTypeLoc(UnaryTransformTypeLoc TL) { in VisitUnaryTransformTypeLoc() argument
1588 if (TypeSourceInfo *TSInfo = TL.getUnderlyingTInfo()) in VisitUnaryTransformTypeLoc()
1594 bool CursorVisitor::VisitDependentNameTypeLoc(DependentNameTypeLoc TL) { in VisitDependentNameTypeLoc() argument
1595 if (VisitNestedNameSpecifierLoc(TL.getQualifierLoc())) in VisitDependentNameTypeLoc()
1602 DependentTemplateSpecializationTypeLoc TL) { in VisitDependentTemplateSpecializationTypeLoc() argument
1604 if (TL.getQualifierLoc() && in VisitDependentTemplateSpecializationTypeLoc()
1605 VisitNestedNameSpecifierLoc(TL.getQualifierLoc())) in VisitDependentTemplateSpecializationTypeLoc()
1609 for (unsigned I = 0, N = TL.getNumArgs(); I != N; ++I) in VisitDependentTemplateSpecializationTypeLoc()
1610 if (VisitTemplateArgumentLoc(TL.getArgLoc(I))) in VisitDependentTemplateSpecializationTypeLoc()
1616 bool CursorVisitor::VisitElaboratedTypeLoc(ElaboratedTypeLoc TL) { in VisitElaboratedTypeLoc() argument
1617 if (VisitNestedNameSpecifierLoc(TL.getQualifierLoc())) in VisitElaboratedTypeLoc()
1620 return Visit(TL.getNamedTypeLoc()); in VisitElaboratedTypeLoc()
1623 bool CursorVisitor::VisitPackExpansionTypeLoc(PackExpansionTypeLoc TL) { in VisitPackExpansionTypeLoc() argument
1624 return Visit(TL.getPatternLoc()); in VisitPackExpansionTypeLoc()
1627 bool CursorVisitor::VisitDecltypeTypeLoc(DecltypeTypeLoc TL) { in VisitDecltypeTypeLoc() argument
1628 if (Expr *E = TL.getUnderlyingExpr()) in VisitDecltypeTypeLoc()
1634 bool CursorVisitor::VisitInjectedClassNameTypeLoc(InjectedClassNameTypeLoc TL) { in VisitInjectedClassNameTypeLoc() argument
1635 return Visit(MakeCursorTypeRef(TL.getDecl(), TL.getNameLoc(), TU)); in VisitInjectedClassNameTypeLoc()
1638 bool CursorVisitor::VisitAtomicTypeLoc(AtomicTypeLoc TL) { in VisitAtomicTypeLoc() argument
1639 return Visit(TL.getValueLoc()); in VisitAtomicTypeLoc()
1643 bool CursorVisitor::Visit##CLASS##TypeLoc(CLASS##TypeLoc TL) { \
1644 return Visit##PARENT##Loc(TL); \
2692 TypeLoc TL = E->getCallOperator()->getTypeSourceInfo()->getTypeLoc(); in RunVisitorWorkList() local
2695 if (Visit(TL)) in RunVisitorWorkList()
2698 TL.getAs<FunctionProtoTypeLoc>()) { in RunVisitorWorkList()