Home | History | Annotate | Download | only in Sema

Lines Matching refs:castType

3096                                          QualType castType,
3163 castCode += castType.getAsString();
3172 castCode += castType.getAsString();
3217 QualType castType, ARCConversionTypeClass castACTC,
3231 ObjCBridgeRelatedAttrFromType(castType, TDNDecl)) ||
3262 << unsigned(castType->isBlockPointerType()) // to ObjC|block type
3263 << castType
3277 castType, castExpr, realCast, "__bridge ",
3290 castType, castExpr, realCast, "__bridge_transfer ",
3305 << castType
3317 castType, castExpr, realCast, "__bridge ",
3324 S.Diag(noteLoc, diag::note_arc_cstyle_bridge_retained) << castType :
3327 << castType << br;
3330 castType, castExpr, realCast, "__bridge_retained ",
3339 << srcKind << castExprType << castType
3344 static bool CheckObjCBridgeNSCast(Sema &S, QualType castType, Expr *castExpr,
3365 castType->getAsObjCInterfacePointerType()) {
3373 << T << Target->getName() << castType->getPointeeType();
3375 } else if (castType->isObjCIdType() ||
3377 castType, ExprClass)))
3385 << T << Target->getName() << castType;
3392 } else if (!castType->isObjCIdType()) {
3409 static bool CheckObjCBridgeCFCast(Sema &S, QualType castType, Expr *castExpr,
3411 QualType T = castType;
3452 << castExpr->getType() << castType;
3461 << castExpr->getType() << castType;
3474 void Sema::CheckTollFreeBridgeCast(QualType castType, Expr *castExpr) {
3479 ARCConversionTypeClass castACTC = classifyTypeForARCConversion(castType);
3483 CheckObjCBridgeNSCast<ObjCBridgeAttr>(*this, castType, castExpr, HasObjCBridgeAttr,
3489 CheckObjCBridgeNSCast<ObjCBridgeMutableAttr>(*this, castType, castExpr,
3495 CheckObjCBridgeNSCast<ObjCBridgeAttr>(*this, castType, castExpr, HasObjCBridgeAttr,
3498 CheckObjCBridgeNSCast<ObjCBridgeMutableAttr>(*this, castType, castExpr,
3504 CheckObjCBridgeCFCast<ObjCBridgeAttr>(*this, castType, castExpr, HasObjCBridgeAttr,
3510 CheckObjCBridgeCFCast<ObjCBridgeMutableAttr>(*this, castType, castExpr,
3516 CheckObjCBridgeCFCast<ObjCBridgeAttr>(*this, castType, castExpr, HasObjCBridgeAttr,
3519 CheckObjCBridgeCFCast<ObjCBridgeMutableAttr>(*this, castType, castExpr,
3524 void Sema::CheckObjCBridgeRelatedCast(QualType castType, Expr *castExpr) {
3539 ARCConversionTypeClass castExprACTC = classifyTypeForARCConversion(castType);
3543 castType, SrcType, castExpr);
3547 bool Sema::CheckTollFreeBridgeStaticCast(QualType castType, Expr *castExpr,
3553 ARCConversionTypeClass castACTC = classifyTypeForARCConversion(castType);
3556 CheckTollFreeBridgeCast(castType, castExpr);
3717 Sema::CheckObjCARCConversion(SourceRange castRange, QualType castType,
3725 QualType effCastType = castType;
3726 if (const ReferenceType *ref = castType->getAs<ReferenceType>())
3736 (castType != castExprType)) {
3737 const Type *DT = castType.getTypePtr();
3738 QualType QDT = castType;
3748 if (QDT != castType &&
3763 if (castACTC == ACTC_none && castType->isIntegralType(Context))
3805 ConversionToObjCStringLiteralCheck(castType, castExpr))
3816 diagnoseObjCARCConversion(*this, castRange, castType, castACTC,
3829 QualType castType;
3834 castType = cast->getTypeAsWritten();
3838 castType = cast->getTypeAsWritten();
3841 castType = cast->getType();
3846 classifyTypeForARCConversion(castType.getNonReferenceType());
3851 diagnoseObjCARCConversion(*this, castRange, castType, castACTC,
3896 bool Sema::CheckObjCARCUnavailableWeakConversion(QualType castType,
3899 Context.getCanonicalType(castType).getUnqualifiedType();
3903 castType.getObjCLifetime() == Qualifiers::OCL_Weak &&