• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/llvm-project/clang/lib/Sema/

Lines Matching refs:getAs

408     if (const PointerType *ptr = type->getAs<PointerType>()) {
409 fn = ptr->getPointeeType()->getAs<FunctionType>();
412 } else if (const BlockPointerType *ptr = type->getAs<BlockPointerType>()) {
565 if (const ObjCObjectType *OTy = BaseType->getAs<ObjCObjectType>())
705 if (const AtomicType *Atomic = T->getAs<AtomicType>()) {
810 const BuiltinType *BTy = Ty->getAs<BuiltinType>();
1174 auto *LHSComplex = LHSType->getAs<ComplexType>();
1175 auto *RHSComplex = RHSType->getAs<ComplexType>();
1315 const auto *BTy = Ty->getAs<BuiltinType>();
1481 if (const AtomicType *AtomicLHS = LHSType->getAs<AtomicType>())
1968 if (auto *FPT = Ty->getAs<FunctionProtoType>()) {
2401 if (Expr *Ex = E.getAs<Expr>())
2826 auto FromPtrType = FromType->getAs<PointerType>();
2847 if (FromType->getAs<PointerType>()) {
2907 QualType QRecordType = QualType(QType->getAs<RecordType>(), 0);
3205 if (const ReferenceType *reftype = type->getAs<ReferenceType>()) {
3807 const BuiltinType *BTy = Ty->getAs<BuiltinType>();
4165 if (const ReferenceType *Ref = ExprType->getAs<ReferenceType>())
4388 if (auto *TT = T->getAs<TypedefType>()) {
4493 if (const ComplexType *CT = V.get()->getType()->getAs<ComplexType>())
4758 auto *MTy = Base->getType()->getAs<ConstantMatrixType>();
5383 if (!LHSExp->getType()->getAs<VectorType>()) {
5406 } else if (const PointerType *PTy = LHSTy->getAs<PointerType>()) {
5411 LHSTy->getAs<ObjCObjectPointerType>()) {
5422 } else if (const PointerType *PTy = RHSTy->getAs<PointerType>()) {
5428 RHSTy->getAs<ObjCObjectPointerType>()) {
5438 } else if (const VectorType *VTy = LHSTy->getAs<VectorType>()) {
5473 ResultType = LHSTy->getAs<PointerType>()->getPointeeType();
5484 ResultType = RHSTy->getAs<PointerType>()->getPointeeType();
5529 LHSExp->IgnoreParenImpCasts()->getType()->getAs<TypedefType>()) {
5878 Arg = ArgE.getAs<Expr>();
5886 Arg = ArgExpr.getAs<Expr>();
5931 if (DecayedTypeLoc DTL = TL.getAs<DecayedTypeLoc>())
5933 if (ArrayTypeLoc ATL = TL.getAs<ArrayTypeLoc>())
6532 if (const PointerType *PT = Fn->getType()->getAs<PointerType>()) {
6535 FuncT = PT->getPointeeType()->getAs<FunctionType>();
6540 Fn->getType()->getAs<BlockPointerType>()) {
6621 !FuncT->getReturnType()->getAs<AutoType>() &&
6654 Proto = Def->getType()->getAs<FunctionProtoType>();
6663 Proto = FDecl->getType()->getAs<FunctionProtoType>();
6678 Arg = ArgE.getAs<Expr>();
6686 Arg = ArgE.getAs<Expr>();
7198 if (const VectorType *vecType = type->getAs<VectorType>()) {
7257 auto *Vec = srcTy->getAs<VectorType>();
7262 auto *Vec = destTy->getAs<VectorType>();
7650 if (const BlockPointerType *LHSBTy = LHSTy->getAs<BlockPointerType>()) {
7919 const VectorType *CV = CondTy->getAs<VectorType>();
7952 const VectorType *CondTy = Cond->getType()->getAs<VectorType>();
7970 const VectorType *CV = CondTy->getAs<VectorType>();
7971 const VectorType *RV = VecResTy->getAs<VectorType>();
8122 if (const RecordType *LHSRT = LHSTy->getAs<RecordType>()) { // C99 6.5.15p3
8123 if (const RecordType *RHSRT = RHSTy->getAs<RecordType>())
8885 if (const VectorType *VT = QT->getAs<VectorType>())
8944 if (const ReferenceType *LHSTypeRef = LHSType->getAs<ReferenceType>()) {
8990 const VectorType *VecType = RHSType->getAs<VectorType>();
9010 if (getLangOpts().CPlusPlus && RHSType->getAs<ComplexType>() &&
9011 !LHSType->getAs<ComplexType>())
9065 if (RHSType->getAs<BlockPointerType>()) {
9068 LangAS AddrSpaceR = RHSType->getAs<BlockPointerType>()
9084 LangAS AddrSpaceL = LHSType->getAs<BlockPointerType>()
9087 LangAS AddrSpaceR = RHSType->getAs<BlockPointerType>()
9107 if (const PointerType *RHSPT = RHSType->getAs<PointerType>())
9305 if (const auto *LHSPtrType = LHSType->getAs<PointerType>()) {
9306 if (const auto *RHSPtrType = RHS.get()->getType()->getAs<PointerType>()) {
9574 const auto *VecTy = E->getType()->getAs<VectorType>();
9678 const VectorType *VT = VectorTy->getAs<VectorType>();
9780 const VectorType *LHSVecType = LHSType->getAs<VectorType>();
9781 const VectorType *RHSVecType = RHSType->getAs<VectorType>();
10152 if (const AtomicType *ResAtomicType = ResType->getAs<AtomicType>())
10174 if (const AtomicType *ResAtomicType = ResType->getAs<AtomicType>())
10519 = RHS.get()->getType()->getAs<PointerType>()) {
10564 if (const EnumType *ET = T->getAs<EnumType>())
10682 const VectorType *LHSVecTy = LHSType->getAs<VectorType>();
10687 const VectorType *RHSVecTy = RHSType->getAs<VectorType>();
10726 const BuiltinType *LHSBT = LHSEleType->getAs<clang::BuiltinType>();
10727 const BuiltinType *RHSBT = RHSEleType->getAs<clang::BuiltinType>();
10758 if (auto LHSVecType = LHS.get()->getType()->getAs<VectorType>())
10761 if (auto RHSVecType = RHS.get()->getType()->getAs<VectorType>())
10870 LHS->getType()->getAs<ObjCObjectPointerType>();
11716 const PointerType *LPT = LHSType->getAs<PointerType>();
11717 const PointerType *RPT = RHSType->getAs<PointerType>();
12067 !(isa<ExtVectorType>(vType->getAs<VectorType>())))
12090 const MatrixType *LHSMatType = LHSType->getAs<MatrixType>();
12091 const MatrixType *RHSMatType = RHSType->getAs<MatrixType>();
12131 auto *LHSMatType = LHS.get()->getType()->getAs<ConstantMatrixType>();
12132 auto *RHSMatType = RHS.get()->getType()->getAs<ConstantMatrixType>();
12522 if (const auto *FieldRecTy = FieldTy->getAs<RecordType>()) {
12538 const RecordType *RTy = Ty.getCanonicalType()->getAs<RecordType>();
12710 if (const ReferenceType *RefTy = LHSDecl->getType()->getAs<ReferenceType>())
12980 if (const AtomicType *ResAtomicType = ResType->getAs<AtomicType>())
13401 if (const PointerType *PT = OpTy->getAs<PointerType>())
13406 OpTy->getAs<ObjCObjectPointerType>())
13531 if (const ReferenceType *RefTy = LHSDecl->getType()->getAs<ReferenceType>())
13668 if (const VectorType *VT = Ty->getAs<VectorType>()) {
14813 const RecordType *RC = CurrentType->getAs<RecordType>();
15044 const FunctionType *Fn = T->getAs<FunctionType>();
15077 } else if (const FunctionProtoType *Fn = T->getAs<FunctionProtoType>()) {
15224 Cap.getCaptureType()->getAs<RecordType>()) {
15368 E = Init.getAs<Expr>();
15465 const ObjCObjectPointerType *PT = DstType->getAs<ObjCObjectPointerType>();
16069 if (const auto *Ptr = Ty->getAs<PointerType>())
16736 const FunctionProtoType *FPT = Func->getType()->getAs<FunctionProtoType>();
16935 if (const RecordType *VTTy = Var->getType()->getAs<RecordType>()) {
17011 if (const auto *PT = CaptureType->getAs<PointerType>()) {
17014 if (!Invalid && PointeeTy->getAs<ObjCObjectPointerType>() &&
17133 if (const ReferenceType *RefType = CaptureType->getAs<ReferenceType>()){
17813 if (E->getType().isVolatileQualified() || E->getType()->getAs<RecordType>())
18614 const PointerType *Ptr = DestType->getAs<PointerType>();
18669 } else if (const PointerType *Ptr = CalleeType->getAs<PointerType>()) {
18829 if (const PointerType *Ptr = Type->getAs<PointerType>()) {
18842 if (const FunctionProtoType *FT = Type->getAs<FunctionProtoType>()) {
18886 if (const ReferenceType *RefTy = Type->getAs<ReferenceType>()) {