Home | History | Annotate | Download | only in libclang

Lines Matching defs:TP

67   const Type *TP = T.getTypePtrOrNull();
68 if (!TP)
72 switch (TP->getTypeClass()) {
74 return GetBuiltinTypeKind(cast<BuiltinType>(TP));
333 const Type *TP = T.getTypePtrOrNull();
335 if (!TP)
338 switch (TP->getTypeClass()) {
340 T = cast<PointerType>(TP)->getPointeeType();
343 T = cast<BlockPointerType>(TP)->getPointeeType();
347 T = cast<ReferenceType>(TP)->getPointeeType();
350 T = cast<ObjCObjectPointerType>(TP)->getPointeeType();
364 const Type *TP = T.getTypePtrOrNull();
366 if (!TP)
372 switch (TP->getTypeClass()) {
374 D = cast<TypedefType>(TP)->getDecl();
377 D = cast<ObjCObjectType>(TP)->getInterface();
380 D = cast<ObjCInterfaceType>(TP)->getDecl();
384 D = cast<TagType>(TP)->getDecl();
387 if (const RecordType *Record = TP->getAs<RecordType>())
390 D = cast<TemplateSpecializationType>(TP)->getTemplateName()
395 D = cast<InjectedClassNameType>(TP)->getDecl();
401 TP = cast<ElaboratedType>(TP)->getNamedType().getTypePtrOrNull();
578 const Type *TP = T.getTypePtrOrNull();
580 if (TP) {
581 switch (TP->getTypeClass()) {
583 ET = cast<ConstantArrayType> (TP)->getElementType();
586 ET = cast<VectorType> (TP)->getElementType();
589 ET = cast<ComplexType> (TP)->getElementType();
601 const Type *TP = T.getTypePtrOrNull();
603 if (TP) {
604 switch (TP->getTypeClass()) {
606 result = cast<ConstantArrayType> (TP)->getSize().getSExtValue();
609 result = cast<VectorType> (TP)->getNumElements();
621 const Type *TP = T.getTypePtrOrNull();
623 if (TP) {
624 switch (TP->getTypeClass()) {
626 ET = cast<ConstantArrayType> (TP)->getElementType();
638 const Type *TP = T.getTypePtrOrNull();
640 if (TP) {
641 switch (TP->getTypeClass()) {
643 result = cast<ConstantArrayType> (TP)->getSize().getSExtValue();