Home | History | Annotate | Download | only in libclang

Lines Matching refs:TP

68   const Type *TP = T.getTypePtrOrNull();
69 if (!TP)
73 switch (TP->getTypeClass()) {
75 return GetBuiltinTypeKind(cast<BuiltinType>(TP));
353 const Type *TP = T.getTypePtrOrNull();
355 if (!TP)
358 switch (TP->getTypeClass()) {
360 T = cast<PointerType>(TP)->getPointeeType();
363 T = cast<BlockPointerType>(TP)->getPointeeType();
367 T = cast<ReferenceType>(TP)->getPointeeType();
370 T = cast<ObjCObjectPointerType>(TP)->getPointeeType();
373 T = cast<MemberPointerType>(TP)->getPointeeType();
387 const Type *TP = T.getTypePtrOrNull();
389 if (!TP)
395 switch (TP->getTypeClass()) {
397 D = cast<TypedefType>(TP)->getDecl();
400 D = cast<ObjCObjectType>(TP)->getInterface();
403 D = cast<ObjCInterfaceType>(TP)->getDecl();
407 D = cast<TagType>(TP)->getDecl();
410 if (const RecordType *Record = TP->getAs<RecordType>())
413 D = cast<TemplateSpecializationType>(TP)->getTemplateName()
418 TP = cast<AutoType>(TP)->getDeducedType().getTypePtrOrNull();
419 if (TP)
424 D = cast<InjectedClassNameType>(TP)->getDecl();
430 TP = cast<ElaboratedType>(TP)->getNamedType().getTypePtrOrNull();
621 const Type *TP = T.getTypePtrOrNull();
623 if (TP) {
624 switch (TP->getTypeClass()) {
626 ET = cast<ConstantArrayType> (TP)->getElementType();
629 ET = cast<IncompleteArrayType> (TP)->getElementType();
632 ET = cast<VariableArrayType> (TP)->getElementType();
635 ET = cast<DependentSizedArrayType> (TP)->getElementType();
638 ET = cast<VectorType> (TP)->getElementType();
641 ET = cast<ComplexType> (TP)->getElementType();
653 const Type *TP = T.getTypePtrOrNull();
655 if (TP) {
656 switch (TP->getTypeClass()) {
658 result = cast<ConstantArrayType> (TP)->getSize().getSExtValue();
661 result = cast<VectorType> (TP)->getNumElements();
673 const Type *TP = T.getTypePtrOrNull();
675 if (TP) {
676 switch (TP->getTypeClass()) {
678 ET = cast<ConstantArrayType> (TP)->getElementType();
681 ET = cast<IncompleteArrayType> (TP)->getElementType();
684 ET = cast<VariableArrayType> (TP)->getElementType();
687 ET = cast<DependentSizedArrayType> (TP)->getElementType();
699 const Type *TP = T.getTypePtrOrNull();
701 if (TP) {
702 switch (TP->getTypeClass()) {
704 result = cast<ConstantArrayType> (TP)->getSize().getSExtValue();
736 const Type *TP = T.getTypePtrOrNull();
738 if (TP && TP->getTypeClass() == Type::MemberPointer) {
739 ET = QualType(cast<MemberPointerType> (TP)->getClass(), 0);
996 const Type *TP = T.getTypePtrOrNull();
998 if (TP && TP->getTypeClass() == Type::Elaborated)
999 return MakeCXType(cast<ElaboratedType>(TP)->getNamedType(), GetTU(CT));