Lines Matching refs:Context

68     ASTContext *Context;  member in __anonadad980e0111::RewriteModernObjC
268 Diags.Report(Context->getFullLoc(Old->getBeginLoc()), RewriteFailedDiag) in ReplaceStmtWithRange()
285 Diags.Report(Context->getFullLoc(Old->getBeginLoc()), RewriteFailedDiag) in ReplaceStmtWithRange()
296 Diags.Report(Context->getFullLoc(Loc), RewriteFailedDiag); in InsertText()
306 Diags.Report(Context->getFullLoc(Start), RewriteFailedDiag); in ReplaceText()
510 T = Context->getPointerType(BPT->getPointeeType()); in convertBlockPointerToFunctionPointer()
526 T = isConst ? Context->getObjCIdType().withConst() in convertToUnqualifiedObjCType()
527 : Context->getObjCIdType(); in convertToUnqualifiedObjCType()
530 T = Context->getObjCClassType(); in convertToUnqualifiedObjCType()
537 T = Context->getPointerType(T); in convertToUnqualifiedObjCType()
547 QualType OCT = Context->getCanonicalType(T).getUnqualifiedType(); in isObjCType()
549 if (OCT == Context->getCanonicalType(Context->getObjCIdType()) || in isObjCType()
550 OCT == Context->getCanonicalType(Context->getObjCClassType())) in isObjCType()
578 if (result == Context->getObjCInstanceType()) in getSimpleFunctionType()
579 result = Context->getObjCIdType(); in getSimpleFunctionType()
582 return Context->getFunctionType(result, args, fpi); in getSimpleFunctionType()
594 IdentifierInfo* II = &Context->Idents.get("load"); in ImplementationIsNonLazy()
595 Selector LoadSel = Context->Selectors.getSelector(0, &II); in ImplementationIsNonLazy()
600 QualType StrType = Context->getConstantArrayType( in getStringLiteral()
601 Context->CharTy, llvm::APInt(32, Str.size() + 1), ArrayType::Normal, in getStringLiteral()
603 return StringLiteral::Create(*Context, Str, StringLiteral::Ascii, in getStringLiteral()
673 Context = &context; in InitializeCommon()
674 SM = &Context->getSourceManager(); in InitializeCommon()
675 TUDecl = Context->getTranslationUnitDecl(); in InitializeCommon()
709 Rewrite.setSourceMgr(Context->getSourceManager(), Context->getLangOpts()); in InitializeCommon()
868 RecordDecl::Create(*Context, TTK_Struct, TUDecl, SourceLocation(), in getIvarAccessString()
869 SourceLocation(), &Context->Idents.get(RecName)); in getIvarAccessString()
870 QualType PtrStructIMPL = Context->getPointerType(Context->getTagDeclType(RD)); in getIvarAccessString()
872 static_cast<unsigned>(Context->getTypeSize(Context->UnsignedIntTy)); in getIvarAccessString()
873 Expr *Zero = IntegerLiteral::Create(*Context, in getIvarAccessString()
875 Context->UnsignedIntTy, SourceLocation()); in getIvarAccessString()
876 Zero = NoTypeInfoCStyleCastExpr(Context, PtrStructIMPL, CK_BitCast, Zero); in getIvarAccessString()
877 ParenExpr *PE = new (Context) ParenExpr(SourceLocation(), SourceLocation(), in getIvarAccessString()
879 FieldDecl *FD = FieldDecl::Create(*Context, nullptr, SourceLocation(), in getIvarAccessString()
881 &Context->Idents.get(D->getNameAsString()), in getIvarAccessString()
885 MemberExpr *ME = new (Context) in getIvarAccessString()
888 IvarT = Context->getDecltypeType(ME, ME->getType()); in getIvarAccessString()
892 QualType castT = Context->getPointerType(IvarT); in getIvarAccessString()
893 std::string TypeString(castT.getAsString(Context->getPrintingPolicy())); in getIvarAccessString()
978 FT->getParamType(i).getAsString(Context->getPrintingPolicy()); in RewritePropertyImplDecl()
1223 FPRetType->getReturnType().getAsString(Context->getPrintingPolicy()); in RewriteTypeIntoString()
1227 ResultStr += T.getAsString(Context->getPrintingPolicy()); in RewriteTypeIntoString()
1273 QualType selfTy = Context->getObjCInterfaceType(IDecl); in RewriteObjCMethodDecl()
1274 selfTy = Context->getPointerType(selfTy); in RewriteObjCMethodDecl()
1284 ResultStr += Context->getObjCClassType().getAsString( in RewriteObjCMethodDecl()
1285 Context->getPrintingPolicy()); in RewriteObjCMethodDecl()
1288 ResultStr += Context->getObjCSelType().getAsString(Context->getPrintingPolicy()); in RewriteObjCMethodDecl()
1302 QT.getAsStringInternal(Name, Context->getPrintingPolicy()); in RewriteObjCMethodDecl()
1319 FT->getParamType(i).getAsString(Context->getPrintingPolicy()); in RewriteObjCMethodDecl()
1451 NewMsg = ObjCMessageExpr::Create(*Context, OldMsg->getType(), in RewritePropertyOrImplicitSetter()
1464 NewMsg = ObjCMessageExpr::Create(*Context, OldMsg->getType(), in RewritePropertyOrImplicitSetter()
1478 NewMsg = ObjCMessageExpr::Create(*Context, OldMsg->getType(), in RewritePropertyOrImplicitSetter()
1534 NewMsg = ObjCMessageExpr::Create(*Context, OldMsg->getType(), in RewritePropertyOrImplicitGetter()
1547 NewMsg = ObjCMessageExpr::Create(*Context, OldMsg->getType(), in RewritePropertyOrImplicitGetter()
1561 NewMsg = ObjCMessageExpr::Create(*Context, OldMsg->getType(), in RewritePropertyOrImplicitGetter()
1706 elementTypeAsString = ElementType.getAsString(Context->getPrintingPolicy()); in RewriteObjCForCollectionStmt()
1722 elementTypeAsString = VD->getType().getAsString(Context->getPrintingPolicy()); in RewriteObjCForCollectionStmt()
1917 Diags.Report(Context->getFullLoc(S->getBeginLoc()), in WarnAboutReturnGotoStmts()
2067 Context->getObjCEncodingForType(Exp->getEncodedType(), StrEncoding); in RewriteAtEncode()
2099 DeclRefExpr *DRE = new (Context) DeclRefExpr(*Context, FD, false, msgSendType, in SynthesizeCallToFunctionDecl()
2103 QualType pToFunc = Context->getPointerType(msgSendType); in SynthesizeCallToFunctionDecl()
2105 ImplicitCastExpr::Create(*Context, pToFunc, CK_FunctionToPointerDecay, in SynthesizeCallToFunctionDecl()
2111 *Context, ICE, Args, FT->getCallResultType(*Context), VK_RValue, EndLoc); in SynthesizeCallToFunctionDecl()
2156 QualType ElemTy = Context->getBaseElementType(T); in needToScanForQualifiers()
2286 std::string TypeAsString(QT.getAsString(Context->getPrintingPolicy())); in RewriteTypeOfDecl()
2312 IdentifierInfo *SelGetUidIdent = &Context->Idents.get("sel_registerName"); in SynthSelGetUidFunctionDecl()
2314 ArgTys.push_back(Context->getPointerType(Context->CharTy.withConst())); in SynthSelGetUidFunctionDecl()
2316 getSimpleFunctionType(Context->getObjCSelType(), ArgTys); in SynthSelGetUidFunctionDecl()
2317 SelGetUidFunctionDecl = FunctionDecl::Create(*Context, TUDecl, in SynthSelGetUidFunctionDecl()
2335 std::string TypeString(Type.getAsString(Context->getPrintingPolicy())); in RewriteBlockPointerType()
2351 std::string TypeString(Type.getAsString(Context->getPrintingPolicy())); in RewriteBlockPointerTypeVariable()
2384 std::string FdStr = Type.getAsString(Context->getPrintingPolicy()); in RewriteBlockLiteralFunctionDecl()
2407 IdentifierInfo *msgSendIdent = &Context->Idents.get("__rw_objc_super"); in SynthSuperConstructorFunctionDecl()
2409 QualType argT = Context->getObjCIdType(); in SynthSuperConstructorFunctionDecl()
2413 QualType msgSendType = getSimpleFunctionType(Context->getObjCIdType(), in SynthSuperConstructorFunctionDecl()
2415 SuperConstructorFunctionDecl = FunctionDecl::Create(*Context, TUDecl, in SynthSuperConstructorFunctionDecl()
2424 IdentifierInfo *msgSendIdent = &Context->Idents.get("objc_msgSend"); in SynthMsgSendFunctionDecl()
2426 QualType argT = Context->getObjCIdType(); in SynthMsgSendFunctionDecl()
2429 argT = Context->getObjCSelType(); in SynthMsgSendFunctionDecl()
2432 QualType msgSendType = getSimpleFunctionType(Context->getObjCIdType(), in SynthMsgSendFunctionDecl()
2434 MsgSendFunctionDecl = FunctionDecl::Create(*Context, TUDecl, in SynthMsgSendFunctionDecl()
2443 IdentifierInfo *msgSendIdent = &Context->Idents.get("objc_msgSendSuper"); in SynthMsgSendSuperFunctionDecl()
2445 ArgTys.push_back(Context->VoidTy); in SynthMsgSendSuperFunctionDecl()
2446 QualType msgSendType = getSimpleFunctionType(Context->getObjCIdType(), in SynthMsgSendSuperFunctionDecl()
2448 MsgSendSuperFunctionDecl = FunctionDecl::Create(*Context, TUDecl, in SynthMsgSendSuperFunctionDecl()
2457 IdentifierInfo *msgSendIdent = &Context->Idents.get("objc_msgSend_stret"); in SynthMsgSendStretFunctionDecl()
2459 QualType argT = Context->getObjCIdType(); in SynthMsgSendStretFunctionDecl()
2462 argT = Context->getObjCSelType(); in SynthMsgSendStretFunctionDecl()
2465 QualType msgSendType = getSimpleFunctionType(Context->getObjCIdType(), in SynthMsgSendStretFunctionDecl()
2467 MsgSendStretFunctionDecl = FunctionDecl::Create(*Context, TUDecl, in SynthMsgSendStretFunctionDecl()
2478 &Context->Idents.get("objc_msgSendSuper_stret"); in SynthMsgSendSuperStretFunctionDecl()
2480 ArgTys.push_back(Context->VoidTy); in SynthMsgSendSuperStretFunctionDecl()
2481 QualType msgSendType = getSimpleFunctionType(Context->getObjCIdType(), in SynthMsgSendSuperStretFunctionDecl()
2483 MsgSendSuperStretFunctionDecl = FunctionDecl::Create(*Context, TUDecl, in SynthMsgSendSuperStretFunctionDecl()
2493 IdentifierInfo *msgSendIdent = &Context->Idents.get("objc_msgSend_fpret"); in SynthMsgSendFpretFunctionDecl()
2495 QualType argT = Context->getObjCIdType(); in SynthMsgSendFpretFunctionDecl()
2498 argT = Context->getObjCSelType(); in SynthMsgSendFpretFunctionDecl()
2501 QualType msgSendType = getSimpleFunctionType(Context->DoubleTy, in SynthMsgSendFpretFunctionDecl()
2503 MsgSendFpretFunctionDecl = FunctionDecl::Create(*Context, TUDecl, in SynthMsgSendFpretFunctionDecl()
2512 IdentifierInfo *getClassIdent = &Context->Idents.get("objc_getClass"); in SynthGetClassFunctionDecl()
2514 ArgTys.push_back(Context->getPointerType(Context->CharTy.withConst())); in SynthGetClassFunctionDecl()
2515 QualType getClassType = getSimpleFunctionType(Context->getObjCClassType(), in SynthGetClassFunctionDecl()
2517 GetClassFunctionDecl = FunctionDecl::Create(*Context, TUDecl, in SynthGetClassFunctionDecl()
2527 &Context->Idents.get("class_getSuperclass"); in SynthGetSuperClassFunctionDecl()
2529 ArgTys.push_back(Context->getObjCClassType()); in SynthGetSuperClassFunctionDecl()
2530 QualType getClassType = getSimpleFunctionType(Context->getObjCClassType(), in SynthGetSuperClassFunctionDecl()
2532 GetSuperClassFunctionDecl = FunctionDecl::Create(*Context, TUDecl, in SynthGetSuperClassFunctionDecl()
2542 IdentifierInfo *getClassIdent = &Context->Idents.get("objc_getMetaClass"); in SynthGetMetaClassFunctionDecl()
2544 ArgTys.push_back(Context->getPointerType(Context->CharTy.withConst())); in SynthGetMetaClassFunctionDecl()
2545 QualType getClassType = getSimpleFunctionType(Context->getObjCClassType(), in SynthGetMetaClassFunctionDecl()
2547 GetMetaClassFunctionDecl = FunctionDecl::Create(*Context, TUDecl, in SynthGetMetaClassFunctionDecl()
2583 VarDecl *NewVD = VarDecl::Create(*Context, TUDecl, SourceLocation(), in RewriteObjCStringLiteral()
2584 SourceLocation(), &Context->Idents.get(S), in RewriteObjCStringLiteral()
2586 DeclRefExpr *DRE = new (Context) in RewriteObjCStringLiteral()
2587 DeclRefExpr(*Context, NewVD, false, strType, VK_LValue, SourceLocation()); in RewriteObjCStringLiteral()
2588 Expr *Unop = new (Context) in RewriteObjCStringLiteral()
2589 UnaryOperator(DRE, UO_AddrOf, Context->getPointerType(DRE->getType()), in RewriteObjCStringLiteral()
2592 CastExpr *cast = NoTypeInfoCStyleCastExpr(Context, Exp->getType(), in RewriteObjCStringLiteral()
2601 static_cast<unsigned>(Context->getTypeSize(Context->IntTy)); in RewriteObjCBoolLiteralExpr()
2603 Expr *FlagExp = IntegerLiteral::Create(*Context, in RewriteObjCBoolLiteralExpr()
2605 Context->IntTy, Exp->getLocation()); in RewriteObjCBoolLiteralExpr()
2606 CastExpr *cast = NoTypeInfoCStyleCastExpr(Context, Context->ObjCBuiltinBoolTy, in RewriteObjCBoolLiteralExpr()
2608 ParenExpr *PE = new (Context) ParenExpr(Exp->getLocation(), Exp->getExprLoc(), in RewriteObjCBoolLiteralExpr()
2657 if (SubExpr->getType()->isIntegralType(*Context) && type->isBooleanType()) in RewriteObjCBoxedExpr()
2659 subExpr = NoTypeInfoCStyleCastExpr(Context, type, CK, subExpr); in RewriteObjCBoxedExpr()
2664 ArgTypes.push_back(Context->getObjCClassType()); in RewriteObjCBoxedExpr()
2665 ArgTypes.push_back(Context->getObjCSelType()); in RewriteObjCBoxedExpr()
2674 DeclRefExpr *DRE = new (Context) DeclRefExpr( in RewriteObjCBoxedExpr()
2675 *Context, MsgSendFlavor, false, msgSendType, VK_LValue, SourceLocation()); in RewriteObjCBoxedExpr()
2678 Context, Context->getPointerType(Context->VoidTy), CK_BitCast, DRE); in RewriteObjCBoxedExpr()
2683 castType = Context->getPointerType(castType); in RewriteObjCBoxedExpr()
2684 cast = NoTypeInfoCStyleCastExpr(Context, castType, CK_BitCast, in RewriteObjCBoxedExpr()
2688 ParenExpr *PE = new (Context) ParenExpr(StartLoc, EndLoc, cast); in RewriteObjCBoxedExpr()
2691 CallExpr *CE = CallExpr::Create(*Context, PE, MsgExprs, FT->getReturnType(), in RewriteObjCBoxedExpr()
2712 QualType IntQT = Context->IntTy; in RewriteObjCArrayLiteralExpr()
2714 getSimpleFunctionType(Context->VoidTy, IntQT, true); in RewriteObjCArrayLiteralExpr()
2717 DeclRefExpr *NSArrayDRE = new (Context) DeclRefExpr( in RewriteObjCArrayLiteralExpr()
2718 *Context, NSArrayFD, false, NSArrayFType, VK_RValue, SourceLocation()); in RewriteObjCArrayLiteralExpr()
2723 static_cast<unsigned>(Context->getTypeSize(Context->UnsignedIntTy)); in RewriteObjCArrayLiteralExpr()
2724 Expr *count = IntegerLiteral::Create(*Context, in RewriteObjCArrayLiteralExpr()
2726 Context->UnsignedIntTy, SourceLocation()); in RewriteObjCArrayLiteralExpr()
2731 CallExpr::Create(*Context, NSArrayDRE, InitExprs, NSArrayFType, VK_LValue, in RewriteObjCArrayLiteralExpr()
2734 FieldDecl *ARRFD = FieldDecl::Create(*Context, nullptr, SourceLocation(), in RewriteObjCArrayLiteralExpr()
2736 &Context->Idents.get("arr"), in RewriteObjCArrayLiteralExpr()
2737 Context->getPointerType(Context->VoidPtrTy), in RewriteObjCArrayLiteralExpr()
2740 MemberExpr *ArrayLiteralME = new (Context) in RewriteObjCArrayLiteralExpr()
2743 QualType ConstIdT = Context->getObjCIdType().withConst(); in RewriteObjCArrayLiteralExpr()
2745 NoTypeInfoCStyleCastExpr(Context, in RewriteObjCArrayLiteralExpr()
2746 Context->getPointerType(ConstIdT), in RewriteObjCArrayLiteralExpr()
2779 Expr *cnt = IntegerLiteral::Create(*Context, in RewriteObjCArrayLiteralExpr()
2781 Context->UnsignedIntTy, SourceLocation()); in RewriteObjCArrayLiteralExpr()
2785 ArgTypes.push_back(Context->getObjCClassType()); in RewriteObjCArrayLiteralExpr()
2786 ArgTypes.push_back(Context->getObjCSelType()); in RewriteObjCArrayLiteralExpr()
2795 DeclRefExpr *DRE = new (Context) DeclRefExpr( in RewriteObjCArrayLiteralExpr()
2796 *Context, MsgSendFlavor, false, msgSendType, VK_LValue, SourceLocation()); in RewriteObjCArrayLiteralExpr()
2799 Context, Context->getPointerType(Context->VoidTy), CK_BitCast, DRE); in RewriteObjCArrayLiteralExpr()
2804 castType = Context->getPointerType(castType); in RewriteObjCArrayLiteralExpr()
2805 cast = NoTypeInfoCStyleCastExpr(Context, castType, CK_BitCast, in RewriteObjCArrayLiteralExpr()
2809 ParenExpr *PE = new (Context) ParenExpr(StartLoc, EndLoc, cast); in RewriteObjCArrayLiteralExpr()
2812 CallExpr *CE = CallExpr::Create(*Context, PE, MsgExprs, FT->getReturnType(), in RewriteObjCArrayLiteralExpr()
2833 QualType IntQT = Context->IntTy; in RewriteObjCDictionaryLiteralExpr()
2835 getSimpleFunctionType(Context->VoidTy, IntQT, true); in RewriteObjCDictionaryLiteralExpr()
2838 DeclRefExpr *NSDictDRE = new (Context) DeclRefExpr( in RewriteObjCDictionaryLiteralExpr()
2839 *Context, NSDictFD, false, NSDictFType, VK_RValue, SourceLocation()); in RewriteObjCDictionaryLiteralExpr()
2846 static_cast<unsigned>(Context->getTypeSize(Context->UnsignedIntTy)); in RewriteObjCDictionaryLiteralExpr()
2847 Expr *count = IntegerLiteral::Create(*Context, in RewriteObjCDictionaryLiteralExpr()
2849 Context->UnsignedIntTy, SourceLocation()); in RewriteObjCDictionaryLiteralExpr()
2860 CallExpr::Create(*Context, NSDictDRE, ValueExprs, NSDictFType, VK_LValue, in RewriteObjCDictionaryLiteralExpr()
2863 FieldDecl *ARRFD = FieldDecl::Create(*Context, nullptr, SourceLocation(), in RewriteObjCDictionaryLiteralExpr()
2865 &Context->Idents.get("arr"), in RewriteObjCDictionaryLiteralExpr()
2866 Context->getPointerType(Context->VoidPtrTy), in RewriteObjCDictionaryLiteralExpr()
2869 MemberExpr *DictLiteralValueME = new (Context) in RewriteObjCDictionaryLiteralExpr()
2872 QualType ConstIdT = Context->getObjCIdType().withConst(); in RewriteObjCDictionaryLiteralExpr()
2874 NoTypeInfoCStyleCastExpr(Context, in RewriteObjCDictionaryLiteralExpr()
2875 Context->getPointerType(ConstIdT), in RewriteObjCDictionaryLiteralExpr()
2880 *Context, NSDictDRE, KeyExprs, NSDictFType, VK_LValue, SourceLocation()); in RewriteObjCDictionaryLiteralExpr()
2882 MemberExpr *DictLiteralKeyME = new (Context) in RewriteObjCDictionaryLiteralExpr()
2887 NoTypeInfoCStyleCastExpr(Context, in RewriteObjCDictionaryLiteralExpr()
2888 Context->getPointerType(ConstIdT), in RewriteObjCDictionaryLiteralExpr()
2923 Expr *cnt = IntegerLiteral::Create(*Context, in RewriteObjCDictionaryLiteralExpr()
2925 Context->UnsignedIntTy, SourceLocation()); in RewriteObjCDictionaryLiteralExpr()
2929 ArgTypes.push_back(Context->getObjCClassType()); in RewriteObjCDictionaryLiteralExpr()
2930 ArgTypes.push_back(Context->getObjCSelType()); in RewriteObjCDictionaryLiteralExpr()
2936 T = Context->getPointerType(PointeeTy); in RewriteObjCDictionaryLiteralExpr()
2946 DeclRefExpr *DRE = new (Context) DeclRefExpr( in RewriteObjCDictionaryLiteralExpr()
2947 *Context, MsgSendFlavor, false, msgSendType, VK_LValue, SourceLocation()); in RewriteObjCDictionaryLiteralExpr()
2950 Context, Context->getPointerType(Context->VoidTy), CK_BitCast, DRE); in RewriteObjCDictionaryLiteralExpr()
2955 castType = Context->getPointerType(castType); in RewriteObjCDictionaryLiteralExpr()
2956 cast = NoTypeInfoCStyleCastExpr(Context, castType, CK_BitCast, in RewriteObjCDictionaryLiteralExpr()
2960 ParenExpr *PE = new (Context) ParenExpr(StartLoc, EndLoc, cast); in RewriteObjCDictionaryLiteralExpr()
2963 CallExpr *CE = CallExpr::Create(*Context, PE, MsgExprs, FT->getReturnType(), in RewriteObjCDictionaryLiteralExpr()
2974 SuperStructDecl = RecordDecl::Create(*Context, TTK_Struct, TUDecl, in getSuperStructType()
2976 &Context->Idents.get("__rw_objc_super")); in getSuperStructType()
2980 FieldTypes[0] = Context->getObjCIdType(); in getSuperStructType()
2982 FieldTypes[1] = Context->getObjCIdType(); in getSuperStructType()
2986 SuperStructDecl->addDecl(FieldDecl::Create(*Context, SuperStructDecl, in getSuperStructType()
2997 return Context->getTagDeclType(SuperStructDecl); in getSuperStructType()
3002 ConstantStringDecl = RecordDecl::Create(*Context, TTK_Struct, TUDecl, in getConstantStringStructType()
3004 &Context->Idents.get("__NSConstantStringImpl")); in getConstantStringStructType()
3008 FieldTypes[0] = Context->getObjCIdType(); in getConstantStringStructType()
3010 FieldTypes[1] = Context->IntTy; in getConstantStringStructType()
3012 FieldTypes[2] = Context->getPointerType(Context->CharTy); in getConstantStringStructType()
3014 FieldTypes[3] = Context->LongTy; in getConstantStringStructType()
3018 ConstantStringDecl->addDecl(FieldDecl::Create(*Context, in getConstantStringStructType()
3030 return Context->getTagDeclType(ConstantStringDecl); in getConstantStringStructType()
3096 QualType castType = Context->getPointerType(FuncType); in SynthMsgSendStretCallExpr()
3110 ArgTypes[i].getAsStringInternal(ArgName, Context->getPrintingPolicy()); in SynthMsgSendStretCallExpr()
3117 Context->getPrintingPolicy()); in SynthMsgSendStretCallExpr()
3123 str += returnType.getAsString(Context->getPrintingPolicy()); str += ");\n"; in SynthMsgSendStretCallExpr()
3127 str += "\t s = (("; str += castType.getAsString(Context->getPrintingPolicy()); in SynthMsgSendStretCallExpr()
3142 str += "\t s = (("; str += castType.getAsString(Context->getPrintingPolicy()); in SynthMsgSendStretCallExpr()
3154 str += "\t"; str += returnType.getAsString(Context->getPrintingPolicy()); in SynthMsgSendStretCallExpr()
3169 IdentifierInfo *ID = &Context->Idents.get(name); in SynthMsgSendStretCallExpr()
3171 FunctionDecl::Create(*Context, TUDecl, SourceLocation(), SourceLocation(), in SynthMsgSendStretCallExpr()
3173 DeclRefExpr *DRE = new (Context) in SynthMsgSendStretCallExpr()
3174 DeclRefExpr(*Context, FD, false, castType, VK_RValue, SourceLocation()); in SynthMsgSendStretCallExpr()
3175 CallExpr *STCE = CallExpr::Create(*Context, DRE, MsgExprs, castType, in SynthMsgSendStretCallExpr()
3178 FieldDecl *FieldD = FieldDecl::Create(*Context, nullptr, SourceLocation(), in SynthMsgSendStretCallExpr()
3180 &Context->Idents.get("s"), in SynthMsgSendStretCallExpr()
3184 MemberExpr *ME = new (Context) in SynthMsgSendStretCallExpr()
3240 NoTypeInfoCStyleCastExpr(Context, Context->getObjCIdType(), in SynthMessageExpr()
3242 new (Context) DeclRefExpr(*Context, in SynthMessageExpr()
3245 Context->getObjCIdType(), in SynthMessageExpr()
3264 NoTypeInfoCStyleCastExpr(Context, in SynthMessageExpr()
3265 Context->getObjCIdType(), in SynthMessageExpr()
3274 DeclRefExpr *DRE = new (Context) in SynthMessageExpr()
3275 DeclRefExpr(*Context, SuperConstructorFunctionDecl, false, superType, in SynthMessageExpr()
3277 SuperRep = CallExpr::Create(*Context, DRE, InitExprs, superType, in SynthMessageExpr()
3285 SuperRep = new (Context) UnaryOperator(SuperRep, UO_AddrOf, in SynthMessageExpr()
3286 Context->getPointerType(SuperRep->getType()), in SynthMessageExpr()
3289 SuperRep = NoTypeInfoCStyleCastExpr(Context, in SynthMessageExpr()
3290 Context->getPointerType(superType), in SynthMessageExpr()
3295 new (Context) InitListExpr(*Context, SourceLocation(), InitExprs, in SynthMessageExpr()
3298 = Context->getTrivialTypeSourceInfo(superType); in SynthMessageExpr()
3299 SuperRep = new (Context) CompoundLiteralExpr(SourceLocation(), superTInfo, in SynthMessageExpr()
3303 SuperRep = new (Context) UnaryOperator(SuperRep, UO_AddrOf, in SynthMessageExpr()
3304 Context->getPointerType(SuperRep->getType()), in SynthMessageExpr()
3320 CastExpr *ArgExpr = NoTypeInfoCStyleCastExpr(Context, in SynthMessageExpr()
3321 Context->getObjCIdType(), in SynthMessageExpr()
3336 NoTypeInfoCStyleCastExpr(Context, Context->getObjCIdType(), in SynthMessageExpr()
3338 new (Context) DeclRefExpr(*Context, in SynthMessageExpr()
3341 Context->getObjCIdType(), in SynthMessageExpr()
3360 NoTypeInfoCStyleCastExpr(Context, Context->getObjCIdType(), in SynthMessageExpr()
3369 DeclRefExpr *DRE = new (Context) in SynthMessageExpr()
3370 DeclRefExpr(*Context, SuperConstructorFunctionDecl, false, superType, in SynthMessageExpr()
3372 SuperRep = CallExpr::Create(*Context, DRE, InitExprs, superType, in SynthMessageExpr()
3380 SuperRep = new (Context) UnaryOperator(SuperRep, UO_AddrOf, in SynthMessageExpr()
3381 Context->getPointerType(SuperRep->getType()), in SynthMessageExpr()
3384 SuperRep = NoTypeInfoCStyleCastExpr(Context, in SynthMessageExpr()
3385 Context->getPointerType(superType), in SynthMessageExpr()
3390 new (Context) InitListExpr(*Context, SourceLocation(), InitExprs, in SynthMessageExpr()
3393 = Context->getTrivialTypeSourceInfo(superType); in SynthMessageExpr()
3394 SuperRep = new (Context) CompoundLiteralExpr(SourceLocation(), superTInfo, in SynthMessageExpr()
3413 recExpr = NoTypeInfoCStyleCastExpr(Context, Context->getObjCIdType(), in SynthMessageExpr()
3435 type = Context->getObjCIdType(); in SynthMessageExpr()
3440 if (SubExpr->getType()->isIntegralType(*Context) && in SynthMessageExpr()
3455 userExpr = NoTypeInfoCStyleCastExpr(Context, type, CK, userExpr); in SynthMessageExpr()
3463 if (userExpr->getType()->isIntegralType(*Context)) { in SynthMessageExpr()
3472 userExpr = NoTypeInfoCStyleCastExpr(Context, Context->getObjCIdType(), in SynthMessageExpr()
3489 ArgTypes.push_back(Context->getPointerType(getSuperStructType())); in SynthMessageExpr()
3491 ArgTypes.push_back(Context->getObjCIdType()); in SynthMessageExpr()
3492 ArgTypes.push_back(Context->getObjCSelType()); in SynthMessageExpr()
3497 ? Context->getObjCIdType() in SynthMessageExpr()
3507 returnType = Context->getObjCIdType(); in SynthMessageExpr()
3513 DeclRefExpr *DRE = new (Context) DeclRefExpr( in SynthMessageExpr()
3514 *Context, MsgSendFlavor, false, msgSendType, VK_LValue, SourceLocation()); in SynthMessageExpr()
3520 cast = NoTypeInfoCStyleCastExpr(Context, in SynthMessageExpr()
3521 Context->getPointerType(Context->VoidTy), in SynthMessageExpr()
3529 castType = Context->getPointerType(castType); in SynthMessageExpr()
3530 cast = NoTypeInfoCStyleCastExpr(Context, castType, CK_BitCast, in SynthMessageExpr()
3534 ParenExpr *PE = new (Context) ParenExpr(StartLoc, EndLoc, cast); in SynthMessageExpr()
3537 CallExpr *CE = CallExpr::Create(*Context, PE, MsgExprs, FT->getReturnType(), in SynthMessageExpr()
3571 = Context->getTrivialTypeSourceInfo(Context->getObjCIdType()); in getProtocolType()
3572 ProtocolTypeDecl = TypedefDecl::Create(*Context, TUDecl, in getProtocolType()
3574 &Context->Idents.get("Protocol"), in getProtocolType()
3577 return Context->getTypeDeclType(ProtocolTypeDecl); in getProtocolType()
3587 IdentifierInfo *ID = &Context->Idents.get(Name); in RewriteObjCProtocolExpr()
3588 VarDecl *VD = VarDecl::Create(*Context, TUDecl, SourceLocation(), in RewriteObjCProtocolExpr()
3591 DeclRefExpr *DRE = new (Context) DeclRefExpr( in RewriteObjCProtocolExpr()
3592 *Context, VD, false, getProtocolType(), VK_LValue, SourceLocation()); in RewriteObjCProtocolExpr()
3594 Context, Context->getPointerType(DRE->getType()), CK_BitCast, DRE); in RewriteObjCProtocolExpr()
3615 return Context->getSourceManager().isBeforeInTranslationUnit( in IsTagDefinedInsideClass()
3623 return Context->getSourceManager().isBeforeInTranslationUnit( in IsTagDefinedInsideClass()
3639 QualType ElemTy = Context->getBaseElementType(Type); in RewriteObjCFieldDeclType()
3703 Type.getAsStringInternal(Name, Context->getPrintingPolicy()); in RewriteObjCFieldDecl()
3706 Result += " : "; Result += utostr(fieldDecl->getBitWidthValue(*Context)); in RewriteObjCFieldDecl()
3709 const ArrayType *AT = Context->getAsArrayType(Type); in RewriteObjCFieldDecl()
3717 AT = Context->getAsArrayType(AT->getElementType()); in RewriteObjCFieldDecl()
3732 Type = Context->getBaseElementType(Type); in RewriteLocallyDefinedNamedAggregates()
3787 RecordDecl *RD = RecordDecl::Create(*Context, TTK_Struct, in SynthesizeBitfieldGroupStructType()
3788 Context->getTranslationUnitDecl(), in SynthesizeBitfieldGroupStructType()
3790 &Context->Idents.get(StructTagName)); in SynthesizeBitfieldGroupStructType()
3793 RD->addDecl(FieldDecl::Create(*Context, RD, SourceLocation(), SourceLocation(), in SynthesizeBitfieldGroupStructType()
3794 &Context->Idents.get(Ivar->getName()), in SynthesizeBitfieldGroupStructType()
3800 return Context->getTagDeclType(RD); in SynthesizeBitfieldGroupStructType()
4051 S += "static " + RT.getAsString(Context->getPrintingPolicy()) + " __" + in SynthesizeBlockFunc()
4075 QT.getAsStringInternal(ParamStr, Context->getPrintingPolicy()); in SynthesizeBlockFunc()
4123 QT = Context->getPointerType(QT); in SynthesizeBlockFunc()
4124 QT.getAsStringInternal(Name, Context->getPrintingPolicy()); in SynthesizeBlockFunc()
4217 QT = Context->getPointerType(QT); in SynthesizeBlockImpl()
4218 QT.getAsStringInternal(FieldName, Context->getPrintingPolicy()); in SynthesizeBlockImpl()
4219 QT.getAsStringInternal(ArgName, Context->getPrintingPolicy()); in SynthesizeBlockImpl()
4517 T = Context->getPointerType(T); in convertObjCTypeToCStyleType()
4576 new (Context) ConditionalOperator(CONDExp, in SynthesizeBlockCall()
4595 RecordDecl *RD = RecordDecl::Create(*Context, TTK_Struct, TUDecl, in SynthesizeBlockCall()
4597 &Context->Idents.get("__block_impl")); in SynthesizeBlockCall()
4598 QualType PtrBlock = Context->getPointerType(Context->getTagDeclType(RD)); in SynthesizeBlockCall()
4617 PtrToFuncCastType = Context->getPointerType(PtrToFuncCastType); in SynthesizeBlockCall()
4619 CastExpr *BlkCast = NoTypeInfoCStyleCastExpr(Context, PtrBlock, in SynthesizeBlockCall()
4623 ParenExpr *PE = new (Context) ParenExpr(SourceLocation(), SourceLocation(), in SynthesizeBlockCall()
4627 FieldDecl *FD = FieldDecl::Create(*Context, nullptr, SourceLocation(), in SynthesizeBlockCall()
4629 &Context->Idents.get("FuncPtr"), in SynthesizeBlockCall()
4630 Context->VoidPtrTy, nullptr, in SynthesizeBlockCall()
4634 new (Context) MemberExpr(PE, true, SourceLocation(), FD, SourceLocation(), in SynthesizeBlockCall()
4637 CastExpr *FunkCast = NoTypeInfoCStyleCastExpr(Context, PtrToFuncCastType, in SynthesizeBlockCall()
4639 PE = new (Context) ParenExpr(SourceLocation(), SourceLocation(), FunkCast); in SynthesizeBlockCall()
4649 CallExpr *CE = CallExpr::Create(*Context, PE, BlkExprs, Exp->getType(), in SynthesizeBlockCall()
4674 FieldDecl *FD = FieldDecl::Create(*Context, nullptr, SourceLocation(), in RewriteBlockDeclRefExpr()
4676 &Context->Idents.get("__forwarding"), in RewriteBlockDeclRefExpr()
4677 Context->VoidPtrTy, nullptr, in RewriteBlockDeclRefExpr()
4680 MemberExpr *ME = new (Context) in RewriteBlockDeclRefExpr()
4685 FD = FieldDecl::Create(*Context, nullptr, SourceLocation(), SourceLocation(), in RewriteBlockDeclRefExpr()
4686 &Context->Idents.get(Name), in RewriteBlockDeclRefExpr()
4687 Context->VoidPtrTy, nullptr, in RewriteBlockDeclRefExpr()
4691 new (Context) MemberExpr(ME, true, SourceLocation(), FD, SourceLocation(), in RewriteBlockDeclRefExpr()
4695 ParenExpr *PE = new (Context) ParenExpr(DeclRefExp->getExprLoc(), in RewriteBlockDeclRefExpr()
4710 Expr *Exp = new (Context) UnaryOperator(DRE, UO_Deref, DRE->getType(), in RewriteLocalVariableExternalStorage()
4714 ParenExpr *PE = new (Context) ParenExpr(SourceLocation(), SourceLocation(), in RewriteLocalVariableExternalStorage()
4766 std::string TypeString(QT.getAsString(Context->getPrintingPolicy())); in RewriteImplicitCastObjCExpr()
4976 static_cast<unsigned>(Context->getTypeSize(Context->IntTy)); in SynthesizeByrefCopyDestroyHelper()
4978 static_cast<unsigned>(Context->getTypeSize(Context->VoidPtrTy)); in SynthesizeByrefCopyDestroyHelper()
4980 unsigned offset = (VoidPtrSize*4 + IntSize + IntSize)/Context->getCharWidth(); in SynthesizeByrefCopyDestroyHelper()
5043 bool HasCopyAndDispose = Context->BlockRequiresCopying(Ty, ND); in RewriteByRefVar()
5051 T.getAsStringInternal(Name, Context->getPrintingPolicy()); in RewriteByRefVar()
5195 IdentifierInfo *ID = &Context->Idents.get(name); in SynthBlockInitFunctionDecl()
5196 QualType FType = Context->getFunctionNoProtoType(Context->VoidPtrTy); in SynthBlockInitFunctionDecl()
5197 return FunctionDecl::Create(*Context, TUDecl, SourceLocation(), in SynthBlockInitFunctionDecl()
5264 QualType FType = Context->getPointerType(BFT); in SynthBlockInitExpr()
5279 DeclRefExpr *DRE = new (Context) in SynthBlockInitExpr()
5280 DeclRefExpr(*Context, FD, false, FType, VK_RValue, SourceLocation()); in SynthBlockInitExpr()
5286 DeclRefExpr *Arg = new (Context) DeclRefExpr( in SynthBlockInitExpr()
5287 *Context, FD, false, FD->getType(), VK_LValue, SourceLocation()); in SynthBlockInitExpr()
5288 CastExpr *castExpr = NoTypeInfoCStyleCastExpr(Context, Context->VoidPtrTy, in SynthBlockInitExpr()
5296 *Context, TUDecl, SourceLocation(), SourceLocation(), in SynthBlockInitExpr()
5297 &Context->Idents.get(DescData), Context->VoidPtrTy, nullptr, SC_Static); in SynthBlockInitExpr()
5298 UnaryOperator *DescRefExpr = new (Context) UnaryOperator( in SynthBlockInitExpr()
5299 new (Context) DeclRefExpr(*Context, NewVD, false, Context->VoidPtrTy, in SynthBlockInitExpr()
5301 UO_AddrOf, Context->getPointerType(Context->VoidPtrTy), VK_RValue, in SynthBlockInitExpr()
5314 Exp = new (Context) DeclRefExpr(*Context, FD, false, FD->getType(), in SynthBlockInitExpr()
5318 QT = Context->getPointerType(QT); in SynthBlockInitExpr()
5319 Exp = new (Context) UnaryOperator(Exp, UO_AddrOf, QT, VK_RValue, in SynthBlockInitExpr()
5325 Arg = new (Context) DeclRefExpr(*Context, FD, false, FD->getType(), in SynthBlockInitExpr()
5327 Exp = NoTypeInfoCStyleCastExpr(Context, Context->VoidPtrTy, in SynthBlockInitExpr()
5331 Exp = new (Context) DeclRefExpr(*Context, FD, false, FD->getType(), in SynthBlockInitExpr()
5335 QT = Context->getPointerType(QT); in SynthBlockInitExpr()
5336 Exp = new (Context) UnaryOperator(Exp, UO_AddrOf, QT, VK_RValue, in SynthBlockInitExpr()
5351 IdentifierInfo *II = &Context->Idents.get(RecName.c_str() in SynthBlockInitExpr()
5353 RecordDecl *RD = RecordDecl::Create(*Context, TTK_Struct, TUDecl, in SynthBlockInitExpr()
5357 QualType castT = Context->getPointerType(Context->getTagDeclType(RD)); in SynthBlockInitExpr()
5360 Exp = new (Context) DeclRefExpr(*Context, FD, false, FD->getType(), in SynthBlockInitExpr()
5376 Exp = new (Context) UnaryOperator(Exp, UO_AddrOf, in SynthBlockInitExpr()
5377 Context->getPointerType(Exp->getType()), in SynthBlockInitExpr()
5380 Exp = NoTypeInfoCStyleCastExpr(Context, castT, CK_BitCast, Exp); in SynthBlockInitExpr()
5388 static_cast<unsigned>(Context->getTypeSize(Context->IntTy)); in SynthBlockInitExpr()
5389 Expr *FlagExp = IntegerLiteral::Create(*Context, llvm::APInt(IntSize, flag), in SynthBlockInitExpr()
5390 Context->IntTy, SourceLocation()); in SynthBlockInitExpr()
5393 NewRep = CallExpr::Create(*Context, DRE, InitExprs, FType, VK_LValue, in SynthBlockInitExpr()
5403 NewRep = new (Context) UnaryOperator(NewRep, UO_AddrOf, in SynthBlockInitExpr()
5404 Context->getPointerType(NewRep->getType()), in SynthBlockInitExpr()
5406 NewRep = NoTypeInfoCStyleCastExpr(Context, FType, CK_BitCast, in SynthBlockInitExpr()
5409 NewRep = new (Context) ParenExpr(SourceLocation(), SourceLocation(), in SynthBlockInitExpr()
5654 CastExpr *Replacement = new (Context) CastExpr(ICE->getType(), in RewriteFunctionBodyOrGlobalInitializer()
5813 static void Write_ProtocolExprReferencedMetadata(ASTContext *Context, in Write_ProtocolExprReferencedMetadata() argument
5817 if (Context->getLangOpts().MicrosoftExt) in Write_ProtocolExprReferencedMetadata()
5845 Write_ProtocolExprReferencedMetadata(Context, ProtDecl, Preamble); in HandleTranslationUnit()
6179 static void WriteModernMetadataDeclarations(ASTContext *Context, std::string &Result) { in WriteModernMetadataDeclarations() argument
6223 const llvm::Triple &Triple(Context->getTargetInfo().getTriple()); in WriteModernMetadataDeclarations()
6296 static void Write_protocol_list_initializer(ASTContext *Context, std::string &Result, in Write_protocol_list_initializer() argument
6320 ASTContext *Context, std::string &Result, in Write_method_list_t_initializer() argument
6341 std::string MethodTypeString = Context->getObjCEncodingForMethodDecl(MD); in Write_method_list_t_initializer()
6360 ASTContext *Context, std::string &Result, in Write_prop_list_t_initializer() argument
6381 Context->getObjCEncodingForPropertyDecl(PropDecl, Container); in Write_prop_list_t_initializer()
6408 static void Write__class_ro_t_initializer(ASTContext *Context, std::string &Result, in Write__class_ro_t_initializer() argument
6426 const llvm::Triple &Triple(Context->getTargetInfo().getTriple()); in Write__class_ro_t_initializer()
6475 static void Write_class_t(ASTContext *Context, std::string &Result, in Write_class_t() argument
6615 static void Write_category_t(RewriteModernObjC &RewriteObj, ASTContext *Context, in Write_category_t() argument
6698 ASTContext *Context, std::string &Result, in Write__extendedMethodTypes_initializer() argument
6712 Context->getObjCEncodingForMethodDecl(MD, true); in Write__extendedMethodTypes_initializer()
6725 ASTContext *Context, in Write_IvarOffsetVar() argument
6743 if (Context->getLangOpts().MicrosoftExt) in Write_IvarOffsetVar()
6746 if (!Context->getLangOpts().MicrosoftExt || in Write_IvarOffsetVar()
6768 ASTContext *Context, std::string &Result, in Write__ivar_list_t_initializer() argument
6773 Write_IvarOffsetVar(RewriteObj, Context, Result, OriginalIvars, CDecl); in Write__ivar_list_t_initializer()
6820 Context->getObjCEncodingForType(IVQT, IvarTypeString, in Write__ivar_list_t_initializer()
6827 unsigned Align = Context->getTypeAlign(IVQT)/8; in Write__ivar_list_t_initializer()
6830 CharUnits Size = Context->getTypeSizeInChars(IVQT); in Write__ivar_list_t_initializer()
6848 WriteModernMetadataDeclarations(Context, Result); in RewriteObjCProtocolMetaData()
6885 Write__extendedMethodTypes_initializer(*this, Context, Result, in RewriteObjCProtocolMetaData()
6891 Write_protocol_list_initializer(Context, Result, SuperProtocols, in RewriteObjCProtocolMetaData()
6895 Write_method_list_t_initializer(*this, Context, Result, InstanceMethods, in RewriteObjCProtocolMetaData()
6899 Write_method_list_t_initializer(*this, Context, Result, ClassMethods, in RewriteObjCProtocolMetaData()
6903 Write_method_list_t_initializer(*this, Context, Result, OptInstanceMethods, in RewriteObjCProtocolMetaData()
6907 Write_method_list_t_initializer(*this, Context, Result, OptClassMethods, in RewriteObjCProtocolMetaData()
6914 Write_prop_list_t_initializer(*this, Context, Result, ProtocolProperties, in RewriteObjCProtocolMetaData()
6995 static bool hasObjCExceptionAttribute(ASTContext &Context, in hasObjCExceptionAttribute() argument
7000 return hasObjCExceptionAttribute(Context, Super); in hasObjCExceptionAttribute()
7013 WriteModernMetadataDeclarations(Context, Result); in RewriteObjCClassMetaData()
7024 Write__ivar_list_t_initializer(*this, Context, Result, IVars, in RewriteObjCClassMetaData()
7051 Write_method_list_t_initializer(*this, Context, Result, InstanceMethods, in RewriteObjCClassMetaData()
7057 Write_method_list_t_initializer(*this, Context, Result, ClassMethods, in RewriteObjCClassMetaData()
7074 Write_protocol_list_initializer(Context, Result, in RewriteObjCClassMetaData()
7082 Write_prop_list_t_initializer(*this, Context, Result, ClassProperties, in RewriteObjCClassMetaData()
7101 Write__class_ro_t_initializer(Context, Result, flags, in RewriteObjCClassMetaData()
7115 if (hasObjCExceptionAttribute(*Context, CDecl)) in RewriteObjCClassMetaData()
7140 Write__class_ro_t_initializer(Context, Result, flags, in RewriteObjCClassMetaData()
7149 Write_class_t(Context, Result, in RewriteObjCClassMetaData()
7153 Write_class_t(Context, Result, in RewriteObjCClassMetaData()
7268 WriteModernMetadataDeclarations(Context, Result); in RewriteObjCCategoryImplDecl()
7299 Write_method_list_t_initializer(*this, Context, Result, InstanceMethods, in RewriteObjCCategoryImplDecl()
7305 Write_method_list_t_initializer(*this, Context, Result, ClassMethods, in RewriteObjCCategoryImplDecl()
7317 Write_protocol_list_initializer(Context, Result, in RewriteObjCCategoryImplDecl()
7325 Write_prop_list_t_initializer(*this, Context, Result, ClassProperties, in RewriteObjCCategoryImplDecl()
7330 Write_category_t(*this, Context, Result, in RewriteObjCCategoryImplDecl()
7424 Context->getObjCEncodingForMethodDecl(*MethodBegin, MethodTypeString); in RewriteObjCMethodsMetaData()
7434 Context->getObjCEncodingForMethodDecl(*MethodBegin, MethodTypeString); in RewriteObjCMethodsMetaData()
7479 CastExpr *castExpr = NoTypeInfoCStyleCastExpr(Context, in RewriteObjCIvarRefExpr()
7480 Context->getPointerType(Context->CharTy), in RewriteObjCIvarRefExpr()
7483 VarDecl *NewVD = VarDecl::Create(*Context, TUDecl, SourceLocation(), in RewriteObjCIvarRefExpr()
7484 SourceLocation(), &Context->Idents.get(IvarOffsetName), in RewriteObjCIvarRefExpr()
7485 Context->UnsignedLongTy, nullptr, in RewriteObjCIvarRefExpr()
7487 DeclRefExpr *DRE = new (Context) in RewriteObjCIvarRefExpr()
7488 DeclRefExpr(*Context, NewVD, false, Context->UnsignedLongTy, in RewriteObjCIvarRefExpr()
7491 new (Context) BinaryOperator(castExpr, DRE, BO_Add, in RewriteObjCIvarRefExpr()
7492 Context->getPointerType(Context->CharTy), in RewriteObjCIvarRefExpr()
7495 ParenExpr *PE = new (Context) ParenExpr(SourceLocation(), in RewriteObjCIvarRefExpr()
7515 *Context, TTK_Struct, TUDecl, SourceLocation(), SourceLocation(), in RewriteObjCIvarRefExpr()
7516 &Context->Idents.get(RecName)); in RewriteObjCIvarRefExpr()
7517 QualType PtrStructIMPL = Context->getPointerType(Context->getTagDeclType(RD)); in RewriteObjCIvarRefExpr()
7519 static_cast<unsigned>(Context->getTypeSize(Context->UnsignedIntTy)); in RewriteObjCIvarRefExpr()
7520 Expr *Zero = IntegerLiteral::Create(*Context, in RewriteObjCIvarRefExpr()
7522 Context->UnsignedIntTy, SourceLocation()); in RewriteObjCIvarRefExpr()
7523 Zero = NoTypeInfoCStyleCastExpr(Context, PtrStructIMPL, CK_BitCast, Zero); in RewriteObjCIvarRefExpr()
7524 ParenExpr *PE = new (Context) ParenExpr(SourceLocation(), SourceLocation(), in RewriteObjCIvarRefExpr()
7526 FieldDecl *FD = FieldDecl::Create(*Context, nullptr, SourceLocation(), in RewriteObjCIvarRefExpr()
7528 &Context->Idents.get(D->getNameAsString()), in RewriteObjCIvarRefExpr()
7532 MemberExpr *ME = new (Context) in RewriteObjCIvarRefExpr()
7535 IvarT = Context->getDecltypeType(ME, ME->getType()); in RewriteObjCIvarRefExpr()
7539 QualType castT = Context->getPointerType(IvarT); in RewriteObjCIvarRefExpr()
7541 castExpr = NoTypeInfoCStyleCastExpr(Context, in RewriteObjCIvarRefExpr()
7547 Expr *Exp = new (Context) UnaryOperator(castExpr, UO_Deref, IvarT, in RewriteObjCIvarRefExpr()
7550 PE = new (Context) ParenExpr(OldRange.getBegin(), in RewriteObjCIvarRefExpr()
7555 FieldDecl *FD = FieldDecl::Create(*Context, nullptr, SourceLocation(), in RewriteObjCIvarRefExpr()
7557 &Context->Idents.get(D->getNameAsString()), in RewriteObjCIvarRefExpr()
7561 MemberExpr *ME = new (Context) in RewriteObjCIvarRefExpr()