reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

tools/clang/include/clang/AST/Type.h
 2256   template <typename T> const T *castAs() const;

References

tools/clang/include/clang/AST/Decl.h
 2373     return getType()->castAs<FunctionType>()->getReturnType();
 2386     return T->castAs<FunctionType>()->getReturnType();
 2403     return getType()->castAs<FunctionType>()->getCallResultType(
tools/clang/include/clang/AST/DeclCXX.h
 1945   bool isConst() const { return getType()->castAs<FunctionType>()->isConst(); }
 1946   bool isVolatile() const { return getType()->castAs<FunctionType>()->isVolatile(); }
 2059     return getType()->castAs<FunctionProtoType>()->getMethodQuals();
 2074     return getType()->castAs<FunctionProtoType>()->getRefQualifier();
 2728     return getType()->castAs<FunctionType>()->getReturnType();
tools/clang/include/clang/AST/DeclObjC.h
 1566       return TInfo->getType()->castAs<ObjCObjectType>();
tools/clang/include/clang/AST/ExprCXX.h
 2194     return getType()->castAs<PointerType>()->getPointeeType();
tools/clang/include/clang/AST/Type.h
 2746       T = T->PointeeType->castAs<ReferenceType>();
 5912     return PointeeType->castAs<ObjCObjectType>();
tools/clang/include/clang/Sema/Overload.h
  872         return STy->castAs<FunctionProtoType>()->getNumParams();
tools/clang/lib/AST/APValue.cpp
  496     QualType ElemTy = Ty->castAs<VectorType>()->getElementType();
tools/clang/lib/AST/ASTContext.cpp
 2834     const auto *FPT = FD->getType()->castAs<FunctionProtoType>();
 2872   const auto *Proto = Orig->castAs<FunctionProtoType>();
 4697     const auto *objPtr = type->castAs<ObjCObjectPointerType>();
 4705     const auto *objPtr = type->castAs<ObjCObjectPointerType>();
 6067   const auto *TD = T->castAs<TypedefType>();
 6326       Expr->getType()->castAs<BlockPointerType>()->getPointeeType();
 6327   QualType BlockReturnTy = BlockTy->castAs<FunctionType>()->getReturnType();
 6817     const auto *CT = T->castAs<ComplexType>();
 6825     const auto *AT = T->castAs<AtomicType>();
 6838       const auto *PT = T->castAs<PointerType>();
 6845       PointeeTy = T->castAs<ReferenceType>()->getPointeeType();
 6992     const auto *BT = T->castAs<BlockPointerType>();
 6995       const auto *FT = BT->getPointeeType()->castAs<FunctionType>();
 7032     ObjCInterfaceDecl *OI = T->castAs<ObjCObjectType>()->getInterface();
 7056     const auto *OPT = T->castAs<ObjCObjectPointerType>();
 7916       return getObjCGCAttrKind(Ty->castAs<PointerType>()->getPointeeType());
 7953   const auto *First = FirstVec->castAs<VectorType>();
 7954   const auto *Second = SecondVec->castAs<VectorType>();
 8447     LHS = LHSSuperType->castAs<ObjCObjectType>();
 8497     RHS = RHSSuperType->castAs<ObjCObjectType>();
 8551       RHSSuper = RHSSuper->getSuperClassType()->castAs<ObjCObjectType>();
 8972     QualType LHSPointee = LHS->castAs<PointerType>()->getPointeeType();
 8973     QualType RHSPointee = RHS->castAs<PointerType>()->getPointeeType();
 8991     QualType LHSPointee = LHS->castAs<BlockPointerType>()->getPointeeType();
 8992     QualType RHSPointee = RHS->castAs<BlockPointerType>()->getPointeeType();
 9024     QualType LHSValue = LHS->castAs<AtomicType>()->getValueType();
 9025     QualType RHSValue = RHS->castAs<AtomicType>()->getValueType();
 9135     if (areCompatVectorTypes(LHSCan->castAs<VectorType>(),
 9136                              RHSCan->castAs<VectorType>()))
 9143     if (canAssignObjCInterfaces(LHS->castAs<ObjCObjectType>(),
 9144                                 RHS->castAs<ObjCObjectType>()))
 9151               LHS->castAs<ObjCObjectPointerType>(),
 9152               RHS->castAs<ObjCObjectPointerType>(), BlockReturnType))
 9156     if (canAssignObjCInterfaces(LHS->castAs<ObjCObjectPointerType>(),
 9157                                 RHS->castAs<ObjCObjectPointerType>()))
 9243       const auto *F = LHS->castAs<FunctionType>();
 9284     QualType LHSBaseQT = LHS->castAs<ObjCObjectPointerType>()->getPointeeType();
 9285     QualType RHSBaseQT = RHS->castAs<ObjCObjectPointerType>()->getPointeeType();
tools/clang/lib/AST/Decl.cpp
 1630         FT = dyn_cast<FunctionProtoType>(FD->getType()->castAs<FunctionType>());
 2923   const auto *proto = getType()->castAs<FunctionProtoType>();
 2952   const auto *FPT = getType()->castAs<FunctionProtoType>();
tools/clang/lib/AST/DeclBase.cpp
  962     Ty = Ty->castAs<PointerType>()->getPointeeType();
  964     Ty = Ty->castAs<ReferenceType>()->getPointeeType();
  966     Ty = Ty->castAs<BlockPointerType>()->getPointeeType();
tools/clang/lib/AST/DeclCXX.cpp
 2131       auto *MPT = BO->getRHS()->getType()->castAs<MemberPointerType>();
 2570           getType()->castAs<FunctionProtoType>()->isVariadic()) ||
tools/clang/lib/AST/Expr.cpp
 1511   const FunctionType *FnType = CalleeType->castAs<FunctionType>();
 2361            ->getPointeeType()->castAs<FunctionProtoType>();
 2796     QualType type = op->getRHS()->getType()->castAs<MemberPointerType>()
 4643   auto T = getPtr()->getType()->castAs<PointerType>()->getPointeeType();
tools/clang/lib/AST/ExprCXX.cpp
  294              ->castAs<FunctionProtoType>()
  324   return ArgType->castAs<PointerType>()->getPointeeType();
  838     DestType = DestType->castAs<PointerType>()->getPointeeType();
 1586       BaseType = BaseType->castAs<PointerType>()->getPointeeType();
tools/clang/lib/AST/ExprConstant.cpp
  219         const ComplexType *CT = Type->castAs<ComplexType>();
 2426     QualType EltTy = VecTy->castAs<VectorType>()->getElementType();
 3297           ObjType, ObjType->castAs<ComplexType>()->getElementType());
 3464         ObjType = ObjType->castAs<ComplexType>()->getElementType();
 3958                    SubobjType->castAs<ComplexType>()->getElementType()
 3962                    SubobjType->castAs<ComplexType>()->getElementType()
 7213       BaseTy = E->getBase()->getType()->castAs<PointerType>()->getPointeeType();
 7788   QualType Pointee = E->getType()->castAs<PointerType>()->getPointeeType();
 7926   QualType Pointee = PExp->getType()->castAs<PointerType>()->getPointeeType();
 7982                                   castAs<PointerType>()->getPointeeType(),
 8121   QualType PointeeTy = E->getType()->castAs<PointerType>()->getPointeeType();
 8720     const Type *FinalTy = E->getType()->castAs<MemberPointerType>()->getClass();
 9231       assert(V.size() == E->getType()->castAs<VectorType>()->getNumElements());
 9260   const VectorType *VTy = E->getType()->castAs<VectorType>();
 9331   const VectorType *VT = E->getType()->castAs<VectorType>();
 9380   const auto *VT = E->getType()->castAs<VectorType>();
10065         CanTy->castAs<AtomicType>()->getValueType(), LangOpts);
10270       BaseType = BaseType->castAs<PointerType>()->getPointeeType();
10286       const auto *CT = BaseType->castAs<ComplexType>();
10935           castAs<PointerType>()->getPointeeType();
11857     QualType ElementType = Type->castAs<PointerType>()->getPointeeType();
11915       unsigned n = Ty->castAs<VectorType>()->getNumElements();
12641   QualType ElemTy = E->getType()->castAs<ComplexType>()->getElementType();
12760     QualType To = E->getType()->castAs<ComplexType>()->getElementType();
12762       = E->getSubExpr()->getType()->castAs<ComplexType>()->getElementType();
12772     QualType To = E->getType()->castAs<ComplexType>()->getElementType();
12774       = E->getSubExpr()->getType()->castAs<ComplexType>()->getElementType();
12796     QualType To = E->getType()->castAs<ComplexType>()->getElementType();
12798       = E->getSubExpr()->getType()->castAs<ComplexType>()->getElementType();
12809     QualType To = E->getType()->castAs<ComplexType>()->getElementType();
12811       = E->getSubExpr()->getType()->castAs<ComplexType>()->getElementType();
13120         E->getType()->castAs<AtomicType>()->getValueType());
tools/clang/lib/AST/Interp/Program.cpp
  126   QualType ElemTy = PD->getType()->castAs<PointerType>()->getPointeeType();
tools/clang/lib/AST/ItaniumMangle.cpp
  758   mangleBareFunctionType(FD->getType()->castAs<FunctionProtoType>(),
 1303                        FD->getType()->castAs<FunctionType>()->getCallConv() ==
tools/clang/lib/AST/Mangle.cpp
   80   const FunctionType *FT = T->castAs<FunctionType>();
  174   const FunctionType *FT = FD->getType()->castAs<FunctionType>();
  389       auto CC = MD->getType()->castAs<FunctionProtoType>()->getCallConv();
tools/clang/lib/AST/MicrosoftMangle.cpp
  512   const FunctionProtoType *FT = FD->getType()->castAs<FunctionProtoType>();
 2819   mangleFunctionType(PointeeType->castAs<FunctionProtoType>());
 3078       DeclForFPT->getType()->castAs<FunctionProtoType>(), MD);
 3093   Mangler.mangleFunctionType(DD->getType()->castAs<FunctionProtoType>(), DD);
tools/clang/lib/AST/Stmt.cpp
 1177                                                 ->castAs<ReferenceType>()
tools/clang/lib/AST/StmtPrinter.cpp
 1982     auto *Proto = Method->getType()->castAs<FunctionProtoType>();
tools/clang/lib/AST/TemplateBase.cpp
  373     return getAsType()->castAs<PackExpansionType>()->getPattern();
tools/clang/lib/AST/Type.cpp
   82     ND = ty->castAs<TypedefType>()->getDecl();
  775   return ctx.getObjCObjectPointerType(obj)->castAs<ObjCObjectPointerType>();
 1223           typeParam->getUnderlyingType()->castAs<ObjCObjectPointerType>();
 1486                    ->castAs<ObjCObjectType>();
 1510     objectType = superType->castAs<ObjCObjectType>();
 1564       superClassType->castAs<ObjCObjectType>(), true);
 1579       superClassType->castAs<ObjCObjectType>(), true);
 1590       unspecializedSuper->castAs<ObjCObjectType>(),
 1601       ->castAs<ObjCObjectType>(),
tools/clang/lib/AST/TypePrinter.cpp
 1472       !T->getEquivalentType()->castAs<FunctionType>()
 1541    OS << (t->castAs<FunctionType>()->getCallConv() == CC_AAPCS ?
tools/clang/lib/Analysis/CocoaConventions.cpp
   41   const PointerType* PT = RetTy->castAs<PointerType>();
tools/clang/lib/Analysis/RetainSummaryManager.cpp
  507   const auto *FT = FD->getType()->castAs<FunctionType>();
tools/clang/lib/CodeGen/CGAtomic.cpp
  111         ValueTy = lvalue.getType()->castAs<VectorType>()->getElementType();
  973       auto AS = PT->castAs<PointerType>()->getPointeeType().getAddressSpace();
tools/clang/lib/CodeGen/CGBlocks.cpp
 1256   const auto *BPT = E->getCallee()->getType()->castAs<BlockPointerType>();
 1301   const FunctionType *FuncTy = FnType->castAs<FunctionType>();
 1804       return DD->getType()->castAs<FunctionProtoType>()->canThrow();
tools/clang/lib/CodeGen/CGBuiltin.cpp
 2897         PtrTy->castAs<PointerType>()->getPointeeType().isVolatileQualified();
 2980         PtrTy->castAs<PointerType>()->getPointeeType().isVolatileQualified();
 3219         ResultArg->getType()->castAs<PointerType>()->getPointeeType();
 3373         E->getCallee()->getType()->castAs<FunctionProtoType>(), E, false);
 3376         E->getCallee()->getType()->castAs<FunctionProtoType>(), E, true);
 3695     const auto *PipeTy = E->getArg(0)->getType()->castAs<PipeType>();
tools/clang/lib/CodeGen/CGCXX.cpp
  107   if (BaseD->getType()->castAs<FunctionType>()->getCallConv() !=
  108       D->getType()->castAs<FunctionType>()->getCallConv())
tools/clang/lib/CodeGen/CGCXXABI.cpp
  244     derivedType->castAs<MemberPointerType>()->getClass()->getAsCXXRecordDecl();
tools/clang/lib/CodeGen/CGCall.cpp
 3220       CRE->getSubExpr()->getType()->castAs<PointerType>()->getPointeeType();
tools/clang/lib/CodeGen/CGClass.cpp
  745   if (Ctor->getType()->castAs<FunctionProtoType>()->isVariadic())
 2067   const FunctionProtoType *FPT = D->getType()->castAs<FunctionProtoType>();
 2304   const FunctionProtoType *FPT = D->getType()->castAs<FunctionProtoType>();
 2847     callOperator->getType()->castAs<FunctionProtoType>();
tools/clang/lib/CodeGen/CGDebugInfo.cpp
 1666     if (Method->getType()->castAs<FunctionProtoType>()->getContainedAutoType())
 3342   CallingConv CC = FD->getType()->castAs<FunctionType>()->getCallConv();
 4568             FD->getType()->castAs<FunctionProtoType>()->getContainedAutoType())
tools/clang/lib/CodeGen/CGExpr.cpp
 1000     QualType ElemTy = E->getType()->castAs<ComplexType>()->getElementType();
 1151       ConvertType(Ty->castAs<ComplexType>()->getElementType());
 2199       ExpTy = ExpTy->castAs<PointerType>()->getPointeeType();
 2235         ExpTy = ExpTy->castAs<PointerType>()->getPointeeType();
 2316   return CGF.EmitLoadOfPointer(Addr, PtrTy->castAs<PointerType>());
 2720     QualType T = ExprTy->castAs<ComplexType>()->getElementType();
 3498     QualType EltType = LV.getType()->castAs<VectorType>()->getElementType();
tools/clang/lib/CodeGen/CGExprAgg.cpp
  754                           atomicType->castAs<AtomicType>()->getValueType()));
tools/clang/lib/CodeGen/CGExprCXX.cpp
   55   const FunctionProtoType *FPT = MD->getType()->castAs<FunctionProtoType>();
   83   const FunctionProtoType *FPT = MD->getType()->castAs<FunctionProtoType>();
  251       EmitCallArgs(*RtlArgs, MD->getType()->castAs<FunctionProtoType>(),
  421   const auto *MPT = MemFnExpr->getType()->castAs<MemberPointerType>();
  422   const auto *FPT = MPT->getPointeeType()->castAs<FunctionProtoType>();
 1341   const FunctionProtoType *FPT = FD->getType()->castAs<FunctionProtoType>();
 1587       allocator->getType()->castAs<FunctionProtoType>();
 2199     SrcRecordTy = SrcTy->castAs<PointerType>()->getPointeeType();
 2204     DestRecordTy = DestTy->castAs<ReferenceType>()->getPointeeType();
tools/clang/lib/CodeGen/CGExprComplex.cpp
  234     QualType Elem = E->getType()->castAs<ComplexType>()->getElementType();
  240     QualType Elem = E->getType()->castAs<ComplexType>()->getElementType();
  427   SrcType = SrcType->castAs<ComplexType>()->getElementType();
  428   DestType = DestType->castAs<ComplexType>()->getElementType();
  443   DestType = DestType->castAs<ComplexType>()->getElementType();
  619            Op.Ty->castAs<ComplexType>()->getElementType());
  621            Op.Ty->castAs<ComplexType>()->getElementType());
  623            Op.Ty->castAs<ComplexType>()->getElementType());
  625            Op.Ty->castAs<ComplexType>()->getElementType());
  637       4, Op.Ty->castAs<ComplexType>()->getElementType());
  854     if (Op.Ty->castAs<ComplexType>()->getElementType()->isUnsignedIntegerType()) {
 1078   QualType Ty = E->getType()->castAs<ComplexType>()->getElementType();
 1091       CGF.ConvertType(E->getType()->castAs<ComplexType>()->getElementType());
tools/clang/lib/CodeGen/CGExprConstant.cpp
 2321   return getCXXABI().EmitNullMemberPointer(T->castAs<MemberPointerType>());
tools/clang/lib/CodeGen/CGExprScalar.cpp
 1285     assert(DstType->castAs<ExtVectorType>()->getElementType().getTypePtr() ==
 1507   SrcTy = SrcTy->castAs<ComplexType>()->getElementType();
 1667   QualType SrcEltType = SrcType->castAs<VectorType>()->getElementType(),
 1668            DstEltType = DstType->castAs<VectorType>()->getElementType();
 2542     const ObjCObjectPointerType *OPT = type->castAs<ObjCObjectPointerType>();
 3223                                         ->castAs<ObjCObjectPointerType>()
 3757       QualType ElTy = LHSTy->castAs<VectorType>()->getElementType();
tools/clang/lib/CodeGen/CGObjCGNU.cpp
 4043     ObjectTy->castAs<ObjCObjectType>()->getInterface();
tools/clang/lib/CodeGen/CGObjCMac.cpp
 4903     ObjectTy->castAs<ObjCObjectType>()->getInterface();
 7055   ObjCInterfaceDecl *ID = ObjectTy->castAs<ObjCObjectType>()->getInterface();
tools/clang/lib/CodeGen/CGOpenMPRuntime.cpp
  148             PartIDVar->getType()->castAs<PointerType>());
  165             PartIDVar->getType()->castAs<PointerType>());
 1207       getThreadIDVariable()->getType()->castAs<PointerType>());
 1382     return CGF.EmitLoadOfPointerLValue(AddrIn, PtrTy->castAs<PointerType>())
 1387     return CGF.EmitLoadOfPointerLValue(AddrOut, PtrTy->castAs<PointerType>())
 1497                                     TaskTVar->getType()->castAs<PointerType>())
 4532       KmpTaskTWithPrivatesPtrQTy->castAs<PointerType>());
 4630       KmpTaskTWithPrivatesPtrQTy->castAs<PointerType>());
 4729       TaskPrivatesArg.getType()->castAs<PointerType>());
 4738         RefLVal.getAddress(), RefLVal.getType()->castAs<PointerType>());
 4912       KmpTaskTWithPrivatesPtrQTy->castAs<PointerType>());
 4930         KmpTaskTWithPrivatesPtrQTy->castAs<PointerType>());
 7536         BP = CGF.EmitLoadOfPointer(BP, Ty->castAs<PointerType>());
 8928         .EmitLoadOfPointerLValue(PtrCurrent, PtrTy->castAs<PointerType>())
tools/clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
 2998           C.getPointerType(Private->getType())->castAs<PointerType>());
 3014           C.getPointerType(Private->getType())->castAs<PointerType>());
 3021           C.getPointerType(Private->getType())->castAs<PointerType>());
 3029           C.getPointerType(Private->getType())->castAs<PointerType>());
tools/clang/lib/CodeGen/CGStmtOpenMP.cpp
  526             ArgAddr, ArgLVal.getType()->castAs<PointerType>());
 3661         DestType->castAs<ComplexType>()->getElementType();
 3668     QualType SrcElementType = SrcType->castAs<ComplexType>()->getElementType();
 3670         DestType->castAs<ComplexType>()->getElementType();
tools/clang/lib/CodeGen/CGVTables.cpp
  160   const FunctionProtoType *FPT = MD->getType()->castAs<FunctionProtoType>();
  253     ResultType = MD->getType()->castAs<FunctionProtoType>()->getReturnType();
  507       MD->getType()->castAs<FunctionType>());
tools/clang/lib/CodeGen/CodeGenModule.cpp
 1005         FD->getType()->castAs<FunctionType>()->getCallConv() == CC_X86RegCall) {
tools/clang/lib/CodeGen/CodeGenTypes.cpp
  704   return isPaddedAtomicType(type->castAs<AtomicType>());
tools/clang/lib/CodeGen/ItaniumCXXABI.cpp
  852     E->getType()->castAs<MemberPointerType>();
  903     E->getType()->castAs<MemberPointerType>();
  996     const FunctionProtoType *FPT = MD->getType()->castAs<FunctionProtoType>();
 1020   const MemberPointerType *MPT = MPType->castAs<MemberPointerType>();
tools/clang/lib/CodeGen/MicrosoftCXXABI.cpp
   87         CD->getType()->castAs<FunctionProtoType>()->isVariadic())
 1213       MD->getType()->castAs<FunctionProtoType>()->getCallConv();
 1278   const FunctionProtoType *FPT = CD->getType()->castAs<FunctionProtoType>();
 1461     const FunctionProtoType *FPT = MD->getType()->castAs<FunctionProtoType>();
 1554   const FunctionProtoType *FPT = D->getType()->castAs<FunctionProtoType>();
 2717   const MemberPointerType *DstTy = MPType->castAs<MemberPointerType>();
 2738             ->castAs<MemberPointerType>();
 2779   const FunctionProtoType *FPT = MD->getType()->castAs<FunctionProtoType>();
 3093     E->getSubExpr()->getType()->castAs<MemberPointerType>();
 3094   const MemberPointerType *DstTy = E->getType()->castAs<MemberPointerType>();
 3289       E->getSubExpr()->getType()->castAs<MemberPointerType>();
 3290   const MemberPointerType *DstTy = E->getType()->castAs<MemberPointerType>();
 3329     MPT->getPointeeType()->castAs<FunctionProtoType>();
 3974   const auto *FPT = CD->getType()->castAs<FunctionProtoType>();
tools/clang/lib/CodeGen/TargetInfo.cpp
 9542     QualType EltTy = Ty->castAs<ComplexType>()->getElementType();
tools/clang/lib/Frontend/Rewrite/RewriteModernObjC.cpp
  508         const auto *BPT = T->castAs<BlockPointerType>();
 2106   const auto *FT = msgSendType->castAs<FunctionType>();
 2754     expType->getPointeeType()->castAs<ObjCObjectType>()->getInterface();
 2808   const FunctionType *FT = msgSendType->castAs<FunctionType>();
 2896   expType->getPointeeType()->castAs<ObjCObjectType>()->getInterface();
 2959   const FunctionType *FT = msgSendType->castAs<FunctionType>();
 3311       = Exp->getClassReceiver()->castAs<ObjCObjectType>()->getInterface();
 3532   const FunctionType *FT = msgSendType->castAs<FunctionType>();
 4581     CPT = POE->getType()->castAs<BlockPointerType>();
tools/clang/lib/Frontend/Rewrite/RewriteObjC.cpp
  419         const auto *BPT = T->castAs<BlockPointerType>();
 2021   const auto *FT = msgSendType->castAs<FunctionType>();
 2608   const auto *FT = msgSendType->castAs<FunctionType>();
 2740         Exp->getClassReceiver()->castAs<ObjCObjectType>()->getInterface();
 2961   const auto *FT = msgSendType->castAs<FunctionType>();
 3749     CPT = POE->getType()->castAs<BlockPointerType>();
tools/clang/lib/Sema/AnalysisBasedWarnings.cpp
  370   const auto *FPT = FD->getType()->castAs<FunctionProtoType>();
tools/clang/lib/Sema/Sema.cpp
 2287     auto TypePtr = QT->castAs<ExtVectorType>()->getElementType().getTypePtr();
tools/clang/lib/Sema/SemaAccess.cpp
 1554     BaseType = BaseType->castAs<PointerType>()->getPointeeType();
tools/clang/lib/Sema/SemaCast.cpp
 1884       SrcType->castAs<PointerType>()->getPointeeType()->castAs<FunctionType>();
 1884       SrcType->castAs<PointerType>()->getPointeeType()->castAs<FunctionType>();
 1886       DstType->castAs<PointerType>()->getPointeeType()->castAs<FunctionType>();
 1886       DstType->castAs<PointerType>()->getPointeeType()->castAs<FunctionType>();
tools/clang/lib/Sema/SemaChecking.cpp
  487       BPT->getPointeeType()->castAs<FunctionProtoType>()->getParamTypes();
  586       BPT->getPointeeType()->castAs<FunctionProtoType>()->getNumParams();
  679     if (BPT->getPointeeType()->castAs<FunctionProtoType>()->getNumParams() > 0) {
 4716     ValType = AtomTy->castAs<AtomicType>()->getValueType();
 5525       CC = FD->getType()->castAs<FunctionType>()->getCallConv();
 5895     numElements = LHSType->castAs<VectorType>()->getNumElements();
 5903           RHSType->castAs<VectorType>()->getNumElements() != numElements)
 5916       QualType eltType = LHSType->castAs<VectorType>()->getElementType();
 5973     unsigned SrcElts = SrcTy->castAs<VectorType>()->getNumElements();
 5974     unsigned DstElts = DstTy->castAs<VectorType>()->getNumElements();
 9997         = FD->getType()->castAs<FunctionProtoType>();
tools/clang/lib/Sema/SemaCoroutine.cpp
   52   const FunctionProtoType *FnType = FD->getType()->castAs<FunctionProtoType>();
   86       QualType T = MD->getThisType()->castAs<PointerType>()->getPointeeType();
tools/clang/lib/Sema/SemaDecl.cpp
 2227           QualType PT = T->castAs<PointerType>()->getPointeeType();
 3290         First->getType().getCanonicalType()->castAs<FunctionType>();
 3569       auto *OldType = OldQType->castAs<FunctionProtoType>();
 8191           D.getIdentifierLoc(), R->castAs<FunctionType>()->getReturnType(),
 8777           NewFD->getType()->castAs<FunctionProtoType>();
 9101     const FunctionType *FT = NewFD->getType()->castAs<FunctionType>();
10327         MD->getType()->castAs<FunctionProtoType>();
10560       auto *FPT = NewFD->getType()->castAs<FunctionProtoType>();
10614   const FunctionType* FT = T->castAs<FunctionType>();
10734   const FunctionType *FT = T->castAs<FunctionType>();
tools/clang/lib/Sema/SemaDeclAttr.cpp
 2680     const FunctionType *FT = FD->getType()->castAs<FunctionType>();
 2705        : Ty->castAs<BlockPointerType>()->getPointeeType()->getAs<FunctionType>();
 3115        !Ty->castAs<PointerType>()->getPointeeType()->isCharType())) {
 3125        !Ty->castAs<PointerType>()->getPointeeType()->isCharType())) {
 3301              !Ty->castAs<PointerType>()->getPointeeType()->isCharType()) {
tools/clang/lib/Sema/SemaDeclCXX.cpp
 6819   const FunctionProtoType *FPT = MD->getType()->castAs<FunctionProtoType>();
 6834     MD->getCanonicalDecl()->getType()->castAs<FunctionProtoType>();
 7084       const auto *FPT = MD->getType()->castAs<FunctionProtoType>();
11510                        Constructor->getType()->castAs<FunctionProtoType>());
11587   const FunctionProtoType *FPT = TInfo->getType()->castAs<FunctionProtoType>();
11646                        Constructor->getType()->castAs<FunctionProtoType>());
11794                        Destructor->getType()->castAs<FunctionProtoType>());
12465                        CopyAssignOperator->getType()->castAs<FunctionProtoType>());
12842                        MoveAssignOperator->getType()->castAs<FunctionProtoType>());
13127                        CopyConstructor->getType()->castAs<FunctionProtoType>());
13259                        MoveConstructor->getType()->castAs<FunctionProtoType>());
15748       ResolveExceptionSpec(Loc, I->getType()->castAs<FunctionProtoType>());
tools/clang/lib/Sema/SemaDeclObjC.cpp
   52       method->getReturnType()->castAs<ObjCObjectPointerType>()->getObjectType();
   78         receiverClass = receiverTypeIfCall->castAs<ObjCObjectPointerType>()
  589           if (NamedDecl *IDecl = T->castAs<ObjCObjectType>()->getInterface()) {
 1154       if (NamedDecl *IDecl = T->castAs<ObjCObjectType>()->getInterface()) {
 4879   } else if (!T->castAs<ObjCObjectPointerType>()->getInterfaceType()) {
tools/clang/lib/Sema/SemaExceptionSpec.cpp
  199       SourceDecl->getType()->castAs<FunctionProtoType>();
  212     SourceDecl->getType()->castAs<FunctionProtoType>();
  237   auto EST = MD->getType()->castAs<FunctionProtoType>()->getExceptionSpecType();
  266   auto *Ty = Decl->getTypeSourceInfo()->getType()->castAs<FunctionProtoType>();
  325     New->getType()->castAs<FunctionProtoType>();
  347     Old->getType()->castAs<FunctionProtoType>();
  942   if (New->getType()->castAs<FunctionProtoType>()->getExceptionSpecType() ==
  967                                   Old->getType()->castAs<FunctionProtoType>(),
  969                                   New->getType()->castAs<FunctionProtoType>(),
 1004               ->castAs<MemberPointerType>()->getPointeeType();
tools/clang/lib/Sema/SemaExpr.cpp
  367       fn = ptr->getPointeeType()->castAs<FunctionType>();
 3116       const FunctionType *fty = type->castAs<FunctionType>();
 4317     << op->getType()->castAs<ObjCObjectPointerType>()->getPointeeType()
 5848       FuncT = BPT->getPointeeType()->castAs<FunctionType>();
 6361                       DestTy->castAs<ComplexType>()->getElementType(),
 6366                       DestTy->castAs<ComplexType>()->getElementType(),
 6386                               DestTy->castAs<ComplexType>()->getElementType(),
 6391                               DestTy->castAs<ComplexType>()->getElementType(),
 6415       QualType ET = SrcTy->castAs<ComplexType>()->getElementType();
 6425                               SrcTy->castAs<ComplexType>()->getElementType(),
 6449       QualType ET = SrcTy->castAs<ComplexType>()->getElementType();
 6459                               SrcTy->castAs<ComplexType>()->getElementType(),
 6582   QualType DestElemTy = VectorTy->castAs<VectorType>()->getElementType();
 6750   const VectorType *VTy = Ty->castAs<VectorType>();
 6937     rhptee = RHSTy->castAs<BlockPointerType>()->getPointeeType();
 6940     lhptee = LHSTy->castAs<PointerType>()->getPointeeType();
 6941     rhptee = RHSTy->castAs<PointerType>()->getPointeeType();
 7083   QualType lhptee = LHSTy->castAs<PointerType>()->getPointeeType();
 7084   QualType rhptee = RHSTy->castAs<PointerType>()->getPointeeType();
 7510     const ObjCObjectPointerType *LHSOPT = LHSTy->castAs<ObjCObjectPointerType>();
 7511     const ObjCObjectPointerType *RHSOPT = RHSTy->castAs<ObjCObjectPointerType>();
 7569     QualType lhptee = LHSTy->castAs<PointerType>()->getPointeeType();
 7570     QualType rhptee = RHSTy->castAs<ObjCObjectPointerType>()->getPointeeType();
 7589     QualType lhptee = LHSTy->castAs<ObjCObjectPointerType>()->getPointeeType();
 7590     QualType rhptee = RHSTy->castAs<PointerType>()->getPointeeType();
 8104   QualType lhptee = LHSType->castAs<ObjCObjectPointerType>()->getPointeeType();
 8105   QualType rhptee = RHSType->castAs<ObjCObjectPointerType>()->getPointeeType();
 8510         if (RHSType->castAs<PointerType>()->getPointeeType()->isVoidType()) {
 9447     const PointerType *lhsPtr = LHSExpr->getType()->castAs<PointerType>();
 9448     const PointerType *rhsPtr = RHSExpr->getType()->castAs<PointerType>();
10797       LHSType->castAs<PointerType>()->getPointeeType().getCanonicalType();
10799       RHSType->castAs<PointerType>()->getPointeeType().getCanonicalType();
10824         const PointerType *LHSPtr = LHSType->castAs<PointerType>();
10825         if (!LHSPtr->isAddressSpaceOverlapping(*RHSType->castAs<PointerType>())) {
10912     QualType lpointee = LHSType->castAs<BlockPointerType>()->getPointeeType();
10913     QualType rpointee = RHSType->castAs<BlockPointerType>()->getPointeeType();
10930       if (!((RHSType->isPointerType() && RHSType->castAs<PointerType>()
10932             || (LHSType->isPointerType() && LHSType->castAs<PointerType>()
11090   const VectorType *VTy = V->castAs<VectorType>();
11145       vType->castAs<VectorType>()->getVectorKind() == VectorType::AltiVecVector)
12169              (ResType->castAs<VectorType>()->getVectorKind() !=
12173             ResType->castAs<VectorType>()->getElementType()->isIntegerType()) {
12765   return convertVector(BO, ResultTy->castAs<VectorType>()->getElementType(), S);
13528               resultType->castAs<VectorType>()->getVectorKind() !=
13556       QualType T = resultType->castAs<ExtVectorType>()->getElementType();
13601         QualType T = resultType->castAs<ExtVectorType>()->getElementType();
14267     const FunctionType *FTy = BSI->FunctionType->castAs<FunctionType>();
14739                 SrcType->castAs<ObjCObjectPointerType>();
14745             DstType->castAs<ObjCObjectPointerType>()->getInterfaceType())
14750         DstType->castAs<ObjCObjectPointerType>();
14756             SrcType->castAs<ObjCObjectPointerType>()->getInterfaceType())
15282   CallingConv CC = FD->getType()->castAs<FunctionType>()->getCallConv();
15313       CallingConv CC = FD->getType()->castAs<FunctionType>()->getCallConv();
17527     CalleeType = CalleeType->castAs<BlockPointerType>()->getPointeeType();
17530   const FunctionType *FnType = CalleeType->castAs<FunctionType>();
17647     DestType = DestType->castAs<PointerType>()->getPointeeType();
17701       const FunctionType *FnType = FDT->castAs<FunctionType>();
tools/clang/lib/Sema/SemaExprCXX.cpp
 3305     QualType Pointee = Type->castAs<PointerType>()->getPointeeType();
 4037     QualType FromEl = From->getType()->castAs<ComplexType>()->getElementType();
 4038     QualType ToEl = ToType->castAs<ComplexType>()->getElementType();
 4229         ToType->castAs<BlockPointerType>()->getPointeeType().getAddressSpace();
 4231         FromType->castAs<BlockPointerType>()->getPointeeType().getAddressSpace();
 4329         ToAtomicType->castAs<AtomicType>()->getValueType(), From->getType()));
 7238                         Method->getType()->castAs<FunctionProtoType>()))
tools/clang/lib/Sema/SemaExprMember.cpp
  973     BaseType = BaseType->castAs<PointerType>()->getPointeeType();
tools/clang/lib/Sema/SemaExprObjC.cpp
  875   QualType RequiredType = ObjectsType->castAs<PointerType>()->getPointeeType();
 1030   QualType ValueT = ValuesT->castAs<PointerType>()->getPointeeType();
 1032   QualType KeyT = KeysT->castAs<PointerType>()->getPointeeType();
 1779   const ObjCObjectType *objType = type->castAs<ObjCObjectType>();
 2025             return HandleExprPropertyRefExpr(T->castAs<ObjCObjectPointerType>(),
tools/clang/lib/Sema/SemaInit.cpp
 1036     maxElements = T->castAs<VectorType>()->getNumElements();
 1493   QualType elementType = DeclType->castAs<ComplexType>()->getElementType();
 1639   const VectorType *VT = DeclType->castAs<VectorType>();
 1709     const VectorType *T = Entity.getType()->castAs<VectorType>();
 1765       const VectorType *IVT = IType->castAs<VectorType>();
 4210   QualType cv1T1 = DestType->castAs<ReferenceType>()->getPointeeType();
 4467   QualType cv1T1 = DestType->castAs<ReferenceType>()->getPointeeType();
 4665   QualType cv1T1 = DestType->castAs<ReferenceType>()->getPointeeType();
 8213             (*ResultType)->castAs<LValueReferenceType>()->isSpelledAsLValue());
 8672     QualType T = DestType->castAs<ReferenceType>()->getPointeeType();
tools/clang/lib/Sema/SemaLambda.cpp
  372     const FunctionProtoType *FPT = MethodType->castAs<FunctionProtoType>();
 1290       CallOperator->getType()->castAs<FunctionProtoType>());
 1441       CallOperator->getType()->castAs<FunctionProtoType>());
tools/clang/lib/Sema/SemaOpenMP.cpp
 1787       Ty = Ty->castAs<ReferenceType>()->getPointeeType();
tools/clang/lib/Sema/SemaOverload.cpp
 2305       ToType->castAs<PointerType>()->getPointeeType()->isVoidType()) {
 3304     User.After.setFromType(ThisType->castAs<PointerType>()->getPointeeType());
 3495       User.After.setFromType(ThisType->castAs<PointerType>()->getPointeeType());
 4183         FromType1->castAs<PointerType>()->getPointeeType().getUnqualifiedType();
 4185         ToType1->castAs<PointerType>()->getPointeeType().getUnqualifiedType();
 4187         FromType2->castAs<PointerType>()->getPointeeType().getUnqualifiedType();
 4189         ToType2->castAs<PointerType>()->getPointeeType().getUnqualifiedType();
 4604   QualType T1 = DeclType->castAs<ReferenceType>()->getPointeeType();
 5028     QualType T1 = ToType->castAs<ReferenceType>()->getPointeeType();
 5299     Method->getThisType()->castAs<PointerType>()->getPointeeType();
 7648     const ObjCObjectPointerType *PTy = Ty->castAs<ObjCObjectPointerType>();
10994     ParamTypes = ConvType->castAs<FunctionProtoType>()->getParamTypes();
10999         Cand->Function->getType()->castAs<FunctionProtoType>()->getParamTypes();
11277   auto *FPT = FD->getType()->castAs<FunctionProtoType>();
12650                             FnDecl->getType()->castAs<FunctionProtoType>()))
13234                               Method->getType()->castAs<FunctionProtoType>()))
13321       op->getRHS()->getType()->castAs<MemberPointerType>()->getPointeeType();
13323     const FunctionProtoType *proto = fnType->castAs<FunctionProtoType>();
13333       objectType = objectType->castAs<PointerType>()->getPointeeType();
13977                         Method->getType()->castAs<FunctionProtoType>()))
tools/clang/lib/Sema/SemaPseudoObject.cpp
  559       PRE->getBase()->getType()->castAs<ObjCObjectPointerType>();
tools/clang/lib/Sema/SemaStmt.cpp
 3230       FD->getTypeSourceInfo()->getType()->castAs<FunctionProtoType>();
 3314     if (CurBlock->FunctionType->castAs<FunctionType>()->getNoReturnAttr()) {
 3324             ->castAs<FunctionType>()
tools/clang/lib/Sema/SemaTemplate.cpp
  349             ObjectType->castAs<TagType>()->isBeingDefined()) &&
 5864       !ParamType->castAs<PointerType>()->getPointeeType()->isFunctionType() &&
 6740        ParamType->castAs<PointerType>()->getPointeeType()->isFunctionType()) ||
 6746        ParamType->castAs<ReferenceType>()->getPointeeType()->isFunctionType()) ||
 6753        ParamType->castAs<MemberPointerType>()->getPointeeType()
 8426           const FunctionProtoType *FPT = FT->castAs<FunctionProtoType>();
tools/clang/lib/Sema/SemaTemplateDeduction.cpp
 3829     const auto *Proto = Function->getType()->castAs<FunctionProtoType>();
 3967   const auto *FunctionTypeP = FunctionType->castAs<FunctionProtoType>();
 3968   const auto *ArgFunctionTypeP = ArgFunctionType->castAs<FunctionProtoType>();
 4106       Specialization->getType()->castAs<FunctionProtoType>();
 4664         CallOp->getType()->castAs<FunctionProtoType>());
 5089   auto *TST1 = T1->castAs<TemplateSpecializationType>();
tools/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
  755       TagDecl *newTag = DI->getType()->castAs<TagType>()->getDecl();
 1747     = D->getType()->castAs<FunctionProtoType>();
 1749     = TInfo->getType()->castAs<FunctionProtoType>();
 3952           PatternParam->getType()->castAs<PackExpansionType>()->getPattern();
 3977   const FunctionProtoType *Proto = Decl->getType()->castAs<FunctionProtoType>();
 4012   SubstExceptionSpec(Decl, Template->getType()->castAs<FunctionProtoType>(),
tools/clang/lib/Sema/SemaType.cpp
 4036       (!T->castAs<FunctionProtoType>()->getMethodQuals().empty() ||
 4037        T->castAs<FunctionProtoType>()->getRefQualifier() != RQ_None);
 6962     auto *Proto = unwrapped.get()->castAs<FunctionProtoType>();
tools/clang/lib/Sema/TreeTransform.h
 4672       Result->castAs<ReferenceType>()->getPointeeTypeAsWritten());
 5964     const PipeType *PT = Result->castAs<PipeType>();
 6513                                     ->castAs<PackExpansionType>();
11806     ObjectType = BaseType->castAs<PointerType>()->getPointeeType();
13326        !BaseType->castAs<PointerType>()->getPointeeType()
tools/clang/lib/Serialization/ASTReader.cpp
12158         auto *FPT = Update.second->getType()->castAs<FunctionProtoType>();
tools/clang/lib/Serialization/ASTReaderDecl.cpp
  845       FD->getTypeSourceInfo()->getType()->castAs<FunctionType>()
 4445       auto *FPT = FD->getType()->castAs<FunctionProtoType>();
tools/clang/lib/Serialization/ASTWriter.cpp
 5369             cast<FunctionDecl>(D)->getType()->castAs<FunctionProtoType>(),
 6415                                       ->castAs<FunctionProtoType>()
tools/clang/lib/StaticAnalyzer/Checkers/DynamicTypePropagation.cpp
  397       To->getObjectType()->getSuperClassType()->castAs<ObjCObjectType>();
  401   const auto *SuperPtrOfTo = SuperPtrOfToQual->castAs<ObjCObjectPointerType>();
  830     const auto *ReceiverClassType = ReceiverType->castAs<ObjCObjectType>();
  838         ReceiverClassPointerType->castAs<ObjCObjectPointerType>();
tools/clang/lib/StaticAnalyzer/Core/RegionStore.cpp
 2294   const VectorType *VT = T->castAs<VectorType>(); // Use castAs for typedefs.
tools/clang/tools/extra/clang-tidy/fuchsia/TrailingReturnCheck.cpp
   22   return Node.getType()->castAs<FunctionProtoType>()->hasTrailingReturn();
tools/clang/tools/extra/clang-tidy/misc/NewDeleteOverloadsCheck.cpp
   55   const auto *FPT = Node.getType()->castAs<FunctionProtoType>();
tools/clang/tools/extra/clang-tidy/misc/RedundantExpressionCheck.cpp
  481       !OperatorDecl->getType()->castAs<FunctionType>()->isConst())
tools/clang/tools/extra/clang-tidy/modernize/UseDefaultMemberInitCheck.cpp
   61         InitType->castAs<ComplexType>()->getElementType());
tools/clang/tools/extra/clang-tidy/modernize/UseTrailingReturnTypeCheck.cpp
  253                            Type->castAs<PointerType>()->getPointeeType());
  256                            Type->castAs<ReferenceType>()->getPointeeType());
tools/clang/tools/extra/clang-tidy/modernize/UseTransparentFunctorsCheck.cpp
  102       FunctorParentLoc.getType()->castAs<TemplateSpecializationType>();
tools/clang/tools/extra/clang-tidy/readability/IsolateDeclarationCheck.cpp
   62     const auto *Pointee = T->getPointeeType()->castAs<FunctionType>();
tools/clang/tools/extra/clang-tidy/utils/ExceptionAnalyzer.cpp
  148         ThrownType = ThrownType->castAs<ReferenceType>()
  174           CaughtType = CaughtType->castAs<ReferenceType>()