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()
609 void RewriteModernObjC::RewriteBlocksInFunctionProtoType(QualType funcType, in RewriteBlocksInFunctionProtoType()
622 void RewriteModernObjC::CheckFunctionPointerDecl(QualType funcType, NamedDecl *ND) { in CheckFunctionPointerDecl()
642 RewriteModernObjC::RewriteModernObjC(std::string inFile, in RewriteModernObjC() function in RewriteModernObjC
667 return std::make_unique<RewriteModernObjC>(InFile, std::move(OS), Diags, in CreateModernObjCRewriter()
672 void RewriteModernObjC::InitializeCommon(ASTContext &context) { in InitializeCommon()
716 void RewriteModernObjC::HandleTopLevelSingleDecl(Decl *D) { in HandleTopLevelSingleDecl()
805 void RewriteModernObjC::RewriteInclude() { in RewriteInclude()
840 RewriteModernObjC::getIvarAccessString(ObjCIvarDecl *D) { in getIvarAccessString()
917 void RewriteModernObjC::RewritePropertyImplDecl(ObjCPropertyImplDecl *PID, in RewritePropertyImplDecl()
1060 void RewriteModernObjC::RewriteForwardClassEpilogue(ObjCInterfaceDecl *ClassDecl, in RewriteForwardClassEpilogue()
1069 void RewriteModernObjC::RewriteForwardClassDecl(DeclGroupRef D) { in RewriteForwardClassDecl()
1090 void RewriteModernObjC::RewriteForwardClassDecl( in RewriteForwardClassDecl()
1105 void RewriteModernObjC::RewriteMethodDeclaration(ObjCMethodDecl *Method) { in RewriteMethodDeclaration()
1122 void RewriteModernObjC::RewriteProperty(ObjCPropertyDecl *prop) { in RewriteProperty()
1129 void RewriteModernObjC::RewriteCategoryDecl(ObjCCategoryDecl *CatDecl) { in RewriteCategoryDecl()
1154 void RewriteModernObjC::RewriteProtocolDecl(ObjCProtocolDecl *PDecl) { in RewriteProtocolDecl()
1189 void RewriteModernObjC::RewriteForwardProtocolDecl(DeclGroupRef D) { in RewriteForwardProtocolDecl()
1198 RewriteModernObjC::RewriteForwardProtocolDecl(const SmallVectorImpl<Decl *> &DG) { in RewriteForwardProtocolDecl()
1206 void RewriteModernObjC::RewriteTypeIntoString(QualType T, std::string &ResultStr, in RewriteTypeIntoString()
1229 void RewriteModernObjC::RewriteObjCMethodDecl(const ObjCInterfaceDecl *IDecl, in RewriteObjCMethodDecl()
1333 void RewriteModernObjC::RewriteImplementationDecl(Decl *OID) { in RewriteImplementationDecl()
1381 void RewriteModernObjC::RewriteInterfaceDecl(ObjCInterfaceDecl *ClassDecl) { in RewriteInterfaceDecl()
1414 Stmt *RewriteModernObjC::RewritePropertyOrImplicitSetter(PseudoObjectExpr *PseudoOp) { in RewritePropertyOrImplicitSetter()
1502 Stmt *RewriteModernObjC::RewritePropertyOrImplicitGetter(PseudoObjectExpr *PseudoOp) { in RewritePropertyOrImplicitGetter()
1594 void RewriteModernObjC::SynthCountByEnumWithState(std::string &buf) { in SynthCountByEnumWithState()
1608 Stmt *RewriteModernObjC::RewriteBreakStmt(BreakStmt *S) { in RewriteBreakStmt()
1622 void RewriteModernObjC::ConvertSourceLocationToLineDirective( in ConvertSourceLocationToLineDirective()
1638 Stmt *RewriteModernObjC::RewriteContinueStmt(ContinueStmt *S) { in RewriteContinueStmt()
1684 Stmt *RewriteModernObjC::RewriteObjCForCollectionStmt(ObjCForCollectionStmt *S, in RewriteObjCForCollectionStmt()
1864 Stmt *RewriteModernObjC::RewriteObjCSynchronizedStmt(ObjCAtSynchronizedStmt *S) { in RewriteObjCSynchronizedStmt()
1913 void RewriteModernObjC::WarnAboutReturnGotoStmts(Stmt *S) in WarnAboutReturnGotoStmts()
1926 Stmt *RewriteModernObjC::RewriteObjCAutoreleasePoolStmt(ObjCAutoreleasePoolStmt *S) { in RewriteObjCAutoreleasePoolStmt()
1935 Stmt *RewriteModernObjC::RewriteObjCTryStmt(ObjCAtTryStmt *S) { in RewriteObjCTryStmt()
2039 Stmt *RewriteModernObjC::RewriteObjCThrowStmt(ObjCAtThrowStmt *S) { in RewriteObjCThrowStmt()
2068 Stmt *RewriteModernObjC::RewriteAtEncode(ObjCEncodeExpr *Exp) { in RewriteAtEncode()
2080 Stmt *RewriteModernObjC::RewriteAtSelector(ObjCSelectorExpr *Exp) { in RewriteAtSelector()
2095 RewriteModernObjC::SynthesizeCallToFunctionDecl(FunctionDecl *FD, in SynthesizeCallToFunctionDecl()
2148 bool RewriteModernObjC::needToScanForQualifiers(QualType T) { in needToScanForQualifiers()
2166 void RewriteModernObjC::RewriteObjCQualifiedInterfaceTypes(Expr *E) { in RewriteObjCQualifiedInterfaceTypes()
2196 void RewriteModernObjC::RewriteObjCQualifiedInterfaceTypes(Decl *Dcl) { in RewriteObjCQualifiedInterfaceTypes()
2278 void RewriteModernObjC::RewriteTypeOfDecl(VarDecl *ND) { in RewriteTypeOfDecl()
2315 void RewriteModernObjC::SynthSelGetUidFunctionDecl() { in SynthSelGetUidFunctionDecl()
2328 void RewriteModernObjC::RewriteFunctionDecl(FunctionDecl *FD) { in RewriteFunctionDecl()
2338 void RewriteModernObjC::RewriteBlockPointerType(std::string& Str, QualType Type) { in RewriteBlockPointerType()
2352 void RewriteModernObjC::RewriteBlockPointerTypeVariable(std::string& Str, in RewriteBlockPointerTypeVariable()
2381 void RewriteModernObjC::RewriteBlockLiteralFunctionDecl(FunctionDecl *FD) { in RewriteBlockLiteralFunctionDecl()
2408 void RewriteModernObjC::SynthSuperConstructorFunctionDecl() { in SynthSuperConstructorFunctionDecl()
2427 void RewriteModernObjC::SynthMsgSendFunctionDecl() { in SynthMsgSendFunctionDecl()
2446 void RewriteModernObjC::SynthMsgSendSuperFunctionDecl() { in SynthMsgSendSuperFunctionDecl()
2460 void RewriteModernObjC::SynthMsgSendStretFunctionDecl() { in SynthMsgSendStretFunctionDecl()
2480 void RewriteModernObjC::SynthMsgSendSuperStretFunctionDecl() { in SynthMsgSendSuperStretFunctionDecl()
2496 void RewriteModernObjC::SynthMsgSendFpretFunctionDecl() { in SynthMsgSendFpretFunctionDecl()
2515 void RewriteModernObjC::SynthGetClassFunctionDecl() { in SynthGetClassFunctionDecl()
2529 void RewriteModernObjC::SynthGetSuperClassFunctionDecl() { in SynthGetSuperClassFunctionDecl()
2545 void RewriteModernObjC::SynthGetMetaClassFunctionDecl() { in SynthGetMetaClassFunctionDecl()
2558 Stmt *RewriteModernObjC::RewriteObjCStringLiteral(ObjCStringLiteral *Exp) { in RewriteObjCStringLiteral()
2604 Stmt *RewriteModernObjC::RewriteObjCBoolLiteralExpr(ObjCBoolLiteralExpr *Exp) { in RewriteObjCBoolLiteralExpr()
2619 Stmt *RewriteModernObjC::RewriteObjCBoxedExpr(ObjCBoxedExpr *Exp) { in RewriteObjCBoxedExpr()
2702 Stmt *RewriteModernObjC::RewriteObjCArrayLiteralExpr(ObjCArrayLiteral *Exp) { in RewriteObjCArrayLiteralExpr()
2823 Stmt *RewriteModernObjC::RewriteObjCDictionaryLiteralExpr(ObjCDictionaryLiteral *Exp) { in RewriteObjCDictionaryLiteralExpr()
2978 QualType RewriteModernObjC::getSuperStructType() { in getSuperStructType()
3006 QualType RewriteModernObjC::getConstantStringStructType() { in getConstantStringStructType()
3042 static SourceLocation getFunctionSourceLocation (RewriteModernObjC &R, in getFunctionSourceLocation()
3056 void RewriteModernObjC::RewriteLineDirective(const Decl *D) { in RewriteLineDirective()
3094 Expr *RewriteModernObjC::SynthMsgSendStretCallExpr(FunctionDecl *MsgSendStretFlavor, in SynthMsgSendStretCallExpr()
3197 Stmt *RewriteModernObjC::SynthMessageExpr(ObjCMessageExpr *Exp, in SynthMessageExpr()
3554 Stmt *RewriteModernObjC::RewriteMessageExpr(ObjCMessageExpr *Exp) { in RewriteMessageExpr()
3566 QualType RewriteModernObjC::getProtocolType() { in getProtocolType()
3582 Stmt *RewriteModernObjC::RewriteObjCProtocolExpr(ObjCProtocolExpr *Exp) { in RewriteObjCProtocolExpr()
3601 bool RewriteModernObjC::IsTagDefinedInsideClass(ObjCContainerDecl *IDecl, in IsTagDefinedInsideClass()
3629 bool RewriteModernObjC::RewriteObjCFieldDeclType(QualType &Type, in RewriteObjCFieldDeclType()
3693 void RewriteModernObjC::RewriteObjCFieldDecl(FieldDecl *fieldDecl, in RewriteObjCFieldDecl()
3723 void RewriteModernObjC::RewriteLocallyDefinedNamedAggregates(FieldDecl *fieldDecl, in RewriteLocallyDefinedNamedAggregates()
3755 unsigned RewriteModernObjC::ObjCIvarBitfieldGroupNo(ObjCIvarDecl *IV) { in ObjCIvarBitfieldGroupNo()
3779 QualType RewriteModernObjC::SynthesizeBitfieldGroupStructType( in SynthesizeBitfieldGroupStructType()
3799 QualType RewriteModernObjC::GetGroupRecordTypeForObjCIvarBitfield(ObjCIvarDecl *IV) { in GetGroupRecordTypeForObjCIvarBitfield()
3835 void RewriteModernObjC::ObjCIvarBitfieldGroupDecl(ObjCIvarDecl *IV, in ObjCIvarBitfieldGroupDecl()
3847 void RewriteModernObjC::ObjCIvarBitfieldGroupType(ObjCIvarDecl *IV, in ObjCIvarBitfieldGroupType()
3859 void RewriteModernObjC::ObjCIvarBitfieldGroupOffset(ObjCIvarDecl *IV, in ObjCIvarBitfieldGroupOffset()
3874 void RewriteModernObjC::RewriteObjCInternalStruct(ObjCInterfaceDecl *CDecl, in RewriteObjCInternalStruct()
3951 void RewriteModernObjC::RewriteIvarOffsetSymbols(ObjCInterfaceDecl *CDecl, in RewriteIvarOffsetSymbols()
3996 void RewriteModernObjC::RewriteImplementations() { in RewriteImplementations()
4020 void RewriteModernObjC::RewriteByRefString(std::string &ResultStr, in RewriteByRefString()
4037 std::string RewriteModernObjC::SynthesizeBlockFunc(BlockExpr *CE, int i, in SynthesizeBlockFunc()
4133 std::string RewriteModernObjC::SynthesizeBlockHelperFuncs( in SynthesizeBlockHelperFuncs()
4176 std::string RewriteModernObjC::SynthesizeBlockImpl(BlockExpr *CE, in SynthesizeBlockImpl()
4292 std::string RewriteModernObjC::SynthesizeBlockDescriptor( in SynthesizeBlockDescriptor()
4319 void RewriteModernObjC::SynthesizeBlockLiterals(SourceLocation FunLocStart, in SynthesizeBlockLiterals()
4428 void RewriteModernObjC::InsertBlockLiteralsWithinFunction(FunctionDecl *FD) { in InsertBlockLiteralsWithinFunction()
4448 void RewriteModernObjC::InsertBlockLiteralsWithinMethod(ObjCMethodDecl *MD) { in InsertBlockLiteralsWithinMethod()
4457 void RewriteModernObjC::GetBlockDeclRefExprs(Stmt *S) { in GetBlockDeclRefExprs()
4473 void RewriteModernObjC::GetInnerBlockDeclRefExprs(Stmt *S, in GetInnerBlockDeclRefExprs()
4503 bool RewriteModernObjC::convertObjCTypeToCStyleType(QualType &T) { in convertObjCTypeToCStyleType()
4525 QualType RewriteModernObjC::convertFunctionTypeOfBlocks(const FunctionType *FT) { in convertFunctionTypeOfBlocks()
4549 Stmt *RewriteModernObjC::SynthesizeBlockCall(CallExpr *Exp, const Expr *BlockExp) { in SynthesizeBlockCall()
4660 Stmt *RewriteModernObjC::RewriteBlockDeclRefExpr(DeclRefExpr *DeclRefExp) { in RewriteBlockDeclRefExpr()
4696 Stmt *RewriteModernObjC::RewriteLocalVariableExternalStorage(DeclRefExpr *DRE) { in RewriteLocalVariableExternalStorage()
4711 void RewriteModernObjC::RewriteCastExpr(CStyleCastExpr *CE) { in RewriteCastExpr()
4749 void RewriteModernObjC::RewriteImplicitCastObjCExpr(CastExpr *IC) { in RewriteImplicitCastObjCExpr()
4764 void RewriteModernObjC::RewriteBlockPointerFunctionArgs(FunctionDecl *FD) { in RewriteBlockPointerFunctionArgs()
4798 bool RewriteModernObjC::PointerTypeTakesAnyBlockArguments(QualType QT) { in PointerTypeTakesAnyBlockArguments()
4816 bool RewriteModernObjC::PointerTypeTakesAnyObjCQualifiedType(QualType QT) { in PointerTypeTakesAnyObjCQualifiedType()
4839 void RewriteModernObjC::GetExtentOfArgList(const char *Name, const char *&LParen, in GetExtentOfArgList()
4860 void RewriteModernObjC::RewriteBlockPointerDecl(NamedDecl *ND) { in RewriteBlockPointerDecl()
4954 std::string RewriteModernObjC::SynthesizeByrefCopyDestroyHelper(VarDecl *VD, in SynthesizeByrefCopyDestroyHelper()
5009 void RewriteModernObjC::RewriteByRefVar(VarDecl *ND, bool firstDecl, in RewriteByRefVar()
5156 void RewriteModernObjC::CollectBlockDeclRefInfo(BlockExpr *Exp) { in CollectBlockDeclRefInfo()
5185 FunctionDecl *RewriteModernObjC::SynthBlockInitFunctionDecl(StringRef name) { in SynthBlockInitFunctionDecl()
5193 Stmt *RewriteModernObjC::SynthBlockInitExpr(BlockExpr *Exp, in SynthBlockInitExpr()
5415 bool RewriteModernObjC::IsDeclStmtInForeachHeader(DeclStmt *DS) { in IsDeclStmtInForeachHeader()
5426 Stmt *RewriteModernObjC::RewriteFunctionBodyOrGlobalInitializer(Stmt *S) { in RewriteFunctionBodyOrGlobalInitializer()
5667 void RewriteModernObjC::RewriteRecordBody(RecordDecl *RD) { in RewriteRecordBody()
5679 void RewriteModernObjC::HandleDeclInMainFile(Decl *D) { in HandleDeclInMainFile()
5821 void RewriteModernObjC::HandleTranslationUnit(ASTContext &C) { in HandleTranslationUnit()
5883 void RewriteModernObjC::Initialize(ASTContext &context) { in Initialize()
6057 void RewriteModernObjC::RewriteIvarOffsetComputation(ObjCIvarDecl *ivar, in RewriteIvarOffsetComputation()
6313 static void Write_method_list_t_initializer(RewriteModernObjC &RewriteObj, in Write_method_list_t_initializer()
6353 static void Write_prop_list_t_initializer(RewriteModernObjC &RewriteObj, in Write_prop_list_t_initializer()
6609 static void Write_category_t(RewriteModernObjC &RewriteObj, ASTContext *Context, in Write_category_t()
6691 static void Write__extendedMethodTypes_initializer(RewriteModernObjC &RewriteObj, in Write__extendedMethodTypes_initializer()
6718 static void Write_IvarOffsetVar(RewriteModernObjC &RewriteObj, in Write_IvarOffsetVar()
6761 static void Write__ivar_list_t_initializer(RewriteModernObjC &RewriteObj, in Write__ivar_list_t_initializer()
6836 void RewriteModernObjC::RewriteObjCProtocolMetaData(ObjCProtocolDecl *PDecl, in RewriteObjCProtocolMetaData()
6998 void RewriteModernObjC::RewriteObjCClassMetaData(ObjCImplementationDecl *IDecl, in RewriteObjCClassMetaData()
7155 void RewriteModernObjC::RewriteClassSetupInitHook(std::string &Result) { in RewriteClassSetupInitHook()
7171 void RewriteModernObjC::RewriteMetaDataIntoBuffer(std::string &Result) { in RewriteMetaDataIntoBuffer()
7249 void RewriteModernObjC::WriteImageInfo(std::string &Result) { in WriteImageInfo()
7260 void RewriteModernObjC::RewriteObjCCategoryImplDecl(ObjCCategoryImplDecl *IDecl, in RewriteObjCCategoryImplDecl()
7337 void RewriteModernObjC::RewriteCategorySetupInitHook(std::string &Result) { in RewriteCategorySetupInitHook()
7360 void RewriteModernObjC::RewriteObjCMethodsMetaData(MethodIterator MethodBegin, in RewriteObjCMethodsMetaData()
7438 Stmt *RewriteModernObjC::RewriteObjCIvarRefExpr(ObjCIvarRefExpr *IV) { in RewriteObjCIvarRefExpr()