Lines Matching defs:TP

85   const Type *TP = T.getTypePtrOrNull();
86 if (!TP)
90 switch (TP->getTypeClass()) {
92 return GetBuiltinTypeKind(cast<BuiltinType>(TP));
445 const Type *TP = T.getTypePtrOrNull();
447 if (!TP)
451 switch (TP->getTypeClass()) {
453 T = cast<PointerType>(TP)->getPointeeType();
456 T = cast<BlockPointerType>(TP)->getPointeeType();
460 T = cast<ReferenceType>(TP)->getPointeeType();
463 T = cast<ObjCObjectPointerType>(TP)->getPointeeType();
466 T = cast<MemberPointerType>(TP)->getPointeeType();
470 TP = cast<DeducedType>(TP)->getDeducedType().getTypePtrOrNull();
471 if (TP)
486 const Type *TP = T.getTypePtrOrNull();
488 if (!TP)
494 switch (TP->getTypeClass()) {
496 D = cast<TypedefType>(TP)->getDecl();
499 D = cast<ObjCObjectType>(TP)->getInterface();
502 D = cast<ObjCInterfaceType>(TP)->getDecl();
506 D = cast<TagType>(TP)->getDecl();
509 if (const RecordType *Record = TP->getAs<RecordType>())
512 D = cast<TemplateSpecializationType>(TP)->getTemplateName()
518 TP = cast<DeducedType>(TP)->getDeducedType().getTypePtrOrNull();
519 if (TP)
524 D = cast<InjectedClassNameType>(TP)->getDecl();
530 TP = cast<ElaboratedType>(TP)->getNamedType().getTypePtrOrNull();
795 const Type *TP = T.getTypePtrOrNull();
797 if (TP) {
798 switch (TP->getTypeClass()) {
800 ET = cast<ConstantArrayType> (TP)->getElementType();
803 ET = cast<IncompleteArrayType> (TP)->getElementType();
806 ET = cast<VariableArrayType> (TP)->getElementType();
809 ET = cast<DependentSizedArrayType> (TP)->getElementType();
812 ET = cast<VectorType> (TP)->getElementType();
815 ET = cast<ExtVectorType>(TP)->getElementType();
818 ET = cast<ComplexType> (TP)->getElementType();
830 const Type *TP = T.getTypePtrOrNull();
832 if (TP) {
833 switch (TP->getTypeClass()) {
835 result = cast<ConstantArrayType> (TP)->getSize().getSExtValue();
838 result = cast<VectorType> (TP)->getNumElements();
841 result = cast<ExtVectorType>(TP)->getNumElements();
853 const Type *TP = T.getTypePtrOrNull();
855 if (TP) {
856 switch (TP->getTypeClass()) {
858 ET = cast<ConstantArrayType> (TP)->getElementType();
861 ET = cast<IncompleteArrayType> (TP)->getElementType();
864 ET = cast<VariableArrayType> (TP)->getElementType();
867 ET = cast<DependentSizedArrayType> (TP)->getElementType();
879 const Type *TP = T.getTypePtrOrNull();
881 if (TP) {
882 switch (TP->getTypeClass()) {
884 result = cast<ConstantArrayType> (TP)->getSize().getSExtValue();
923 const Type *TP = T.getTypePtrOrNull();
925 if (TP && TP->getTypeClass() == Type::MemberPointer) {
926 ET = QualType(cast<MemberPointerType> (TP)->getClass(), 0);
1289 const Type *TP = T.getTypePtrOrNull();
1291 if (TP && TP->getTypeClass() == Type::Elaborated)
1292 return MakeCXType(cast<ElaboratedType>(TP)->getNamedType(), GetTU(CT));