Lines Matching refs:Context
65 ASTContext *Context; member in __anond511581d0111::RewriteObjC
214 Diags.Report(Context->getFullLoc(Old->getLocStart()), RewriteFailedDiag) in ReplaceStmt()
225 Diags.Report(Context->getFullLoc(Old->getLocStart()), RewriteFailedDiag) in ReplaceStmtWithRange()
242 Diags.Report(Context->getFullLoc(Old->getLocStart()), RewriteFailedDiag) in ReplaceStmtWithRange()
253 Diags.Report(Context->getFullLoc(Loc), RewriteFailedDiag); in InsertText()
263 Diags.Report(Context->getFullLoc(Start), RewriteFailedDiag); in ReplaceText()
427 T = Context->getPointerType(BPT->getPointeeType()); in convertBlockPointerToFunctionPointer()
441 T = Context->getObjCIdType(); in convertToUnqualifiedObjCType()
443 T = Context->getObjCClassType(); in convertToUnqualifiedObjCType()
450 T = Context->getPointerType(T); in convertToUnqualifiedObjCType()
460 QualType OCT = Context->getCanonicalType(T).getUnqualifiedType(); in isObjCType()
462 if (OCT == Context->getCanonicalType(Context->getObjCIdType()) || in isObjCType()
463 OCT == Context->getCanonicalType(Context->getObjCClassType())) in isObjCType()
490 if (result == Context->getObjCInstanceType()) in getSimpleFunctionType()
491 result = Context->getObjCIdType(); in getSimpleFunctionType()
494 return Context->getFunctionType(result, args, fpi); in getSimpleFunctionType()
603 Context = &context; in InitializeCommon()
604 SM = &Context->getSourceManager(); in InitializeCommon()
605 TUDecl = Context->getTranslationUnitDecl(); in InitializeCommon()
639 Rewrite.setSourceMgr(Context->getSourceManager(), Context->getLangOpts()); in InitializeCommon()
824 Context->getPrintingPolicy()); in RewritePropertyImplDecl()
1065 Context->getPrintingPolicy()); in RewriteTypeIntoString()
1069 ResultStr += T.getAsString(Context->getPrintingPolicy()); in RewriteTypeIntoString()
1115 QualType selfTy = Context->getObjCInterfaceType(IDecl); in RewriteObjCMethodDecl()
1116 selfTy = Context->getPointerType(selfTy); in RewriteObjCMethodDecl()
1126 ResultStr += Context->getObjCClassType().getAsString( in RewriteObjCMethodDecl()
1127 Context->getPrintingPolicy()); in RewriteObjCMethodDecl()
1130 ResultStr += Context->getObjCSelType().getAsString(Context->getPrintingPolicy()); in RewriteObjCMethodDecl()
1146 QT.getAsStringInternal(Name, Context->getPrintingPolicy()); in RewriteObjCMethodDecl()
1163 Context->getPrintingPolicy()); in RewriteObjCMethodDecl()
1292 NewMsg = ObjCMessageExpr::Create(*Context, OldMsg->getType(), in RewritePropertyOrImplicitSetter()
1305 NewMsg = ObjCMessageExpr::Create(*Context, OldMsg->getType(), in RewritePropertyOrImplicitSetter()
1319 NewMsg = ObjCMessageExpr::Create(*Context, OldMsg->getType(), in RewritePropertyOrImplicitSetter()
1368 NewMsg = ObjCMessageExpr::Create(*Context, OldMsg->getType(), in RewritePropertyOrImplicitGetter()
1381 NewMsg = ObjCMessageExpr::Create(*Context, OldMsg->getType(), in RewritePropertyOrImplicitGetter()
1395 NewMsg = ObjCMessageExpr::Create(*Context, OldMsg->getType(), in RewritePropertyOrImplicitGetter()
1524 elementTypeAsString = ElementType.getAsString(Context->getPrintingPolicy()); in RewriteObjCForCollectionStmt()
1540 elementTypeAsString = VD->getType().getAsString(Context->getPrintingPolicy()); in RewriteObjCForCollectionStmt()
1719 syncExpr = NoTypeInfoCStyleCastExpr(Context, Context->getObjCIdType(), in RewriteObjCSynchronizedStmt()
1750 Diags.Report(Context->getFullLoc(S->getLocStart()), in WarnAboutReturnGotoStmts()
1885 if (t == Context->getObjCIdType()) { in RewriteObjCTryStmt()
2012 QualType StrType = Context->getPointerType(Context->CharTy); in RewriteAtEncode()
2014 Context->getObjCEncodingForType(Exp->getEncodedType(), StrEncoding); in RewriteAtEncode()
2015 Expr *Replacement = StringLiteral::Create(*Context, StrEncoding, in RewriteAtEncode()
2031 QualType argType = Context->getPointerType(Context->CharTy); in RewriteAtSelector()
2032 SelExprs.push_back(StringLiteral::Create(*Context, in RewriteAtSelector()
2050 DeclRefExpr *DRE = new (Context) DeclRefExpr(FD, false, msgSendType, in SynthesizeCallToFunctionDecl()
2054 QualType pToFunc = Context->getPointerType(msgSendType); in SynthesizeCallToFunctionDecl()
2056 ImplicitCastExpr::Create(*Context, pToFunc, CK_FunctionToPointerDecay, in SynthesizeCallToFunctionDecl()
2062 new (Context) CallExpr(*Context, ICE, llvm::makeArrayRef(args, nargs), in SynthesizeCallToFunctionDecl()
2063 FT->getCallResultType(*Context), in SynthesizeCallToFunctionDecl()
2109 QualType ElemTy = Context->getBaseElementType(T); in needToScanForQualifiers()
2235 std::string TypeAsString(QT.getAsString(Context->getPrintingPolicy())); in RewriteTypeOfDecl()
2261 IdentifierInfo *SelGetUidIdent = &Context->Idents.get("sel_registerName"); in SynthSelGetUidFunctionDecl()
2263 ArgTys.push_back(Context->getPointerType(Context->CharTy.withConst())); in SynthSelGetUidFunctionDecl()
2265 getSimpleFunctionType(Context->getObjCSelType(), ArgTys); in SynthSelGetUidFunctionDecl()
2266 SelGetUidFunctionDecl = FunctionDecl::Create(*Context, TUDecl, in SynthSelGetUidFunctionDecl()
2284 std::string TypeString(Type.getAsString(Context->getPrintingPolicy())); in RewriteBlockPointerType()
2300 std::string TypeString(Type.getAsString(Context->getPrintingPolicy())); in RewriteBlockPointerTypeVariable()
2334 std::string FdStr = Type.getAsString(Context->getPrintingPolicy()); in RewriteBlockLiteralFunctionDecl()
2354 IdentifierInfo *msgSendIdent = &Context->Idents.get("__rw_objc_super"); in SynthSuperConstructorFunctionDecl()
2356 QualType argT = Context->getObjCIdType(); in SynthSuperConstructorFunctionDecl()
2360 QualType msgSendType = getSimpleFunctionType(Context->getObjCIdType(), in SynthSuperConstructorFunctionDecl()
2362 SuperConstructorFunctionDecl = FunctionDecl::Create(*Context, TUDecl, in SynthSuperConstructorFunctionDecl()
2371 IdentifierInfo *msgSendIdent = &Context->Idents.get("objc_msgSend"); in SynthMsgSendFunctionDecl()
2373 QualType argT = Context->getObjCIdType(); in SynthMsgSendFunctionDecl()
2376 argT = Context->getObjCSelType(); in SynthMsgSendFunctionDecl()
2379 QualType msgSendType = getSimpleFunctionType(Context->getObjCIdType(), in SynthMsgSendFunctionDecl()
2381 MsgSendFunctionDecl = FunctionDecl::Create(*Context, TUDecl, in SynthMsgSendFunctionDecl()
2390 IdentifierInfo *msgSendIdent = &Context->Idents.get("objc_msgSendSuper"); in SynthMsgSendSuperFunctionDecl()
2392 RecordDecl *RD = RecordDecl::Create(*Context, TTK_Struct, TUDecl, in SynthMsgSendSuperFunctionDecl()
2394 &Context->Idents.get("objc_super")); in SynthMsgSendSuperFunctionDecl()
2395 QualType argT = Context->getPointerType(Context->getTagDeclType(RD)); in SynthMsgSendSuperFunctionDecl()
2398 argT = Context->getObjCSelType(); in SynthMsgSendSuperFunctionDecl()
2401 QualType msgSendType = getSimpleFunctionType(Context->getObjCIdType(), in SynthMsgSendSuperFunctionDecl()
2403 MsgSendSuperFunctionDecl = FunctionDecl::Create(*Context, TUDecl, in SynthMsgSendSuperFunctionDecl()
2412 IdentifierInfo *msgSendIdent = &Context->Idents.get("objc_msgSend_stret"); in SynthMsgSendStretFunctionDecl()
2414 QualType argT = Context->getObjCIdType(); in SynthMsgSendStretFunctionDecl()
2417 argT = Context->getObjCSelType(); in SynthMsgSendStretFunctionDecl()
2420 QualType msgSendType = getSimpleFunctionType(Context->getObjCIdType(), in SynthMsgSendStretFunctionDecl()
2422 MsgSendStretFunctionDecl = FunctionDecl::Create(*Context, TUDecl, in SynthMsgSendStretFunctionDecl()
2433 &Context->Idents.get("objc_msgSendSuper_stret"); in SynthMsgSendSuperStretFunctionDecl()
2435 RecordDecl *RD = RecordDecl::Create(*Context, TTK_Struct, TUDecl, in SynthMsgSendSuperStretFunctionDecl()
2437 &Context->Idents.get("objc_super")); in SynthMsgSendSuperStretFunctionDecl()
2438 QualType argT = Context->getPointerType(Context->getTagDeclType(RD)); in SynthMsgSendSuperStretFunctionDecl()
2441 argT = Context->getObjCSelType(); in SynthMsgSendSuperStretFunctionDecl()
2444 QualType msgSendType = getSimpleFunctionType(Context->getObjCIdType(), in SynthMsgSendSuperStretFunctionDecl()
2446 MsgSendSuperStretFunctionDecl = FunctionDecl::Create(*Context, TUDecl, in SynthMsgSendSuperStretFunctionDecl()
2456 IdentifierInfo *msgSendIdent = &Context->Idents.get("objc_msgSend_fpret"); in SynthMsgSendFpretFunctionDecl()
2458 QualType argT = Context->getObjCIdType(); in SynthMsgSendFpretFunctionDecl()
2461 argT = Context->getObjCSelType(); in SynthMsgSendFpretFunctionDecl()
2464 QualType msgSendType = getSimpleFunctionType(Context->DoubleTy, in SynthMsgSendFpretFunctionDecl()
2466 MsgSendFpretFunctionDecl = FunctionDecl::Create(*Context, TUDecl, in SynthMsgSendFpretFunctionDecl()
2475 IdentifierInfo *getClassIdent = &Context->Idents.get("objc_getClass"); in SynthGetClassFunctionDecl()
2477 ArgTys.push_back(Context->getPointerType(Context->CharTy.withConst())); in SynthGetClassFunctionDecl()
2478 QualType getClassType = getSimpleFunctionType(Context->getObjCIdType(), in SynthGetClassFunctionDecl()
2480 GetClassFunctionDecl = FunctionDecl::Create(*Context, TUDecl, in SynthGetClassFunctionDecl()
2490 &Context->Idents.get("class_getSuperclass"); in SynthGetSuperClassFunctionDecl()
2492 ArgTys.push_back(Context->getObjCClassType()); in SynthGetSuperClassFunctionDecl()
2493 QualType getClassType = getSimpleFunctionType(Context->getObjCClassType(), in SynthGetSuperClassFunctionDecl()
2495 GetSuperClassFunctionDecl = FunctionDecl::Create(*Context, TUDecl, in SynthGetSuperClassFunctionDecl()
2505 IdentifierInfo *getClassIdent = &Context->Idents.get("objc_getMetaClass"); in SynthGetMetaClassFunctionDecl()
2507 ArgTys.push_back(Context->getPointerType(Context->CharTy.withConst())); in SynthGetMetaClassFunctionDecl()
2508 QualType getClassType = getSimpleFunctionType(Context->getObjCIdType(), in SynthGetMetaClassFunctionDecl()
2510 GetMetaClassFunctionDecl = FunctionDecl::Create(*Context, TUDecl, in SynthGetMetaClassFunctionDecl()
2545 VarDecl *NewVD = VarDecl::Create(*Context, TUDecl, SourceLocation(), in RewriteObjCStringLiteral()
2546 SourceLocation(), &Context->Idents.get(S), in RewriteObjCStringLiteral()
2548 DeclRefExpr *DRE = new (Context) DeclRefExpr(NewVD, false, strType, VK_LValue, in RewriteObjCStringLiteral()
2550 Expr *Unop = new (Context) UnaryOperator(DRE, UO_AddrOf, in RewriteObjCStringLiteral()
2551 Context->getPointerType(DRE->getType()), in RewriteObjCStringLiteral()
2555 CastExpr *cast = NoTypeInfoCStyleCastExpr(Context, Exp->getType(), in RewriteObjCStringLiteral()
2565 SuperStructDecl = RecordDecl::Create(*Context, TTK_Struct, TUDecl, in getSuperStructType()
2567 &Context->Idents.get("objc_super")); in getSuperStructType()
2571 FieldTypes[0] = Context->getObjCIdType(); in getSuperStructType()
2573 FieldTypes[1] = Context->getObjCClassType(); in getSuperStructType()
2577 SuperStructDecl->addDecl(FieldDecl::Create(*Context, SuperStructDecl, in getSuperStructType()
2588 return Context->getTagDeclType(SuperStructDecl); in getSuperStructType()
2593 ConstantStringDecl = RecordDecl::Create(*Context, TTK_Struct, TUDecl, in getConstantStringStructType()
2595 &Context->Idents.get("__NSConstantStringImpl")); in getConstantStringStructType()
2599 FieldTypes[0] = Context->getObjCIdType(); in getConstantStringStructType()
2601 FieldTypes[1] = Context->IntTy; in getConstantStringStructType()
2603 FieldTypes[2] = Context->getPointerType(Context->CharTy); in getConstantStringStructType()
2605 FieldTypes[3] = Context->LongTy; in getConstantStringStructType()
2609 ConstantStringDecl->addDecl(FieldDecl::Create(*Context, in getConstantStringStructType()
2621 return Context->getTagDeclType(ConstantStringDecl); in getConstantStringStructType()
2631 DeclRefExpr *STDRE = new (Context) DeclRefExpr(MsgSendStretFlavor, in SynthMsgSendStretCallExpr()
2635 CastExpr *cast = NoTypeInfoCStyleCastExpr(Context, in SynthMsgSendStretCallExpr()
2636 Context->getPointerType(Context->VoidTy), in SynthMsgSendStretCallExpr()
2642 castType = Context->getPointerType(castType); in SynthMsgSendStretCallExpr()
2643 cast = NoTypeInfoCStyleCastExpr(Context, castType, CK_BitCast, in SynthMsgSendStretCallExpr()
2647 ParenExpr *PE = new (Context) ParenExpr(SourceLocation(), SourceLocation(), cast); in SynthMsgSendStretCallExpr()
2650 CallExpr *STCE = new (Context) CallExpr(*Context, PE, MsgExprs, in SynthMsgSendStretCallExpr()
2707 NoTypeInfoCStyleCastExpr(Context, Context->getObjCIdType(), in SynthMessageExpr()
2709 new (Context) DeclRefExpr(CurMethodDef->getSelfDecl(), in SynthMessageExpr()
2711 Context->getObjCIdType(), in SynthMessageExpr()
2718 QualType argType = Context->getPointerType(Context->CharTy); in SynthMessageExpr()
2719 ClsExprs.push_back(StringLiteral::Create(*Context, in SynthMessageExpr()
2729 CastExpr *ArgExpr = NoTypeInfoCStyleCastExpr(Context, in SynthMessageExpr()
2730 Context->getObjCClassType(), in SynthMessageExpr()
2741 NoTypeInfoCStyleCastExpr(Context, in SynthMessageExpr()
2742 Context->getObjCIdType(), in SynthMessageExpr()
2751 DeclRefExpr *DRE = new (Context) DeclRefExpr(SuperConstructorFunctionDecl, in SynthMessageExpr()
2754 SuperRep = new (Context) CallExpr(*Context, DRE, InitExprs, in SynthMessageExpr()
2763 SuperRep = new (Context) UnaryOperator(SuperRep, UO_AddrOf, in SynthMessageExpr()
2764 Context->getPointerType(SuperRep->getType()), in SynthMessageExpr()
2767 SuperRep = NoTypeInfoCStyleCastExpr(Context, in SynthMessageExpr()
2768 Context->getPointerType(superType), in SynthMessageExpr()
2773 new (Context) InitListExpr(*Context, SourceLocation(), InitExprs, in SynthMessageExpr()
2776 = Context->getTrivialTypeSourceInfo(superType); in SynthMessageExpr()
2777 SuperRep = new (Context) CompoundLiteralExpr(SourceLocation(), superTInfo, in SynthMessageExpr()
2781 SuperRep = new (Context) UnaryOperator(SuperRep, UO_AddrOf, in SynthMessageExpr()
2782 Context->getPointerType(SuperRep->getType()), in SynthMessageExpr()
2792 QualType argType = Context->getPointerType(Context->CharTy); in SynthMessageExpr()
2796 ClsExprs.push_back(StringLiteral::Create(*Context, in SynthMessageExpr()
2817 NoTypeInfoCStyleCastExpr(Context, Context->getObjCIdType(), in SynthMessageExpr()
2819 new (Context) DeclRefExpr(CurMethodDef->getSelfDecl(), in SynthMessageExpr()
2821 Context->getObjCIdType(), in SynthMessageExpr()
2827 QualType argType = Context->getPointerType(Context->CharTy); in SynthMessageExpr()
2828 ClsExprs.push_back(StringLiteral::Create(*Context, in SynthMessageExpr()
2837 CastExpr *ArgExpr = NoTypeInfoCStyleCastExpr(Context, in SynthMessageExpr()
2838 Context->getObjCClassType(), in SynthMessageExpr()
2850 NoTypeInfoCStyleCastExpr(Context, Context->getObjCIdType(), in SynthMessageExpr()
2859 DeclRefExpr *DRE = new (Context) DeclRefExpr(SuperConstructorFunctionDecl, in SynthMessageExpr()
2862 SuperRep = new (Context) CallExpr(*Context, DRE, InitExprs, in SynthMessageExpr()
2870 SuperRep = new (Context) UnaryOperator(SuperRep, UO_AddrOf, in SynthMessageExpr()
2871 Context->getPointerType(SuperRep->getType()), in SynthMessageExpr()
2874 SuperRep = NoTypeInfoCStyleCastExpr(Context, in SynthMessageExpr()
2875 Context->getPointerType(superType), in SynthMessageExpr()
2880 new (Context) InitListExpr(*Context, SourceLocation(), InitExprs, in SynthMessageExpr()
2883 = Context->getTrivialTypeSourceInfo(superType); in SynthMessageExpr()
2884 SuperRep = new (Context) CompoundLiteralExpr(SourceLocation(), superTInfo, in SynthMessageExpr()
2903 recExpr = NoTypeInfoCStyleCastExpr(Context, Context->getObjCIdType(), in SynthMessageExpr()
2912 QualType argType = Context->getPointerType(Context->CharTy); in SynthMessageExpr()
2913 SelExprs.push_back(StringLiteral::Create(*Context, in SynthMessageExpr()
2931 type = Context->getObjCIdType(); in SynthMessageExpr()
2936 if (SubExpr->getType()->isIntegralType(*Context) && in SynthMessageExpr()
2951 userExpr = NoTypeInfoCStyleCastExpr(Context, type, CK, userExpr); in SynthMessageExpr()
2959 if (userExpr->getType()->isIntegralType(*Context)) { in SynthMessageExpr()
2968 userExpr = NoTypeInfoCStyleCastExpr(Context, Context->getObjCIdType(), in SynthMessageExpr()
2985 ArgTypes.push_back(Context->getPointerType(getSuperStructType())); in SynthMessageExpr()
2987 ArgTypes.push_back(Context->getObjCIdType()); in SynthMessageExpr()
2988 ArgTypes.push_back(Context->getObjCSelType()); in SynthMessageExpr()
2994 ? Context->getObjCIdType() in SynthMessageExpr()
3004 returnType = Context->getObjCIdType(); in SynthMessageExpr()
3010 DeclRefExpr *DRE = new (Context) DeclRefExpr(MsgSendFlavor, false, msgSendType, in SynthMessageExpr()
3017 cast = NoTypeInfoCStyleCastExpr(Context, in SynthMessageExpr()
3018 Context->getPointerType(Context->VoidTy), in SynthMessageExpr()
3026 castType = Context->getPointerType(castType); in SynthMessageExpr()
3027 cast = NoTypeInfoCStyleCastExpr(Context, castType, CK_BitCast, in SynthMessageExpr()
3031 ParenExpr *PE = new (Context) ParenExpr(StartLoc, EndLoc, cast); in SynthMessageExpr()
3034 CallExpr *CE = new (Context) CallExpr(*Context, PE, MsgExprs, in SynthMessageExpr()
3051 new (Context) UnaryExprOrTypeTraitExpr(UETT_SizeOf, in SynthMessageExpr()
3052 Context->getTrivialTypeSourceInfo(returnType), in SynthMessageExpr()
3053 Context->getSizeType(), SourceLocation(), in SynthMessageExpr()
3060 static_cast<unsigned>(Context->getTypeSize(Context->IntTy)); in SynthMessageExpr()
3061 IntegerLiteral *limit = IntegerLiteral::Create(*Context, in SynthMessageExpr()
3063 Context->IntTy, in SynthMessageExpr()
3066 new (Context) BinaryOperator(sizeofExpr, limit, BO_LE, Context->IntTy, in SynthMessageExpr()
3071 new (Context) ConditionalOperator(lessThanExpr, in SynthMessageExpr()
3075 ReplacingStmt = new (Context) ParenExpr(SourceLocation(), SourceLocation(), in SynthMessageExpr()
3097 = Context->getTrivialTypeSourceInfo(Context->getObjCIdType()); in getProtocolType()
3098 ProtocolTypeDecl = TypedefDecl::Create(*Context, TUDecl, in getProtocolType()
3100 &Context->Idents.get("Protocol"), in getProtocolType()
3103 return Context->getTypeDeclType(ProtocolTypeDecl); in getProtocolType()
3112 IdentifierInfo *ID = &Context->Idents.get(Name); in RewriteObjCProtocolExpr()
3113 VarDecl *VD = VarDecl::Create(*Context, TUDecl, SourceLocation(), in RewriteObjCProtocolExpr()
3116 DeclRefExpr *DRE = new (Context) DeclRefExpr(VD, false, getProtocolType(), in RewriteObjCProtocolExpr()
3118 Expr *DerefExpr = new (Context) UnaryOperator(DRE, UO_AddrOf, in RewriteObjCProtocolExpr()
3119 Context->getPointerType(DRE->getType()), in RewriteObjCProtocolExpr()
3121 CastExpr *castExpr = NoTypeInfoCStyleCastExpr(Context, DerefExpr->getType(), in RewriteObjCProtocolExpr()
3332 std::string S = "static " + RT.getAsString(Context->getPrintingPolicy()) + " __" + in SynthesizeBlockFunc()
3356 QT.getAsStringInternal(ParamStr, Context->getPrintingPolicy()); in SynthesizeBlockFunc()
3404 QT = Context->getPointerType(QT); in SynthesizeBlockFunc()
3405 QT.getAsStringInternal(Name, Context->getPrintingPolicy()); in SynthesizeBlockFunc()
3502 QT = Context->getPointerType(QT); in SynthesizeBlockImpl()
3503 QT.getAsStringInternal(FieldName, Context->getPrintingPolicy()); in SynthesizeBlockImpl()
3504 QT.getAsStringInternal(ArgName, Context->getPrintingPolicy()); in SynthesizeBlockImpl()
3831 new (Context) ConditionalOperator(CONDExp, in SynthesizeBlockCall()
3850 RecordDecl *RD = RecordDecl::Create(*Context, TTK_Struct, TUDecl, in SynthesizeBlockCall()
3852 &Context->Idents.get("__block_impl")); in SynthesizeBlockCall()
3853 QualType PtrBlock = Context->getPointerType(Context->getTagDeclType(RD)); in SynthesizeBlockCall()
3873 PtrToFuncCastType = Context->getPointerType(PtrToFuncCastType); in SynthesizeBlockCall()
3875 CastExpr *BlkCast = NoTypeInfoCStyleCastExpr(Context, PtrBlock, in SynthesizeBlockCall()
3879 ParenExpr *PE = new (Context) ParenExpr(SourceLocation(), SourceLocation(), in SynthesizeBlockCall()
3883 FieldDecl *FD = FieldDecl::Create(*Context, 0, SourceLocation(), in SynthesizeBlockCall()
3885 &Context->Idents.get("FuncPtr"), in SynthesizeBlockCall()
3886 Context->VoidPtrTy, 0, in SynthesizeBlockCall()
3889 MemberExpr *ME = new (Context) MemberExpr(PE, true, FD, SourceLocation(), in SynthesizeBlockCall()
3894 CastExpr *FunkCast = NoTypeInfoCStyleCastExpr(Context, PtrToFuncCastType, in SynthesizeBlockCall()
3896 PE = new (Context) ParenExpr(SourceLocation(), SourceLocation(), FunkCast); in SynthesizeBlockCall()
3906 CallExpr *CE = new (Context) CallExpr(*Context, PE, BlkExprs, in SynthesizeBlockCall()
3931 FieldDecl *FD = FieldDecl::Create(*Context, 0, SourceLocation(), in RewriteBlockDeclRefExpr()
3933 &Context->Idents.get("__forwarding"), in RewriteBlockDeclRefExpr()
3934 Context->VoidPtrTy, 0, in RewriteBlockDeclRefExpr()
3937 MemberExpr *ME = new (Context) MemberExpr(DeclRefExp, isArrow, in RewriteBlockDeclRefExpr()
3943 FD = FieldDecl::Create(*Context, 0, SourceLocation(), SourceLocation(), in RewriteBlockDeclRefExpr()
3944 &Context->Idents.get(Name), in RewriteBlockDeclRefExpr()
3945 Context->VoidPtrTy, 0, in RewriteBlockDeclRefExpr()
3948 ME = new (Context) MemberExpr(ME, true, FD, SourceLocation(), in RewriteBlockDeclRefExpr()
3954 ParenExpr *PE = new (Context) ParenExpr(DeclRefExp->getExprLoc(), in RewriteBlockDeclRefExpr()
3969 Expr *Exp = new (Context) UnaryOperator(DRE, UO_Deref, DRE->getType(), in RewriteLocalVariableExternalStorage()
3973 ParenExpr *PE = new (Context) ParenExpr(SourceLocation(), SourceLocation(), in RewriteLocalVariableExternalStorage()
4227 static_cast<unsigned>(Context->getTypeSize(Context->IntTy)); in SynthesizeByrefCopyDestroyHelper()
4229 static_cast<unsigned>(Context->getTypeSize(Context->VoidPtrTy)); in SynthesizeByrefCopyDestroyHelper()
4231 unsigned offset = (VoidPtrSize*4 + IntSize + IntSize)/Context->getCharWidth(); in SynthesizeByrefCopyDestroyHelper()
4297 bool HasCopyAndDispose = Context->BlockRequiresCopying(Ty, ND); in RewriteByRefVar()
4305 T.getAsStringInternal(Name, Context->getPrintingPolicy()); in RewriteByRefVar()
4447 IdentifierInfo *ID = &Context->Idents.get(name); in SynthBlockInitFunctionDecl()
4448 QualType FType = Context->getFunctionNoProtoType(Context->VoidPtrTy); in SynthBlockInitFunctionDecl()
4449 return FunctionDecl::Create(*Context, TUDecl, SourceLocation(), in SynthBlockInitFunctionDecl()
4508 QualType FType = Context->getPointerType(BFT); in SynthBlockInitExpr()
4515 DeclRefExpr *DRE = new (Context) DeclRefExpr(FD, false, FType, VK_RValue, in SynthBlockInitExpr()
4522 DeclRefExpr *Arg = new (Context) DeclRefExpr(FD, false, FD->getType(), in SynthBlockInitExpr()
4524 CastExpr *castExpr = NoTypeInfoCStyleCastExpr(Context, Context->VoidPtrTy, in SynthBlockInitExpr()
4531 VarDecl *NewVD = VarDecl::Create(*Context, TUDecl, in SynthBlockInitExpr()
4533 &Context->Idents.get(DescData.c_str()), in SynthBlockInitExpr()
4534 Context->VoidPtrTy, 0, in SynthBlockInitExpr()
4537 new (Context) UnaryOperator(new (Context) DeclRefExpr(NewVD, false, in SynthBlockInitExpr()
4538 Context->VoidPtrTy, in SynthBlockInitExpr()
4542 Context->getPointerType(Context->VoidPtrTy), in SynthBlockInitExpr()
4556 Exp = new (Context) DeclRefExpr(FD, false, FD->getType(), VK_LValue, in SynthBlockInitExpr()
4560 QT = Context->getPointerType(QT); in SynthBlockInitExpr()
4561 Exp = new (Context) UnaryOperator(Exp, UO_AddrOf, QT, VK_RValue, in SynthBlockInitExpr()
4566 Arg = new (Context) DeclRefExpr(FD, false, FD->getType(), VK_LValue, in SynthBlockInitExpr()
4568 Exp = NoTypeInfoCStyleCastExpr(Context, Context->VoidPtrTy, in SynthBlockInitExpr()
4572 Exp = new (Context) DeclRefExpr(FD, false, FD->getType(), VK_LValue, in SynthBlockInitExpr()
4576 QT = Context->getPointerType(QT); in SynthBlockInitExpr()
4577 Exp = new (Context) UnaryOperator(Exp, UO_AddrOf, QT, VK_RValue, in SynthBlockInitExpr()
4591 IdentifierInfo *II = &Context->Idents.get(RecName.c_str() in SynthBlockInitExpr()
4593 RecordDecl *RD = RecordDecl::Create(*Context, TTK_Struct, TUDecl, in SynthBlockInitExpr()
4597 QualType castT = Context->getPointerType(Context->getTagDeclType(RD)); in SynthBlockInitExpr()
4600 Exp = new (Context) DeclRefExpr(FD, false, FD->getType(), VK_LValue, in SynthBlockInitExpr()
4617 Exp = new (Context) UnaryOperator(Exp, UO_AddrOf, in SynthBlockInitExpr()
4618 Context->getPointerType(Exp->getType()), in SynthBlockInitExpr()
4620 Exp = NoTypeInfoCStyleCastExpr(Context, castT, CK_BitCast, Exp); in SynthBlockInitExpr()
4628 static_cast<unsigned>(Context->getTypeSize(Context->IntTy)); in SynthBlockInitExpr()
4629 Expr *FlagExp = IntegerLiteral::Create(*Context, llvm::APInt(IntSize, flag), in SynthBlockInitExpr()
4630 Context->IntTy, SourceLocation()); in SynthBlockInitExpr()
4633 NewRep = new (Context) CallExpr(*Context, DRE, InitExprs, in SynthBlockInitExpr()
4635 NewRep = new (Context) UnaryOperator(NewRep, UO_AddrOf, in SynthBlockInitExpr()
4636 Context->getPointerType(NewRep->getType()), in SynthBlockInitExpr()
4638 NewRep = NoTypeInfoCStyleCastExpr(Context, FType, CK_BitCast, in SynthBlockInitExpr()
4859 CastExpr *Replacement = new (Context) CastExpr(ICE->getType(), in RewriteFunctionBodyOrGlobalInitializer()
5240 Context->getObjCEncodingForMethodDecl((*I), MethodTypeString); in RewriteObjCProtocolMetaData()
5278 Context->getObjCEncodingForMethodDecl((*I), MethodTypeString); in RewriteObjCProtocolMetaData()
5445 Context->getObjCEncodingForType(IVI->getType(), TmpString, *IVI); in RewriteObjCClassMetaData()
5456 Context->getObjCEncodingForType(IVI->getType(), TmpString, *IVI); in RewriteObjCClassMetaData()
5901 Context->getObjCEncodingForMethodDecl(*MethodBegin, MethodTypeString); in RewriteObjCMethodsMetaData()
5911 Context->getObjCEncodingForMethodDecl(*MethodBegin, MethodTypeString); in RewriteObjCMethodsMetaData()
5949 IdentifierInfo *II = &Context->Idents.get(RecName); in RewriteObjCIvarRefExpr()
5950 RecordDecl *RD = RecordDecl::Create(*Context, TTK_Struct, TUDecl, in RewriteObjCIvarRefExpr()
5954 QualType castT = Context->getPointerType(Context->getTagDeclType(RD)); in RewriteObjCIvarRefExpr()
5955 CastExpr *castExpr = NoTypeInfoCStyleCastExpr(Context, castT, in RewriteObjCIvarRefExpr()
5959 ParenExpr *PE = new (Context) ParenExpr(OldRange.getBegin(), in RewriteObjCIvarRefExpr()
5964 MemberExpr *ME = new (Context) MemberExpr(PE, true, D, in RewriteObjCIvarRefExpr()
5990 IdentifierInfo *II = &Context->Idents.get(RecName); in RewriteObjCIvarRefExpr()
5991 RecordDecl *RD = RecordDecl::Create(*Context, TTK_Struct, TUDecl, in RewriteObjCIvarRefExpr()
5995 QualType castT = Context->getPointerType(Context->getTagDeclType(RD)); in RewriteObjCIvarRefExpr()
5996 CastExpr *castExpr = NoTypeInfoCStyleCastExpr(Context, castT, in RewriteObjCIvarRefExpr()
6000 ParenExpr *PE = new (Context) ParenExpr(IV->getBase()->getLocStart(), in RewriteObjCIvarRefExpr()