Lines Matching refs:Context
40 ASTContext &Context = getASTContext(); in ParseObjCStringLiteral() local
72 const ConstantArrayType *CAT = Context.getAsConstantArrayType(S->getType()); in ParseObjCStringLiteral()
74 QualType StrTy = Context.getConstantArrayType( in ParseObjCStringLiteral()
77 S = StringLiteral::Create(Context, StrBuf, StringLiteralKind::Ordinary, in ParseObjCStringLiteral()
87 ASTContext &Context = getASTContext(); in BuildObjCStringLiteral() local
96 QualType Ty = Context.getObjCConstantStringInterface(); in BuildObjCStringLiteral()
98 Ty = Context.getObjCObjectPointerType(Ty); in BuildObjCStringLiteral()
104 NSIdent = &Context.Idents.get("NSConstantString"); in BuildObjCStringLiteral()
106 NSIdent = &Context.Idents.get(StringClass); in BuildObjCStringLiteral()
111 Context.setObjCConstantStringInterface(StrIF); in BuildObjCStringLiteral()
112 Ty = Context.getObjCConstantStringInterface(); in BuildObjCStringLiteral()
113 Ty = Context.getObjCObjectPointerType(Ty); in BuildObjCStringLiteral()
119 Ty = Context.getObjCIdType(); in BuildObjCStringLiteral()
126 Context.setObjCConstantStringInterface(StrIF); in BuildObjCStringLiteral()
127 Ty = Context.getObjCConstantStringInterface(); in BuildObjCStringLiteral()
128 Ty = Context.getObjCObjectPointerType(Ty); in BuildObjCStringLiteral()
134 Ty = Context.getObjCNSStringType(); in BuildObjCStringLiteral()
137 ObjCInterfaceDecl::Create (Context, in BuildObjCStringLiteral()
138 Context.getTranslationUnitDecl(), in BuildObjCStringLiteral()
141 Ty = Context.getObjCInterfaceType(NSStringIDecl); in BuildObjCStringLiteral()
142 Context.setObjCNSStringType(Ty); in BuildObjCStringLiteral()
144 Ty = Context.getObjCObjectPointerType(Ty); in BuildObjCStringLiteral()
148 return new (Context) ObjCStringLiteral(S, Ty, AtLoc); in BuildObjCStringLiteral()
234 ASTContext &Context = S.Context; in LookupObjCInterfaceDeclForLiteral() local
235 TranslationUnitDecl *TU = Context.getTranslationUnitDecl(); in LookupObjCInterfaceDeclForLiteral()
236 ID = ObjCInterfaceDecl::Create (Context, TU, SourceLocation(), II, in LookupObjCInterfaceDeclForLiteral()
271 ASTContext &CX = S.SemaRef.Context; in getNSNumberFactoryMethod()
304 ParmVarDecl::Create(S.SemaRef.Context, Method, SourceLocation(), in getNSNumberFactoryMethod()
307 Method->setMethodParams(S.SemaRef.Context, value, std::nullopt); in getNSNumberFactoryMethod()
324 ASTContext &Context = getASTContext(); in BuildObjCNumericLiteral() local
333 NumberType = Context.CharTy; in BuildObjCNumericLiteral()
337 NumberType = Context.getWideCharType(); in BuildObjCNumericLiteral()
341 NumberType = Context.Char16Ty; in BuildObjCNumericLiteral()
345 NumberType = Context.Char32Ty; in BuildObjCNumericLiteral()
360 InitializedEntity Entity = InitializedEntity::InitializeParameter(Context, in BuildObjCNumericLiteral()
369 return SemaRef.MaybeBindToTemporary(new (Context) ObjCBoxedExpr( in BuildObjCNumericLiteral()
375 ASTContext &Context = getASTContext(); in ActOnObjCBoolLiteral() local
384 Inner = SemaRef.ImpCastExprToType(Inner.get(), Context.BoolTy, in ActOnObjCBoolLiteral()
409 = InitializedEntity::InitializeParameter(S.Context, T, in CheckObjCCollectionLiteralElement()
504 InitializedEntity::InitializeParameter(S.Context, T, in CheckObjCCollectionLiteralElement()
510 ASTContext &Context = getASTContext(); in BuildObjCBoxedExpr() local
513 new (Context) ObjCBoxedExpr(ValueExpr, Context.DependentTy, nullptr, SR); in BuildObjCBoxedExpr()
528 if (Context.hasSameUnqualifiedType(PointeeType, Context.CharTy)) { in BuildObjCBoxedExpr()
536 QualType NSStringObject = Context.getObjCInterfaceType(NSStringDecl); in BuildObjCBoxedExpr()
537 NSStringPointer = Context.getObjCObjectPointerType(NSStringObject); in BuildObjCBoxedExpr()
553 BoxedType = Context.getAttributedType( in BuildObjCBoxedExpr()
557 return new (Context) ObjCBoxedExpr(CE, BoxedType, nullptr, SR); in BuildObjCBoxedExpr()
565 IdentifierInfo *II = &Context.Idents.get("stringWithUTF8String"); in BuildObjCBoxedExpr()
566 Selector stringWithUTF8String = Context.Selectors.getUnarySelector(II); in BuildObjCBoxedExpr()
574 Context, SourceLocation(), SourceLocation(), stringWithUTF8String, in BuildObjCBoxedExpr()
582 QualType ConstCharType = Context.CharTy.withConst(); in BuildObjCBoxedExpr()
584 ParmVarDecl::Create(Context, M, in BuildObjCBoxedExpr()
586 &Context.Idents.get("value"), in BuildObjCBoxedExpr()
587 Context.getPointerType(ConstCharType), in BuildObjCBoxedExpr()
590 M->setMethodParams(Context, value, std::nullopt); in BuildObjCBoxedExpr()
607 BoxedType = Context.getAttributedType( in BuildObjCBoxedExpr()
625 ValueType = Context.CharTy; in BuildObjCBoxedExpr()
629 ValueType = Context.getWideCharType(); in BuildObjCBoxedExpr()
633 ValueType = Context.Char16Ty; in BuildObjCBoxedExpr()
637 ValueType = Context.Char32Ty; in BuildObjCBoxedExpr()
669 QualType NSValueObject = Context.getObjCInterfaceType(NSValueDecl); in BuildObjCBoxedExpr()
670 NSValuePointer = Context.getObjCObjectPointerType(NSValueObject); in BuildObjCBoxedExpr()
674 const IdentifierInfo *II[] = {&Context.Idents.get("valueWithBytes"), in BuildObjCBoxedExpr()
675 &Context.Idents.get("objCType")}; in BuildObjCBoxedExpr()
676 Selector ValueWithBytesObjCType = Context.Selectors.getSelector(2, II); in BuildObjCBoxedExpr()
684 Context, SourceLocation(), SourceLocation(), ValueWithBytesObjCType, in BuildObjCBoxedExpr()
697 ParmVarDecl::Create(Context, M, in BuildObjCBoxedExpr()
699 &Context.Idents.get("bytes"), in BuildObjCBoxedExpr()
700 Context.VoidPtrTy.withConst(), in BuildObjCBoxedExpr()
705 QualType ConstCharType = Context.CharTy.withConst(); in BuildObjCBoxedExpr()
707 ParmVarDecl::Create(Context, M, in BuildObjCBoxedExpr()
709 &Context.Idents.get("type"), in BuildObjCBoxedExpr()
710 Context.getPointerType(ConstCharType), in BuildObjCBoxedExpr()
715 M->setMethodParams(Context, Params, std::nullopt); in BuildObjCBoxedExpr()
726 if (!ValueType.isTriviallyCopyableType(Context)) { in BuildObjCBoxedExpr()
752 InitializedEntity IE = InitializedEntity::InitializeParameter(Context, in BuildObjCBoxedExpr()
763 new (Context) ObjCBoxedExpr(ValueExpr, BoxedType, in BuildObjCBoxedExpr()
774 ASTContext &Context = getASTContext(); in BuildObjCSubscriptExpression() local
795 return new (Context) ObjCSubscriptRefExpr( in BuildObjCSubscriptExpression()
796 BaseExpr, IndexExpr, Context.PseudoObjectTy, VK_LValue, OK_ObjCSubscript, in BuildObjCSubscriptExpression()
802 ASTContext &Context = getASTContext(); in BuildObjCArrayLiteral() local
814 QualType IdT = Context.getObjCIdType(); in BuildObjCArrayLiteral()
822 Context, SourceLocation(), SourceLocation(), Sel, IdT, ReturnTInfo, in BuildObjCArrayLiteral()
823 Context.getTranslationUnitDecl(), false /*Instance*/, in BuildObjCArrayLiteral()
829 ParmVarDecl *objects = ParmVarDecl::Create(Context, Method, in BuildObjCArrayLiteral()
832 &Context.Idents.get("objects"), in BuildObjCArrayLiteral()
833 Context.getPointerType(IdT), in BuildObjCArrayLiteral()
837 ParmVarDecl *cnt = ParmVarDecl::Create(Context, Method, in BuildObjCArrayLiteral()
840 &Context.Idents.get("cnt"), in BuildObjCArrayLiteral()
841 Context.UnsignedLongTy, in BuildObjCArrayLiteral()
845 Method->setMethodParams(Context, Params, std::nullopt); in BuildObjCArrayLiteral()
855 !Context.hasSameUnqualifiedType(PtrT->getPointeeType(), IdT)) { in BuildObjCArrayLiteral()
861 << Context.getPointerType(IdT.withConst()); in BuildObjCArrayLiteral()
897 = Context.getObjCObjectPointerType( in BuildObjCArrayLiteral()
898 Context.getObjCInterfaceType(NSArrayDecl)); in BuildObjCArrayLiteral()
901 Context, Elements, Ty, ArrayWithObjectsMethod, SR)); in BuildObjCArrayLiteral()
962 ASTContext &Context = getASTContext(); in BuildObjCDictionaryLiteral() local
975 QualType IdT = Context.getObjCIdType(); in BuildObjCDictionaryLiteral()
982 Context, SourceLocation(), SourceLocation(), Sel, IdT, in BuildObjCDictionaryLiteral()
983 nullptr /*TypeSourceInfo */, Context.getTranslationUnitDecl(), in BuildObjCDictionaryLiteral()
990 ParmVarDecl *objects = ParmVarDecl::Create(Context, Method, in BuildObjCDictionaryLiteral()
993 &Context.Idents.get("objects"), in BuildObjCDictionaryLiteral()
994 Context.getPointerType(IdT), in BuildObjCDictionaryLiteral()
998 ParmVarDecl *keys = ParmVarDecl::Create(Context, Method, in BuildObjCDictionaryLiteral()
1001 &Context.Idents.get("keys"), in BuildObjCDictionaryLiteral()
1002 Context.getPointerType(IdT), in BuildObjCDictionaryLiteral()
1006 ParmVarDecl *cnt = ParmVarDecl::Create(Context, Method, in BuildObjCDictionaryLiteral()
1009 &Context.Idents.get("cnt"), in BuildObjCDictionaryLiteral()
1010 Context.UnsignedLongTy, in BuildObjCDictionaryLiteral()
1014 Method->setMethodParams(Context, Params, std::nullopt); in BuildObjCDictionaryLiteral()
1025 !Context.hasSameUnqualifiedType(PtrValue->getPointeeType(), IdT)) { in BuildObjCDictionaryLiteral()
1031 << Context.getPointerType(IdT.withConst()); in BuildObjCDictionaryLiteral()
1039 !Context.hasSameUnqualifiedType(PtrKey->getPointeeType(), in BuildObjCDictionaryLiteral()
1046 LookupProtocol(&Context.Idents.get("NSCopying"), SR.getBegin())) { in BuildObjCDictionaryLiteral()
1048 QIDNSCopying = Context.getObjCObjectType( in BuildObjCDictionaryLiteral()
1049 Context.ObjCBuiltinIdTy, {}, in BuildObjCDictionaryLiteral()
1051 QIDNSCopying = Context.getObjCObjectPointerType(QIDNSCopying); in BuildObjCDictionaryLiteral()
1055 err = !Context.hasSameUnqualifiedType(PtrKey->getPointeeType(), in BuildObjCDictionaryLiteral()
1065 << Context.getPointerType(IdT.withConst()); in BuildObjCDictionaryLiteral()
1125 QualType Ty = Context.getObjCObjectPointerType( in BuildObjCDictionaryLiteral()
1126 Context.getObjCInterfaceType(NSDictionaryDecl)); in BuildObjCDictionaryLiteral()
1129 ObjCDictionaryLiteral::Create(Context, Elements, HasPackExpansions, Ty, in BuildObjCDictionaryLiteral()
1138 ASTContext &Context = getASTContext(); in BuildObjCEncodeExpression() local
1142 StrTy = Context.DependentTy; in BuildObjCEncodeExpression()
1153 Context.getObjCEncodingForType(EncodedType, Str, nullptr, &NotEncodedT); in BuildObjCEncodeExpression()
1160 StrTy = Context.getStringLiteralArrayType(Context.CharTy, Str.size()); in BuildObjCEncodeExpression()
1163 return new (Context) ObjCEncodeExpr(StrTy, EncodedTypeInfo, AtLoc, RParenLoc); in BuildObjCEncodeExpression()
1171 ASTContext &Context = getASTContext(); in ParseObjCEncodeExpression() local
1176 TInfo = Context.getTrivialTypeSourceInfo( in ParseObjCEncodeExpression()
1307 ASTContext &Context = getASTContext(); in ParseObjCSelectorExpression() local
1393 QualType Ty = Context.getObjCSelType(); in ParseObjCSelectorExpression()
1394 return new (Context) ObjCSelectorExpr(Ty, Sel, AtLoc, RParenLoc); in ParseObjCSelectorExpression()
1403 ASTContext &Context = getASTContext(); in ParseObjCProtocolExpression() local
1419 QualType Ty = Context.getObjCProtoType(); in ParseObjCProtocolExpression()
1422 Ty = Context.getObjCObjectPointerType(Ty); in ParseObjCProtocolExpression()
1423 return new (Context) ObjCProtocolExpr(Ty, PDecl, AtLoc, ProtoIdLoc, RParenLoc); in ParseObjCProtocolExpression()
1442 static QualType stripObjCInstanceType(ASTContext &Context, QualType T) { in stripObjCInstanceType() argument
1445 if (T == Context.getObjCInstanceType()) { in stripObjCInstanceType()
1446 return Context.getAttributedType( in stripObjCInstanceType()
1448 Context.getObjCIdType(), in stripObjCInstanceType()
1449 Context.getObjCIdType()); in stripObjCInstanceType()
1455 if (T == Context.getObjCInstanceType()) in stripObjCInstanceType()
1456 return Context.getObjCIdType(); in stripObjCInstanceType()
1475 ASTContext &Context = S.Context; in getBaseMessageSendResultType() local
1487 return Context.getAttributedType( in getBaseMessageSendResultType()
1501 return stripObjCInstanceType(Context, in getBaseMessageSendResultType()
1510 Context.getObjCObjectPointerType( in getBaseMessageSendResultType()
1511 Context.getObjCInterfaceType(Class))); in getBaseMessageSendResultType()
1517 return transferNullability(Context.getObjCObjectPointerType(ReceiverType)); in getBaseMessageSendResultType()
1522 return stripObjCInstanceType(Context, in getBaseMessageSendResultType()
1536 ASTContext &Context = getASTContext(); in getMessageSendResultType() local
1552 if (T == Context.getObjCInstanceType()) { in getMessageSendResultType()
1558 QualType NewResultType = Context.getObjCObjectPointerType( in getMessageSendResultType()
1559 Context.getObjCInterfaceType(MD->getClassInterface())); in getMessageSendResultType()
1561 NewResultType = Context.getAttributedType( in getMessageSendResultType()
1617 resultType = resultType.getDesugaredType(Context); in getMessageSendResultType()
1625 return Context.getAttributedType( in getMessageSendResultType()
1669 ASTContext &Context = getASTContext(); in EmitRelatedResultTypeNoteForReturn() local
1674 Context.hasSameUnqualifiedType(destType, MD->getReturnType())) in EmitRelatedResultTypeNoteForReturn()
1680 findExplicitInstancetypeDeclarer(MD, Context.getObjCInstanceType())) { in EmitRelatedResultTypeNoteForReturn()
1699 ASTContext &Context = getASTContext(); in EmitRelatedResultTypeNote() local
1712 if (Context.hasSameUnqualifiedType( in EmitRelatedResultTypeNote()
1716 if (!Context.hasSameUnqualifiedType(Method->getReturnType(), in EmitRelatedResultTypeNote()
1717 Context.getObjCInstanceType())) in EmitRelatedResultTypeNote()
1731 ASTContext &Context = getASTContext(); in CheckMessageArgumentTypes() local
1799 ReturnType = Context.UnknownAnyTy; in CheckMessageArgumentTypes()
1801 ReturnType = Context.getObjCIdType(); in CheckMessageArgumentTypes()
1842 argExpr->IgnoreParenNoopCasts(Context))) in CheckMessageArgumentTypes()
1853 if (param->getType() == Context.UnknownAnyTy) { in CheckMessageArgumentTypes()
1871 Context, in CheckMessageArgumentTypes()
1881 = InitializedEntity::InitializeParameter(Context, param, paramType); in CheckMessageArgumentTypes()
1993 ASTContext &Context = getASTContext(); in HandleExprPropertyRefExpr() local
2018 return new (Context) in HandleExprPropertyRefExpr()
2019 ObjCPropertyRefExpr(PD, Context.PseudoObjectTy, VK_LValue, in HandleExprPropertyRefExpr()
2022 return new (Context) in HandleExprPropertyRefExpr()
2023 ObjCPropertyRefExpr(PD, Context.PseudoObjectTy, VK_LValue, in HandleExprPropertyRefExpr()
2035 return new (Context) ObjCPropertyRefExpr( in HandleExprPropertyRefExpr()
2036 PD, Context.PseudoObjectTy, VK_LValue, OK_ObjCProperty, MemberLoc, in HandleExprPropertyRefExpr()
2039 return new (Context) in HandleExprPropertyRefExpr()
2040 ObjCPropertyRefExpr(PD, Context.PseudoObjectTy, VK_LValue, in HandleExprPropertyRefExpr()
2104 return new (Context) in HandleExprPropertyRefExpr()
2105 ObjCPropertyRefExpr(Getter, Setter, Context.PseudoObjectTy, VK_LValue, in HandleExprPropertyRefExpr()
2108 return new (Context) in HandleExprPropertyRefExpr()
2109 ObjCPropertyRefExpr(Getter, Setter, Context.PseudoObjectTy, VK_LValue, in HandleExprPropertyRefExpr()
2173 ASTContext &Context = getASTContext(); in ActOnClassPropertyRefExpr() local
2193 QualType T = Context.getObjCObjectPointerType(SuperType); in ActOnClassPropertyRefExpr()
2260 return new (Context) in ActOnClassPropertyRefExpr()
2261 ObjCPropertyRefExpr(Getter, Setter, Context.PseudoObjectTy, VK_LValue, in ActOnClassPropertyRefExpr()
2265 return new (Context) ObjCPropertyRefExpr( in ActOnClassPropertyRefExpr()
2266 Getter, Setter, Context.PseudoObjectTy, VK_LValue, OK_ObjCProperty, in ActOnClassPropertyRefExpr()
2270 << &propertyName << Context.getObjCInterfaceType(IFace)); in ActOnClassPropertyRefExpr()
2299 ASTContext &Context = getASTContext(); in getObjCMessageKind() local
2349 T = Context.getObjCInterfaceType(Class); in getObjCMessageKind()
2351 T = Context.getTypeDeclType(Type); in getObjCMessageKind()
2359 TypeSourceInfo *TSInfo = Context.getTrivialTypeSourceInfo(T, NameLoc); in getObjCMessageKind()
2381 QualType T = Context.getObjCInterfaceType(Class); in getObjCMessageKind()
2382 TypeSourceInfo *TSInfo = Context.getTrivialTypeSourceInfo(T, NameLoc); in getObjCMessageKind()
2397 ASTContext &Context = getASTContext(); in ActOnSuperMessage() local
2428 SuperTy = Context.getObjCObjectPointerType(SuperTy); in ActOnSuperMessage()
2447 ASTContext &Context = getASTContext(); in BuildClassMessageImplicit() local
2450 receiverTypeInfo = Context.getTrivialTypeSourceInfo(ReceiverType); in BuildClassMessageImplicit()
2623 ASTContext &Context = getASTContext(); in BuildClassMessage() local
2644 return ObjCMessageExpr::Create(Context, ReceiverType, VK_PRValue, LBracLoc, in BuildClassMessage()
2667 if (SemaRef.RequireCompleteType(Loc, Context.getObjCInterfaceType(Class), in BuildClassMessage()
2747 Context, ReturnType, VK, LBracLoc, SuperLoc, /*IsInstanceSuper=*/false, in BuildClassMessage()
2752 Context, ReturnType, VK, LBracLoc, ReceiverTypeInfo, Sel, SelectorLocs, in BuildClassMessage()
2771 ASTContext &Context = getASTContext(); in ActOnClassMessage() local
2779 ReceiverTypeInfo = Context.getTrivialTypeSourceInfo(ReceiverType, LBracLoc); in ActOnClassMessage()
2851 ASTContext &Context = getASTContext(); in BuildInstanceMessage() local
2875 if (Receiver->getType() == Context.UnknownAnyTy) in BuildInstanceMessage()
2877 SemaRef.forceUnknownAnyToType(Receiver, Context.getObjCIdType()); in BuildInstanceMessage()
2891 Context, Context.DependentTy, VK_PRValue, LBracLoc, Receiver, Sel, in BuildInstanceMessage()
2910 !Context.getObjCIdType().isNull() && in BuildInstanceMessage()
2918 .ImpCastExprToType(Receiver, Context.getObjCIdType(), in BuildInstanceMessage()
2923 bool IsNull = Receiver->isNullPointerConstant(Context, in BuildInstanceMessage()
2927 SemaRef.ImpCastExprToType(Receiver, Context.getObjCIdType(), Kind) in BuildInstanceMessage()
2954 bool receiverIsIdLike = ReceiverType->isObjCIdOrObjectKindOfType(Context, in BuildInstanceMessage()
2957 (Receiver && Context.isObjCNSObjectType(Receiver->getType()))) { in BuildInstanceMessage()
3338 Context, ReturnType, VK, LBracLoc, SuperLoc, /*IsInstanceSuper=*/true, in BuildInstanceMessage()
3343 Context, ReturnType, VK, LBracLoc, Receiver, Sel, SelectorLocs, Method, in BuildInstanceMessage()
3360 Context.getObjCInterfaceType(CurMeth->getClassInterface()); in BuildInstanceMessage()
3428 ASTContext &Context = getASTContext(); in ActOnInstanceMessage() local
3441 IdentifierInfo *SelectorId = &Context.Idents.get("respondsToSelector"); in ActOnInstanceMessage()
3442 RespondsToSelectorSel = Context.Selectors.getUnarySelector(SelectorId); in ActOnInstanceMessage()
3548 ASTContext &Context; member in __anone249df720411::ARCCastChecker
3559 ARCCastChecker(ASTContext &Context, ARCConversionTypeClass source, in ARCCastChecker() argument
3561 : Context(Context), SourceClass(source), TargetClass(target), in ARCCastChecker()
3575 if (e->isNullPointerConstant(Context, Expr::NPC_ValueDependentIsNotNull)) in VisitExpr()
3643 !var->hasDefinition(Context) && in VisitDeclRefExpr()
3648 if (Context.getSourceManager().isInSystemHeader(var->getLocation())) in VisitDeclRefExpr()
3750 ASTContext &Context = getASTContext(); in isKnownName() local
3753 LookupResult R(SemaRef, &Context.Idents.get(name), SourceLocation(), in isKnownName()
3938 ARCCastChecker(S.Context, exprACTC, castACTC, true).Visit(castExpr); in diagnoseObjCARCConversion()
3979 ARCCastChecker(S.Context, exprACTC, castACTC, true).Visit(castExpr); in diagnoseObjCARCConversion()
4045 (S.Context.ObjCObjectAdoptsQTypeProtocols( in CheckObjCBridgeNSCast()
4112 (S.Context.QIdProtocolsAdoptObjCObjectProtocols( in CheckObjCBridgeCFCast()
4236 ASTContext &Context = getASTContext(); in checkObjCBridgeRelatedComponents() local
4275 Selector Sel = Context.Selectors.getUnarySelector(CMId); in checkObjCBridgeRelatedComponents()
4289 Selector Sel = Context.Selectors.getNullarySelector(IMId); in checkObjCBridgeRelatedComponents()
4308 ASTContext &Context = getASTContext(); in CheckObjCBridgeRelatedConversions() local
4344 QualType receiverType = Context.getObjCInterfaceType(RelatedClass); in CheckObjCBridgeRelatedConversions()
4403 ASTContext &Context = getASTContext(); in CheckObjCConversion() local
4454 if (castACTC == ACTC_none && castType->isIntegralType(Context)) in CheckObjCConversion()
4471 switch (ARCCastChecker(Context, exprACTC, castACTC, false).Visit(castExpr)) { in CheckObjCConversion()
4483 castExpr = ImplicitCastExpr::Create(Context, castExpr->getType(), in CheckObjCConversion()
4557 ASTContext &Context = getASTContext(); in stripARCUnbridgedCast() local
4561 return new (Context) ParenExpr(pe->getLParen(), pe->getRParen(), sub); in stripARCUnbridgedCast()
4565 return UnaryOperator::Create(Context, sub, UO_Extension, sub->getType(), in stripARCUnbridgedCast()
4587 Context, gse->getGenericLoc(), gse->getControllingExpr(), subTypes, in stripARCUnbridgedCast()
4598 ASTContext &Context = getASTContext(); in CheckObjCARCUnavailableWeakConversion() local
4600 Context.getCanonicalType(castType).getUnqualifiedType(); in CheckObjCARCUnavailableWeakConversion()
4602 Context.getCanonicalType(exprType).getUnqualifiedType(); in CheckObjCARCUnavailableWeakConversion()
4656 ASTContext &Context = getASTContext(); in BuildObjCBridgedCast() local
4716 SubExpr = ImplicitCastExpr::Create(Context, FromType, CK_ARCProduceObject, in BuildObjCBridgedCast()
4750 Expr *Result = new (Context) ObjCBridgedCastExpr(LParenLoc, Kind, CK, in BuildObjCBridgedCast()
4756 Result = ImplicitCastExpr::Create(Context, T, CK_ARCConsumeObject, Result, in BuildObjCBridgedCast()
4769 ASTContext &Context = getASTContext(); in ActOnObjCBridgedCast() local
4775 TSInfo = Context.getTrivialTypeSourceInfo(T, LParenLoc); in ActOnObjCBridgedCast()
4873 ASTContext &Context = getASTContext(); in BuildIvarRefExpr() local
4892 IdentifierInfo &II = Context.Idents.get("self"); in BuildIvarRefExpr()
4915 ObjCIvarRefExpr *Result = new (Context) in BuildIvarRefExpr()
4934 ASTContext &Context = getASTContext(); in FindCompositeObjCPointerType() local
4942 (Context.hasSameType(RHSTy, Context.getObjCClassRedefinitionType()))) { in FindCompositeObjCPointerType()
4948 (Context.hasSameType(LHSTy, Context.getObjCClassRedefinitionType()))) { in FindCompositeObjCPointerType()
4955 (Context.hasSameType(RHSTy, Context.getObjCIdRedefinitionType()))) { in FindCompositeObjCPointerType()
4961 (Context.hasSameType(LHSTy, Context.getObjCIdRedefinitionType()))) { in FindCompositeObjCPointerType()
4967 if (Context.isObjCSelType(LHSTy) && in FindCompositeObjCPointerType()
4968 (Context.hasSameType(RHSTy, Context.getObjCSelRedefinitionType()))) { in FindCompositeObjCPointerType()
4972 if (Context.isObjCSelType(RHSTy) && in FindCompositeObjCPointerType()
4973 (Context.hasSameType(LHSTy, Context.getObjCSelRedefinitionType()))) { in FindCompositeObjCPointerType()
4980 if (Context.getCanonicalType(LHSTy) == Context.getCanonicalType(RHSTy)) { in FindCompositeObjCPointerType()
5003 if (!(compositeType = Context.areCommonBaseCompatible(LHSOPT, RHSOPT)) in FindCompositeObjCPointerType()
5006 } else if (Context.canAssignObjCInterfaces(LHSOPT, RHSOPT)) { in FindCompositeObjCPointerType()
5008 } else if (Context.canAssignObjCInterfaces(RHSOPT, LHSOPT)) { in FindCompositeObjCPointerType()
5012 Context.ObjCQualifiedIdTypesAreCompatible(LHSOPT, RHSOPT, in FindCompositeObjCPointerType()
5018 compositeType = Context.getObjCIdType(); in FindCompositeObjCPointerType()
5020 compositeType = Context.getObjCIdType(); in FindCompositeObjCPointerType()
5025 QualType incompatTy = Context.getObjCIdType(); in FindCompositeObjCPointerType()
5049 Context.getQualifiedType(lhptee, rhptee.getQualifiers()); in FindCompositeObjCPointerType()
5050 QualType destType = Context.getPointerType(destPointee); in FindCompositeObjCPointerType()
5070 Context.getQualifiedType(rhptee, lhptee.getQualifiers()); in FindCompositeObjCPointerType()
5071 QualType destType = Context.getPointerType(destPointee); in FindCompositeObjCPointerType()
5140 ASTContext &Context = getASTContext(); in ActOnObjCBoolLiteral() local
5141 QualType BoolT = Context.ObjCBuiltinBoolTy; in ActOnObjCBoolLiteral()
5142 if (!Context.getBOOLDecl()) { in ActOnObjCBoolLiteral()
5143 LookupResult Result(SemaRef, &Context.Idents.get("BOOL"), OpLoc, in ActOnObjCBoolLiteral()
5149 Context.setBOOLDecl(TD); in ActOnObjCBoolLiteral()
5152 if (Context.getBOOLDecl()) in ActOnObjCBoolLiteral()
5153 BoolT = Context.getBOOLType(); in ActOnObjCBoolLiteral()
5154 return new (Context) in ActOnObjCBoolLiteral()
5161 ASTContext &Context = getASTContext(); in ActOnObjCAvailabilityCheckExpr() local
5181 FindSpecVersion(Context.getTargetInfo().getPlatformName())) in ActOnObjCAvailabilityCheckExpr()
5186 if (FunctionScopeInfo *Context = SemaRef.getCurFunctionAvailabilityContext()) in ActOnObjCAvailabilityCheckExpr() local
5187 Context->HasPotentialAvailabilityViolations = true; in ActOnObjCAvailabilityCheckExpr()
5189 return new (Context) in ActOnObjCAvailabilityCheckExpr()
5190 ObjCAvailabilityCheckExpr(Version, AtLoc, RParen, Context.BoolTy); in ActOnObjCAvailabilityCheckExpr()