Lines Matching defs:TL

542           for (ASTUnit::top_level_iterator TL = CXXUnit->top_level_begin(),
544 TL != TLEnd; ++TL) {
545 const std::optional<bool> V = handleDeclForVisitation(*TL);
840 TypeLoc TL = TSInfo->getTypeLoc().IgnoreParens();
841 FunctionTypeLoc FTL = TL.getAs<FunctionTypeLoc>();
849 (!FTL && Visit(TL)))
1617 bool CursorVisitor::VisitQualifiedTypeLoc(QualifiedTypeLoc TL) {
1618 return Visit(TL.getUnqualifiedLoc());
1621 bool CursorVisitor::VisitBuiltinTypeLoc(BuiltinTypeLoc TL) {
1627 switch (TL.getTypePtr()->getKind()) {
1678 MakeCursorTypeRef(Typedef->getDecl(), TL.getBuiltinLoc(), TU));
1684 bool CursorVisitor::VisitTypedefTypeLoc(TypedefTypeLoc TL) {
1685 return Visit(MakeCursorTypeRef(TL.getTypedefNameDecl(), TL.getNameLoc(), TU));
1688 bool CursorVisitor::VisitUnresolvedUsingTypeLoc(UnresolvedUsingTypeLoc TL) {
1689 return Visit(MakeCursorTypeRef(TL.getDecl(), TL.getNameLoc(), TU));
1692 bool CursorVisitor::VisitTagTypeLoc(TagTypeLoc TL) {
1693 if (TL.isDefinition())
1694 return Visit(MakeCXCursor(TL.getDecl(), TU, RegionOfInterest));
1696 return Visit(MakeCursorTypeRef(TL.getDecl(), TL.getNameLoc(), TU));
1699 bool CursorVisitor::VisitTemplateTypeParmTypeLoc(TemplateTypeParmTypeLoc TL) {
1700 if (const auto *TC = TL.getDecl()->getTypeConstraint()) {
1705 return Visit(MakeCursorTypeRef(TL.getDecl(), TL.getNameLoc(), TU));
1708 bool CursorVisitor::VisitObjCInterfaceTypeLoc(ObjCInterfaceTypeLoc TL) {
1709 return Visit(MakeCursorObjCClassRef(TL.getIFaceDecl(), TL.getNameLoc(), TU));
1712 bool CursorVisitor::VisitObjCTypeParamTypeLoc(ObjCTypeParamTypeLoc TL) {
1713 if (Visit(MakeCursorTypeRef(TL.getDecl(), TL.getBeginLoc(), TU)))
1715 for (unsigned I = 0, N = TL.getNumProtocols(); I != N; ++I) {
1716 if (Visit(MakeCursorObjCProtocolRef(TL.getProtocol(I), TL.getProtocolLoc(I),
1724 bool CursorVisitor::VisitObjCObjectTypeLoc(ObjCObjectTypeLoc TL) {
1725 if (TL.hasBaseTypeAsWritten() && Visit(TL.getBaseLoc()))
1728 for (unsigned I = 0, N = TL.getNumTypeArgs(); I != N; ++I) {
1729 if (Visit(TL.getTypeArgTInfo(I)->getTypeLoc()))
1733 for (unsigned I = 0, N = TL.getNumProtocols(); I != N; ++I) {
1734 if (Visit(MakeCursorObjCProtocolRef(TL.getProtocol(I), TL.getProtocolLoc(I),
1742 bool CursorVisitor::VisitObjCObjectPointerTypeLoc(ObjCObjectPointerTypeLoc TL) {
1743 return Visit(TL.getPointeeLoc());
1746 bool CursorVisitor::VisitParenTypeLoc(ParenTypeLoc TL) {
1747 return Visit(TL.getInnerLoc());
1750 bool CursorVisitor::VisitMacroQualifiedTypeLoc(MacroQualifiedTypeLoc TL) {
1751 return Visit(TL.getInnerLoc());
1754 bool CursorVisitor::VisitPointerTypeLoc(PointerTypeLoc TL) {
1755 return Visit(TL.getPointeeLoc());
1758 bool CursorVisitor::VisitBlockPointerTypeLoc(BlockPointerTypeLoc TL) {
1759 return Visit(TL.getPointeeLoc());
1762 bool CursorVisitor::VisitMemberPointerTypeLoc(MemberPointerTypeLoc TL) {
1763 return Visit(TL.getPointeeLoc());
1766 bool CursorVisitor::VisitLValueReferenceTypeLoc(LValueReferenceTypeLoc TL) {
1767 return Visit(TL.getPointeeLoc());
1770 bool CursorVisitor::VisitRValueReferenceTypeLoc(RValueReferenceTypeLoc TL) {
1771 return Visit(TL.getPointeeLoc());
1774 bool CursorVisitor::VisitUsingTypeLoc(UsingTypeLoc TL) {
1775 auto *underlyingDecl = TL.getUnderlyingType()->getAsTagDecl();
1777 return Visit(MakeCursorTypeRef(underlyingDecl, TL.getNameLoc(), TU));
1782 bool CursorVisitor::VisitAttributedTypeLoc(AttributedTypeLoc TL) {
1783 return Visit(TL.getModifiedLoc());
1786 bool CursorVisitor::VisitCountAttributedTypeLoc(CountAttributedTypeLoc TL) {
1787 return Visit(TL.getInnerLoc());
1790 bool CursorVisitor::VisitBTFTagAttributedTypeLoc(BTFTagAttributedTypeLoc TL) {
1791 return Visit(TL.getWrappedLoc());
1795 HLSLAttributedResourceTypeLoc TL) {
1796 return Visit(TL.getWrappedLoc());
1799 bool CursorVisitor::VisitFunctionTypeLoc(FunctionTypeLoc TL,
1801 if (!SkipResultType && Visit(TL.getReturnLoc()))
1804 for (unsigned I = 0, N = TL.getNumParams(); I != N; ++I)
1805 if (Decl *D = TL.getParam(I))
1812 bool CursorVisitor::VisitArrayTypeLoc(ArrayTypeLoc TL) {
1813 if (Visit(TL.getElementLoc()))
1816 if (Expr *Size = TL.getSizeExpr())
1822 bool CursorVisitor::VisitDecayedTypeLoc(DecayedTypeLoc TL) {
1823 return Visit(TL.getOriginalLoc());
1826 bool CursorVisitor::VisitAdjustedTypeLoc(AdjustedTypeLoc TL) {
1827 return Visit(TL.getOriginalLoc());
1831 DeducedTemplateSpecializationTypeLoc TL) {
1832 if (VisitTemplateName(TL.getTypePtr()->getTemplateName(),
1833 TL.getTemplateNameLoc()))
1840 TemplateSpecializationTypeLoc TL) {
1842 if (VisitTemplateName(TL.getTypePtr()->getTemplateName(),
1843 TL.getTemplateNameLoc()))
1847 for (unsigned I = 0, N = TL.getNumArgs(); I != N; ++I)
1848 if (VisitTemplateArgumentLoc(TL.getArgLoc(I)))
1854 bool CursorVisitor::VisitTypeOfExprTypeLoc(TypeOfExprTypeLoc TL) {
1855 return Visit(MakeCXCursor(TL.getUnderlyingExpr(), StmtParent, TU));
1858 bool CursorVisitor::VisitTypeOfTypeLoc(TypeOfTypeLoc TL) {
1859 if (TypeSourceInfo *TSInfo = TL.getUnmodifiedTInfo())
1865 bool CursorVisitor::VisitUnaryTransformTypeLoc(UnaryTransformTypeLoc TL) {
1866 if (TypeSourceInfo *TSInfo = TL.getUnderlyingTInfo())
1872 bool CursorVisitor::VisitDependentNameTypeLoc(DependentNameTypeLoc TL) {
1873 return VisitNestedNameSpecifierLoc(TL.getQualifierLoc());
1877 DependentTemplateSpecializationTypeLoc TL) {
1879 if (TL.getQualifierLoc() && VisitNestedNameSpecifierLoc(TL.getQualifierLoc()))
1883 for (unsigned I = 0, N = TL.getNumArgs(); I != N; ++I)
1884 if (VisitTemplateArgumentLoc(TL.getArgLoc(I)))
1890 bool CursorVisitor::VisitElaboratedTypeLoc(ElaboratedTypeLoc TL) {
1891 if (VisitNestedNameSpecifierLoc(TL.getQualifierLoc()))
1894 return Visit(TL.getNamedTypeLoc());
1897 bool CursorVisitor::VisitPackExpansionTypeLoc(PackExpansionTypeLoc TL) {
1898 return Visit(TL.getPatternLoc());
1901 bool CursorVisitor::VisitDecltypeTypeLoc(DecltypeTypeLoc TL) {
1902 if (Expr *E = TL.getUnderlyingExpr())
1908 bool CursorVisitor::VisitPackIndexingTypeLoc(PackIndexingTypeLoc TL) {
1909 if (Visit(TL.getPatternLoc()))
1911 return Visit(MakeCXCursor(TL.getIndexExpr(), StmtParent, TU));
1914 bool CursorVisitor::VisitInjectedClassNameTypeLoc(InjectedClassNameTypeLoc TL) {
1915 return Visit(MakeCursorTypeRef(TL.getDecl(), TL.getNameLoc(), TU));
1918 bool CursorVisitor::VisitAtomicTypeLoc(AtomicTypeLoc TL) {
1919 return Visit(TL.getValueLoc());
1922 bool CursorVisitor::VisitPipeTypeLoc(PipeTypeLoc TL) {
1923 return Visit(TL.getValueLoc());
1927 bool CursorVisitor::Visit##CLASS##TypeLoc(CLASS##TypeLoc TL) { \
1928 return Visit##PARENT##Loc(TL); \
3898 TypeLoc TL = E->getCallOperator()->getTypeSourceInfo()->getTypeLoc();
3900 if (FunctionTypeLoc Proto = TL.getAs<FunctionProtoTypeLoc>()) {