Home | History | Annotate | Download | only in libclang

Lines Matching refs:TP

67   const Type *TP = T.getTypePtrOrNull();
68 if (!TP)
72 switch (TP->getTypeClass()) {
74 return GetBuiltinTypeKind(cast<BuiltinType>(TP));
207 const Type *TP = T.getTypePtrOrNull();
209 if (!TP)
212 switch (TP->getTypeClass()) {
214 T = cast<PointerType>(TP)->getPointeeType();
217 T = cast<BlockPointerType>(TP)->getPointeeType();
221 T = cast<ReferenceType>(TP)->getPointeeType();
224 T = cast<ObjCObjectPointerType>(TP)->getPointeeType();
238 const Type *TP = T.getTypePtrOrNull();
240 if (!TP)
246 switch (TP->getTypeClass()) {
248 D = cast<TypedefType>(TP)->getDecl();
251 D = cast<ObjCObjectType>(TP)->getInterface();
254 D = cast<ObjCInterfaceType>(TP)->getDecl();
258 D = cast<TagType>(TP)->getDecl();
261 if (const RecordType *Record = TP->getAs<RecordType>())
264 D = cast<TemplateSpecializationType>(TP)->getTemplateName()
269 D = cast<InjectedClassNameType>(TP)->getDecl();
275 TP = cast<ElaboratedType>(TP)->getNamedType().getTypePtrOrNull();
381 const Type *TP = T.getTypePtrOrNull();
383 if (TP) {
384 switch (TP->getTypeClass()) {
386 ET = cast<ConstantArrayType> (TP)->getElementType();
398 const Type *TP = T.getTypePtrOrNull();
400 if (TP) {
401 switch (TP->getTypeClass()) {
403 result = cast<ConstantArrayType> (TP)->getSize().getSExtValue();