Home | History | Annotate | Download | only in Rewrite

Lines Matching defs:RewriteObjC

1 //===--- RewriteObjC.cpp - Playground for the code rewriter ---------------===//
38 class RewriteObjC : public ASTConsumer {
153 RewriteObjC &R;
157 DisableReplaceStmtScope(RewriteObjC &R)
192 RewriteObjC(std::string inFile, raw_ostream *OS,
196 ~RewriteObjC() override {}
506 class RewriteObjCFragileABI : public RewriteObjC {
511 bool silenceMacroWarn) : RewriteObjC(inFile, OS,
545 void RewriteObjC::RewriteBlocksInFunctionProtoType(QualType funcType,
558 void RewriteObjC::CheckFunctionPointerDecl(QualType funcType, NamedDecl *ND) {
578 RewriteObjC::RewriteObjC(std::string inFile, raw_ostream* OS,
600 void RewriteObjC::InitializeCommon(ASTContext &context) {
644 void RewriteObjC::HandleTopLevelSingleDecl(Decl *D) {
730 void RewriteObjC::RewriteInclude() {
766 void RewriteObjC::RewritePropertyImplDecl(ObjCPropertyImplDecl *PID,
901 void RewriteObjC::RewriteForwardClassEpilogue(ObjCInterfaceDecl *ClassDecl,
910 void RewriteObjC::RewriteForwardClassDecl(DeclGroupRef D) {
928 void RewriteObjC::RewriteForwardClassDecl(const SmallVectorImpl<Decl *> &D) {
942 void RewriteObjC::RewriteMethodDeclaration(ObjCMethodDecl *Method) {
959 void RewriteObjC::RewriteProperty(ObjCPropertyDecl *prop) {
966 void RewriteObjC::RewriteCategoryDecl(ObjCCategoryDecl *CatDecl) {
984 void RewriteObjC::RewriteProtocolDecl(ObjCProtocolDecl *PDecl) {
1019 void RewriteObjC::RewriteForwardProtocolDecl(DeclGroupRef D) {
1028 RewriteObjC::RewriteForwardProtocolDecl(const SmallVectorImpl<Decl *> &DG) {
1036 void RewriteObjC::RewriteTypeIntoString(QualType T, std::string &ResultStr,
1059 void RewriteObjC::RewriteObjCMethodDecl(const ObjCInterfaceDecl *IDecl,
1162 void RewriteObjC::RewriteImplementationDecl(Decl *OID) {
1195 void RewriteObjC::RewriteInterfaceDecl(ObjCInterfaceDecl *ClassDecl) {
1225 Stmt *RewriteObjC::RewritePropertyOrImplicitSetter(PseudoObjectExpr *PseudoOp) {
1308 Stmt *RewriteObjC::RewritePropertyOrImplicitGetter(PseudoObjectExpr *PseudoOp) {
1393 void RewriteObjC::SynthCountByEnumWithState(std::string &buf) {
1407 Stmt *RewriteObjC::RewriteBreakStmt(BreakStmt *S) {
1424 Stmt *RewriteObjC::RewriteContinueStmt(ContinueStmt *S) {
1470 Stmt *RewriteObjC::RewriteObjCForCollectionStmt(ObjCForCollectionStmt *S,
1640 Stmt *RewriteObjC::RewriteObjCSynchronizedStmt(ObjCAtSynchronizedStmt *S) {
1712 void RewriteObjC::WarnAboutReturnGotoStmts(Stmt *S)
1726 void RewriteObjC::HasReturnStmts(Stmt *S, bool &hasReturns)
1738 void RewriteObjC::RewriteTryReturnStmts(Stmt *S) {
1761 void RewriteObjC::RewriteSyncReturnStmts(Stmt *S, std::string syncExitBuf) {
1786 Stmt *RewriteObjC::RewriteObjCTryStmt(ObjCAtTryStmt *S) {
1954 Stmt *RewriteObjC::RewriteObjCThrowStmt(ObjCAtThrowStmt *S) {
1980 Stmt *RewriteObjC::RewriteAtEncode(ObjCEncodeExpr *Exp) {
1992 Stmt *RewriteObjC::RewriteAtSelector(ObjCSelectorExpr *Exp) {
2007 RewriteObjC::SynthesizeCallToFunctionDecl(FunctionDecl *FD,
2061 bool RewriteObjC::needToScanForQualifiers(QualType T) {
2079 void RewriteObjC::RewriteObjCQualifiedInterfaceTypes(Expr *E) {
2109 void RewriteObjC::RewriteObjCQualifiedInterfaceTypes(Decl *Dcl) {
2187 void RewriteObjC::RewriteTypeOfDecl(VarDecl *ND) {
2224 void RewriteObjC::SynthSelGetUidFunctionDecl() {
2237 void RewriteObjC::RewriteFunctionDecl(FunctionDecl *FD) {
2247 void RewriteObjC::RewriteBlockPointerType(std::string& Str, QualType Type) {
2261 void RewriteObjC::RewriteBlockPointerTypeVariable(std::string& Str,
2291 void RewriteObjC::RewriteBlockLiteralFunctionDecl(FunctionDecl *FD) {
2315 void RewriteObjC::SynthSuperConstructorFunctionDecl() {
2334 void RewriteObjC::SynthMsgSendFunctionDecl() {
2353 void RewriteObjC::SynthMsgSendSuperFunctionDecl() {
2375 void RewriteObjC::SynthMsgSendStretFunctionDecl() {
2395 void RewriteObjC::SynthMsgSendSuperStretFunctionDecl() {
2419 void RewriteObjC::SynthMsgSendFpretFunctionDecl() {
2438 void RewriteObjC::SynthGetClassFunctionDecl() {
2452 void RewriteObjC::SynthGetSuperClassFunctionDecl() {
2468 void RewriteObjC::SynthGetMetaClassFunctionDecl() {
2481 Stmt *RewriteObjC::RewriteObjCStringLiteral(ObjCStringLiteral *Exp) {
2528 QualType RewriteObjC::getSuperStructType() {
2556 QualType RewriteObjC::getConstantStringStructType() {
2589 CallExpr *RewriteObjC::SynthMsgSendStretCallExpr(FunctionDecl *MsgSendStretFlavor,
2622 Stmt *RewriteObjC::SynthMessageExpr(ObjCMessageExpr *Exp,
3016 Stmt *RewriteObjC::RewriteMessageExpr(ObjCMessageExpr *Exp) {
3028 QualType RewriteObjC::getProtocolType() {
3043 /// RewriteObjC::HandleTranslationUnit().
3044 Stmt *RewriteObjC::RewriteObjCProtocolExpr(ObjCProtocolExpr *Exp) {
3065 bool RewriteObjC::BufferContainsPPDirectives(const char *startBuf,
3093 void RewriteObjC::RewriteObjCInternalStruct(ObjCInterfaceDecl *CDecl,
3231 void RewriteObjC::RewriteImplementations() {
3243 void RewriteObjC::RewriteByRefString(std::string &ResultStr,
3260 std::string RewriteObjC::SynthesizeBlockFunc(BlockExpr *CE, int i,
3352 std::string RewriteObjC::SynthesizeBlockHelperFuncs(BlockExpr *CE, int i,
3396 std::string RewriteObjC::SynthesizeBlockImpl(BlockExpr *CE, std::string Tag,
3511 std::string RewriteObjC::SynthesizeBlockDescriptor(std::string DescTag,
3539 void RewriteObjC::SynthesizeBlockLiterals(SourceLocation FunLocStart,
3627 void RewriteObjC::InsertBlockLiteralsWithinFunction(FunctionDecl *FD) {
3645 void RewriteObjC::InsertBlockLiteralsWithinMethod(ObjCMethodDecl *MD) {
3654 void RewriteObjC::GetBlockDeclRefExprs(Stmt *S) {
3672 void RewriteObjC::GetInnerBlockDeclRefExprs(Stmt *S,
3705 QualType RewriteObjC::convertFunctionTypeOfBlocks(const FunctionType *FT) {
3731 Stmt *RewriteObjC::SynthesizeBlockCall(CallExpr *Exp, const Expr *BlockExp) {
3845 Stmt *RewriteObjC::RewriteBlockDeclRefExpr(DeclRefExpr *DeclRefExp) {
3883 Stmt *RewriteObjC::RewriteLocalVariableExternalStorage(DeclRefExpr *DRE) {
3898 void RewriteObjC::RewriteCastExpr(CStyleCastExpr *CE) {
3937 void RewriteObjC::RewriteBlockPointerFunctionArgs(FunctionDecl *FD) {
3972 bool RewriteObjC::PointerTypeTakesAnyBlockArguments(QualType QT) {
3990 bool RewriteObjC::PointerTypeTakesAnyObjCQualifiedType(QualType QT) {
4013 void RewriteObjC::GetExtentOfArgList(const char *Name, const char *&LParen,
4034 void RewriteObjC::RewriteBlockPointerDecl(NamedDecl *ND) {
4131 std::string RewriteObjC::SynthesizeByrefCopyDestroyHelper(VarDecl *VD,
4186 void RewriteObjC::RewriteByRefVar(VarDecl *ND) {
4334 void RewriteObjC::CollectBlockDeclRefInfo(BlockExpr *Exp) {
4363 FunctionDecl *RewriteObjC::SynthBlockInitFunctionDecl(StringRef name) {
4371 Stmt *RewriteObjC::SynthBlockInitExpr(BlockExpr *Exp,
4565 bool RewriteObjC::IsDeclStmtInForeachHeader(DeclStmt *DS) {
4576 Stmt *RewriteObjC::RewriteFunctionBodyOrGlobalInitializer(Stmt *S) {
4791 void RewriteObjC::RewriteRecordBody(RecordDecl *RD) {
4803 void RewriteObjC::HandleDeclInMainFile(Decl *D) {
4926 void RewriteObjC::HandleTranslationUnit(ASTContext &C) {