Lines Matching refs:TL
40 bool VisitAttributedTypeLoc(AttributedTypeLoc TL) { in VisitAttributedTypeLoc() argument
41 handleAttr(TL); in VisitAttributedTypeLoc()
63 TypeLoc TL = TInfo->getTypeLoc(); in lookForAttribute() local
64 while (TL) { in lookForAttribute()
65 if (const QualifiedTypeLoc *QL = dyn_cast<QualifiedTypeLoc>(&TL)) { in lookForAttribute()
66 TL = QL->getUnqualifiedLoc(); in lookForAttribute()
68 Attr = dyn_cast<AttributedTypeLoc>(&TL)) { in lookForAttribute()
71 TL = Attr->getModifiedLoc(); in lookForAttribute()
72 } else if (const ArrayTypeLoc *Arr = dyn_cast<ArrayTypeLoc>(&TL)) { in lookForAttribute()
73 TL = Arr->getElementLoc(); in lookForAttribute()
74 } else if (const PointerTypeLoc *PT = dyn_cast<PointerTypeLoc>(&TL)) { in lookForAttribute()
75 TL = PT->getPointeeLoc(); in lookForAttribute()
76 } else if (const ReferenceTypeLoc *RT = dyn_cast<ReferenceTypeLoc>(&TL)) in lookForAttribute()
77 TL = RT->getPointeeLoc(); in lookForAttribute()
83 bool handleAttr(AttributedTypeLoc TL, Decl *D = 0) { in handleAttr() argument
84 if (TL.getAttrKind() != AttributedType::attr_objc_ownership) in handleAttr()
87 SourceLocation Loc = TL.getAttrNameLoc(); in handleAttr()
99 SM.getSpellingLoc(TL.getAttrEnumOperandLoc()), in handleAttr()
117 Attr.ModifiedType = TL.getModifiedLoc().getType(); in handleAttr()
250 TypeLoc TL = TInfo->getTypeLoc(); in checkAllAtProps() local
251 if (AttributedTypeLoc *ATL = dyn_cast<AttributedTypeLoc>(&TL)) { in checkAllAtProps()