Lines Matching refs:RewriteModernObjC
40 class RewriteModernObjC : public ASTConsumer { class
173 RewriteModernObjC &R;
177 DisableReplaceStmtScope(RewriteModernObjC &R) in DisableReplaceStmtScope()
243 RewriteModernObjC(std::string inFile, std::unique_ptr<raw_ostream> OS,
247 ~RewriteModernObjC() override {} in ~RewriteModernObjC()
610 void RewriteModernObjC::RewriteBlocksInFunctionProtoType(QualType funcType, in RewriteBlocksInFunctionProtoType()
623 void RewriteModernObjC::CheckFunctionPointerDecl(QualType funcType, NamedDecl *ND) { in CheckFunctionPointerDecl()
643 RewriteModernObjC::RewriteModernObjC(std::string inFile, in RewriteModernObjC() function in RewriteModernObjC
668 return std::make_unique<RewriteModernObjC>(InFile, std::move(OS), Diags, in CreateModernObjCRewriter()
673 void RewriteModernObjC::InitializeCommon(ASTContext &context) { in InitializeCommon()
717 void RewriteModernObjC::HandleTopLevelSingleDecl(Decl *D) { in HandleTopLevelSingleDecl()
806 void RewriteModernObjC::RewriteInclude() { in RewriteInclude()
841 RewriteModernObjC::getIvarAccessString(ObjCIvarDecl *D) { in getIvarAccessString()
918 void RewriteModernObjC::RewritePropertyImplDecl(ObjCPropertyImplDecl *PID, in RewritePropertyImplDecl()
1061 void RewriteModernObjC::RewriteForwardClassEpilogue(ObjCInterfaceDecl *ClassDecl, in RewriteForwardClassEpilogue()
1070 void RewriteModernObjC::RewriteForwardClassDecl(DeclGroupRef D) { in RewriteForwardClassDecl()
1091 void RewriteModernObjC::RewriteForwardClassDecl( in RewriteForwardClassDecl()
1106 void RewriteModernObjC::RewriteMethodDeclaration(ObjCMethodDecl *Method) { in RewriteMethodDeclaration()
1123 void RewriteModernObjC::RewriteProperty(ObjCPropertyDecl *prop) { in RewriteProperty()
1130 void RewriteModernObjC::RewriteCategoryDecl(ObjCCategoryDecl *CatDecl) { in RewriteCategoryDecl()
1155 void RewriteModernObjC::RewriteProtocolDecl(ObjCProtocolDecl *PDecl) { in RewriteProtocolDecl()
1190 void RewriteModernObjC::RewriteForwardProtocolDecl(DeclGroupRef D) { in RewriteForwardProtocolDecl()
1199 RewriteModernObjC::RewriteForwardProtocolDecl(const SmallVectorImpl<Decl *> &DG) { in RewriteForwardProtocolDecl()
1207 void RewriteModernObjC::RewriteTypeIntoString(QualType T, std::string &ResultStr, in RewriteTypeIntoString()
1230 void RewriteModernObjC::RewriteObjCMethodDecl(const ObjCInterfaceDecl *IDecl, in RewriteObjCMethodDecl()
1334 void RewriteModernObjC::RewriteImplementationDecl(Decl *OID) { in RewriteImplementationDecl()
1382 void RewriteModernObjC::RewriteInterfaceDecl(ObjCInterfaceDecl *ClassDecl) { in RewriteInterfaceDecl()
1415 Stmt *RewriteModernObjC::RewritePropertyOrImplicitSetter(PseudoObjectExpr *PseudoOp) { in RewritePropertyOrImplicitSetter()
1503 Stmt *RewriteModernObjC::RewritePropertyOrImplicitGetter(PseudoObjectExpr *PseudoOp) { in RewritePropertyOrImplicitGetter()
1595 void RewriteModernObjC::SynthCountByEnumWithState(std::string &buf) { in SynthCountByEnumWithState()
1609 Stmt *RewriteModernObjC::RewriteBreakStmt(BreakStmt *S) { in RewriteBreakStmt()
1623 void RewriteModernObjC::ConvertSourceLocationToLineDirective( in ConvertSourceLocationToLineDirective()
1639 Stmt *RewriteModernObjC::RewriteContinueStmt(ContinueStmt *S) { in RewriteContinueStmt()
1685 Stmt *RewriteModernObjC::RewriteObjCForCollectionStmt(ObjCForCollectionStmt *S, in RewriteObjCForCollectionStmt()
1865 Stmt *RewriteModernObjC::RewriteObjCSynchronizedStmt(ObjCAtSynchronizedStmt *S) { in RewriteObjCSynchronizedStmt()
1914 void RewriteModernObjC::WarnAboutReturnGotoStmts(Stmt *S) in WarnAboutReturnGotoStmts()
1927 Stmt *RewriteModernObjC::RewriteObjCAutoreleasePoolStmt(ObjCAutoreleasePoolStmt *S) { in RewriteObjCAutoreleasePoolStmt()
1936 Stmt *RewriteModernObjC::RewriteObjCTryStmt(ObjCAtTryStmt *S) { in RewriteObjCTryStmt()
2040 Stmt *RewriteModernObjC::RewriteObjCThrowStmt(ObjCAtThrowStmt *S) { in RewriteObjCThrowStmt()
2069 Stmt *RewriteModernObjC::RewriteAtEncode(ObjCEncodeExpr *Exp) { in RewriteAtEncode()
2081 Stmt *RewriteModernObjC::RewriteAtSelector(ObjCSelectorExpr *Exp) { in RewriteAtSelector()
2096 RewriteModernObjC::SynthesizeCallToFunctionDecl(FunctionDecl *FD, in SynthesizeCallToFunctionDecl()
2149 bool RewriteModernObjC::needToScanForQualifiers(QualType T) { in needToScanForQualifiers()
2167 void RewriteModernObjC::RewriteObjCQualifiedInterfaceTypes(Expr *E) { in RewriteObjCQualifiedInterfaceTypes()
2197 void RewriteModernObjC::RewriteObjCQualifiedInterfaceTypes(Decl *Dcl) { in RewriteObjCQualifiedInterfaceTypes()
2279 void RewriteModernObjC::RewriteTypeOfDecl(VarDecl *ND) { in RewriteTypeOfDecl()
2316 void RewriteModernObjC::SynthSelGetUidFunctionDecl() { in SynthSelGetUidFunctionDecl()
2329 void RewriteModernObjC::RewriteFunctionDecl(FunctionDecl *FD) { in RewriteFunctionDecl()
2339 void RewriteModernObjC::RewriteBlockPointerType(std::string& Str, QualType Type) { in RewriteBlockPointerType()
2353 void RewriteModernObjC::RewriteBlockPointerTypeVariable(std::string& Str, in RewriteBlockPointerTypeVariable()
2382 void RewriteModernObjC::RewriteBlockLiteralFunctionDecl(FunctionDecl *FD) { in RewriteBlockLiteralFunctionDecl()
2409 void RewriteModernObjC::SynthSuperConstructorFunctionDecl() { in SynthSuperConstructorFunctionDecl()
2428 void RewriteModernObjC::SynthMsgSendFunctionDecl() { in SynthMsgSendFunctionDecl()
2447 void RewriteModernObjC::SynthMsgSendSuperFunctionDecl() { in SynthMsgSendSuperFunctionDecl()
2461 void RewriteModernObjC::SynthMsgSendStretFunctionDecl() { in SynthMsgSendStretFunctionDecl()
2481 void RewriteModernObjC::SynthMsgSendSuperStretFunctionDecl() { in SynthMsgSendSuperStretFunctionDecl()
2497 void RewriteModernObjC::SynthMsgSendFpretFunctionDecl() { in SynthMsgSendFpretFunctionDecl()
2516 void RewriteModernObjC::SynthGetClassFunctionDecl() { in SynthGetClassFunctionDecl()
2530 void RewriteModernObjC::SynthGetSuperClassFunctionDecl() { in SynthGetSuperClassFunctionDecl()
2546 void RewriteModernObjC::SynthGetMetaClassFunctionDecl() { in SynthGetMetaClassFunctionDecl()
2559 Stmt *RewriteModernObjC::RewriteObjCStringLiteral(ObjCStringLiteral *Exp) { in RewriteObjCStringLiteral()
2605 Stmt *RewriteModernObjC::RewriteObjCBoolLiteralExpr(ObjCBoolLiteralExpr *Exp) { in RewriteObjCBoolLiteralExpr()
2620 Stmt *RewriteModernObjC::RewriteObjCBoxedExpr(ObjCBoxedExpr *Exp) { in RewriteObjCBoxedExpr()
2703 Stmt *RewriteModernObjC::RewriteObjCArrayLiteralExpr(ObjCArrayLiteral *Exp) { in RewriteObjCArrayLiteralExpr()
2824 Stmt *RewriteModernObjC::RewriteObjCDictionaryLiteralExpr(ObjCDictionaryLiteral *Exp) { in RewriteObjCDictionaryLiteralExpr()
2979 QualType RewriteModernObjC::getSuperStructType() { in getSuperStructType()
3007 QualType RewriteModernObjC::getConstantStringStructType() { in getConstantStringStructType()
3043 static SourceLocation getFunctionSourceLocation (RewriteModernObjC &R, in getFunctionSourceLocation()
3057 void RewriteModernObjC::RewriteLineDirective(const Decl *D) { in RewriteLineDirective()
3095 Expr *RewriteModernObjC::SynthMsgSendStretCallExpr(FunctionDecl *MsgSendStretFlavor, in SynthMsgSendStretCallExpr()
3198 Stmt *RewriteModernObjC::SynthMessageExpr(ObjCMessageExpr *Exp, in SynthMessageExpr()
3555 Stmt *RewriteModernObjC::RewriteMessageExpr(ObjCMessageExpr *Exp) { in RewriteMessageExpr()
3567 QualType RewriteModernObjC::getProtocolType() { in getProtocolType()
3583 Stmt *RewriteModernObjC::RewriteObjCProtocolExpr(ObjCProtocolExpr *Exp) { in RewriteObjCProtocolExpr()
3602 bool RewriteModernObjC::IsTagDefinedInsideClass(ObjCContainerDecl *IDecl, in IsTagDefinedInsideClass()
3630 bool RewriteModernObjC::RewriteObjCFieldDeclType(QualType &Type, in RewriteObjCFieldDeclType()
3694 void RewriteModernObjC::RewriteObjCFieldDecl(FieldDecl *fieldDecl, in RewriteObjCFieldDecl()
3724 void RewriteModernObjC::RewriteLocallyDefinedNamedAggregates(FieldDecl *fieldDecl, in RewriteLocallyDefinedNamedAggregates()
3756 unsigned RewriteModernObjC::ObjCIvarBitfieldGroupNo(ObjCIvarDecl *IV) { in ObjCIvarBitfieldGroupNo()
3780 QualType RewriteModernObjC::SynthesizeBitfieldGroupStructType( in SynthesizeBitfieldGroupStructType()
3801 QualType RewriteModernObjC::GetGroupRecordTypeForObjCIvarBitfield(ObjCIvarDecl *IV) { in GetGroupRecordTypeForObjCIvarBitfield()
3837 void RewriteModernObjC::ObjCIvarBitfieldGroupDecl(ObjCIvarDecl *IV, in ObjCIvarBitfieldGroupDecl()
3849 void RewriteModernObjC::ObjCIvarBitfieldGroupType(ObjCIvarDecl *IV, in ObjCIvarBitfieldGroupType()
3861 void RewriteModernObjC::ObjCIvarBitfieldGroupOffset(ObjCIvarDecl *IV, in ObjCIvarBitfieldGroupOffset()
3876 void RewriteModernObjC::RewriteObjCInternalStruct(ObjCInterfaceDecl *CDecl, in RewriteObjCInternalStruct()
3953 void RewriteModernObjC::RewriteIvarOffsetSymbols(ObjCInterfaceDecl *CDecl, in RewriteIvarOffsetSymbols()
3998 void RewriteModernObjC::RewriteImplementations() { in RewriteImplementations()
4022 void RewriteModernObjC::RewriteByRefString(std::string &ResultStr, in RewriteByRefString()
4039 std::string RewriteModernObjC::SynthesizeBlockFunc(BlockExpr *CE, int i, in SynthesizeBlockFunc()
4135 std::string RewriteModernObjC::SynthesizeBlockHelperFuncs(BlockExpr *CE, int i, in SynthesizeBlockHelperFuncs()
4179 std::string RewriteModernObjC::SynthesizeBlockImpl(BlockExpr *CE, std::string Tag, in SynthesizeBlockImpl()
4294 std::string RewriteModernObjC::SynthesizeBlockDescriptor(std::string DescTag, in SynthesizeBlockDescriptor()
4322 void RewriteModernObjC::SynthesizeBlockLiterals(SourceLocation FunLocStart, in SynthesizeBlockLiterals()
4431 void RewriteModernObjC::InsertBlockLiteralsWithinFunction(FunctionDecl *FD) { in InsertBlockLiteralsWithinFunction()
4451 void RewriteModernObjC::InsertBlockLiteralsWithinMethod(ObjCMethodDecl *MD) { in InsertBlockLiteralsWithinMethod()
4460 void RewriteModernObjC::GetBlockDeclRefExprs(Stmt *S) { in GetBlockDeclRefExprs()
4476 void RewriteModernObjC::GetInnerBlockDeclRefExprs(Stmt *S, in GetInnerBlockDeclRefExprs()
4506 bool RewriteModernObjC::convertObjCTypeToCStyleType(QualType &T) { in convertObjCTypeToCStyleType()
4528 QualType RewriteModernObjC::convertFunctionTypeOfBlocks(const FunctionType *FT) { in convertFunctionTypeOfBlocks()
4552 Stmt *RewriteModernObjC::SynthesizeBlockCall(CallExpr *Exp, const Expr *BlockExp) { in SynthesizeBlockCall()
4663 Stmt *RewriteModernObjC::RewriteBlockDeclRefExpr(DeclRefExpr *DeclRefExp) { in RewriteBlockDeclRefExpr()
4699 Stmt *RewriteModernObjC::RewriteLocalVariableExternalStorage(DeclRefExpr *DRE) { in RewriteLocalVariableExternalStorage()
4714 void RewriteModernObjC::RewriteCastExpr(CStyleCastExpr *CE) { in RewriteCastExpr()
4752 void RewriteModernObjC::RewriteImplicitCastObjCExpr(CastExpr *IC) { in RewriteImplicitCastObjCExpr()
4767 void RewriteModernObjC::RewriteBlockPointerFunctionArgs(FunctionDecl *FD) { in RewriteBlockPointerFunctionArgs()
4801 bool RewriteModernObjC::PointerTypeTakesAnyBlockArguments(QualType QT) { in PointerTypeTakesAnyBlockArguments()
4819 bool RewriteModernObjC::PointerTypeTakesAnyObjCQualifiedType(QualType QT) { in PointerTypeTakesAnyObjCQualifiedType()
4842 void RewriteModernObjC::GetExtentOfArgList(const char *Name, const char *&LParen, in GetExtentOfArgList()
4863 void RewriteModernObjC::RewriteBlockPointerDecl(NamedDecl *ND) { in RewriteBlockPointerDecl()
4957 std::string RewriteModernObjC::SynthesizeByrefCopyDestroyHelper(VarDecl *VD, in SynthesizeByrefCopyDestroyHelper()
5012 void RewriteModernObjC::RewriteByRefVar(VarDecl *ND, bool firstDecl, in RewriteByRefVar()
5159 void RewriteModernObjC::CollectBlockDeclRefInfo(BlockExpr *Exp) { in CollectBlockDeclRefInfo()
5188 FunctionDecl *RewriteModernObjC::SynthBlockInitFunctionDecl(StringRef name) { in SynthBlockInitFunctionDecl()
5196 Stmt *RewriteModernObjC::SynthBlockInitExpr(BlockExpr *Exp, in SynthBlockInitExpr()
5418 bool RewriteModernObjC::IsDeclStmtInForeachHeader(DeclStmt *DS) { in IsDeclStmtInForeachHeader()
5429 Stmt *RewriteModernObjC::RewriteFunctionBodyOrGlobalInitializer(Stmt *S) { in RewriteFunctionBodyOrGlobalInitializer()
5670 void RewriteModernObjC::RewriteRecordBody(RecordDecl *RD) { in RewriteRecordBody()
5682 void RewriteModernObjC::HandleDeclInMainFile(Decl *D) { in HandleDeclInMainFile()
5824 void RewriteModernObjC::HandleTranslationUnit(ASTContext &C) { in HandleTranslationUnit()
5886 void RewriteModernObjC::Initialize(ASTContext &context) { in Initialize()
6060 void RewriteModernObjC::RewriteIvarOffsetComputation(ObjCIvarDecl *ivar, in RewriteIvarOffsetComputation()
6316 static void Write_method_list_t_initializer(RewriteModernObjC &RewriteObj, in Write_method_list_t_initializer()
6356 static void Write_prop_list_t_initializer(RewriteModernObjC &RewriteObj, in Write_prop_list_t_initializer()
6612 static void Write_category_t(RewriteModernObjC &RewriteObj, ASTContext *Context, in Write_category_t()
6694 static void Write__extendedMethodTypes_initializer(RewriteModernObjC &RewriteObj, in Write__extendedMethodTypes_initializer()
6721 static void Write_IvarOffsetVar(RewriteModernObjC &RewriteObj, in Write_IvarOffsetVar()
6764 static void Write__ivar_list_t_initializer(RewriteModernObjC &RewriteObj, in Write__ivar_list_t_initializer()
6839 void RewriteModernObjC::RewriteObjCProtocolMetaData(ObjCProtocolDecl *PDecl, in RewriteObjCProtocolMetaData()
7001 void RewriteModernObjC::RewriteObjCClassMetaData(ObjCImplementationDecl *IDecl, in RewriteObjCClassMetaData()
7158 void RewriteModernObjC::RewriteClassSetupInitHook(std::string &Result) { in RewriteClassSetupInitHook()
7174 void RewriteModernObjC::RewriteMetaDataIntoBuffer(std::string &Result) { in RewriteMetaDataIntoBuffer()
7252 void RewriteModernObjC::WriteImageInfo(std::string &Result) { in WriteImageInfo()
7263 void RewriteModernObjC::RewriteObjCCategoryImplDecl(ObjCCategoryImplDecl *IDecl, in RewriteObjCCategoryImplDecl()
7340 void RewriteModernObjC::RewriteCategorySetupInitHook(std::string &Result) { in RewriteCategorySetupInitHook()
7363 void RewriteModernObjC::RewriteObjCMethodsMetaData(MethodIterator MethodBegin, in RewriteObjCMethodsMetaData()
7441 Stmt *RewriteModernObjC::RewriteObjCIvarRefExpr(ObjCIvarRefExpr *IV) { in RewriteObjCIvarRefExpr()