Lines Matching defs:RewriteObjC
1 //===--- RewriteObjC.cpp - Playground for the code rewriter ---------------===//
36 class RewriteObjC : public ASTConsumer {
151 RewriteObjC &R;
155 DisableReplaceStmtScope(RewriteObjC &R)
190 RewriteObjC(std::string inFile, raw_ostream *OS,
194 ~RewriteObjC() {}
506 class RewriteObjCFragileABI : public RewriteObjC {
511 bool silenceMacroWarn) : RewriteObjC(inFile, OS,
546 void RewriteObjC::RewriteBlocksInFunctionProtoType(QualType funcType,
560 void RewriteObjC::CheckFunctionPointerDecl(QualType funcType, NamedDecl *ND) {
580 RewriteObjC::RewriteObjC(std::string inFile, raw_ostream* OS,
602 void RewriteObjC::InitializeCommon(ASTContext &context) {
646 void RewriteObjC::HandleTopLevelSingleDecl(Decl *D) {
732 void RewriteObjC::RewriteInclude() {
768 void RewriteObjC::RewritePropertyImplDecl(ObjCPropertyImplDecl *PID,
902 void RewriteObjC::RewriteForwardClassEpilogue(ObjCInterfaceDecl *ClassDecl,
911 void RewriteObjC::RewriteForwardClassDecl(DeclGroupRef D) {
929 void RewriteObjC::RewriteForwardClassDecl(const SmallVectorImpl<Decl *> &D) {
943 void RewriteObjC::RewriteMethodDeclaration(ObjCMethodDecl *Method) {
960 void RewriteObjC::RewriteProperty(ObjCPropertyDecl *prop) {
967 void RewriteObjC::RewriteCategoryDecl(ObjCCategoryDecl *CatDecl) {
991 void RewriteObjC::RewriteProtocolDecl(ObjCProtocolDecl *PDecl) {
1032 void RewriteObjC::RewriteForwardProtocolDecl(DeclGroupRef D) {
1041 RewriteObjC::RewriteForwardProtocolDecl(const SmallVectorImpl<Decl *> &DG) {
1049 void RewriteObjC::RewriteTypeIntoString(QualType T, std::string &ResultStr,
1072 void RewriteObjC::RewriteObjCMethodDecl(const ObjCInterfaceDecl *IDecl,
1176 void RewriteObjC::RewriteImplementationDecl(Decl *OID) {
1221 void RewriteObjC::RewriteInterfaceDecl(ObjCInterfaceDecl *ClassDecl) {
1256 Stmt *RewriteObjC::RewritePropertyOrImplicitSetter(PseudoObjectExpr *PseudoOp) {
1339 Stmt *RewriteObjC::RewritePropertyOrImplicitGetter(PseudoObjectExpr *PseudoOp) {
1424 void RewriteObjC::SynthCountByEnumWithState(std::string &buf) {
1438 Stmt *RewriteObjC::RewriteBreakStmt(BreakStmt *S) {
1455 Stmt *RewriteObjC::RewriteContinueStmt(ContinueStmt *S) {
1501 Stmt *RewriteObjC::RewriteObjCForCollectionStmt(ObjCForCollectionStmt *S,
1671 Stmt *RewriteObjC::RewriteObjCSynchronizedStmt(ObjCAtSynchronizedStmt *S) {
1742 void RewriteObjC::WarnAboutReturnGotoStmts(Stmt *S)
1756 void RewriteObjC::HasReturnStmts(Stmt *S, bool &hasReturns)
1768 void RewriteObjC::RewriteTryReturnStmts(Stmt *S) {
1791 void RewriteObjC::RewriteSyncReturnStmts(Stmt *S, std::string syncExitBuf) {
1816 Stmt *RewriteObjC::RewriteObjCTryStmt(ObjCAtTryStmt *S) {
1984 Stmt *RewriteObjC::RewriteObjCThrowStmt(ObjCAtThrowStmt *S) {
2010 Stmt *RewriteObjC::RewriteAtEncode(ObjCEncodeExpr *Exp) {
2025 Stmt *RewriteObjC::RewriteAtSelector(ObjCSelectorExpr *Exp) {
2043 CallExpr *RewriteObjC::SynthesizeCallToFunctionDecl(
2097 bool RewriteObjC::needToScanForQualifiers(QualType T) {
2115 void RewriteObjC::RewriteObjCQualifiedInterfaceTypes(Expr *E) {
2145 void RewriteObjC::RewriteObjCQualifiedInterfaceTypes(Decl *Dcl) {
2223 void RewriteObjC::RewriteTypeOfDecl(VarDecl *ND) {
2260 void RewriteObjC::SynthSelGetUidFunctionDecl() {
2273 void RewriteObjC::RewriteFunctionDecl(FunctionDecl *FD) {
2283 void RewriteObjC::RewriteBlockPointerType(std::string& Str, QualType Type) {
2297 void RewriteObjC::RewriteBlockPointerTypeVariable(std::string& Str,
2327 void RewriteObjC::RewriteBlockLiteralFunctionDecl(FunctionDecl *FD) {
2351 void RewriteObjC::SynthSuperContructorFunctionDecl() {
2370 void RewriteObjC::SynthMsgSendFunctionDecl() {
2389 void RewriteObjC::SynthMsgSendSuperFunctionDecl() {
2411 void RewriteObjC::SynthMsgSendStretFunctionDecl() {
2431 void RewriteObjC::SynthMsgSendSuperStretFunctionDecl() {
2455 void RewriteObjC::SynthMsgSendFpretFunctionDecl() {
2474 void RewriteObjC::SynthGetClassFunctionDecl() {
2488 void RewriteObjC::SynthGetSuperClassFunctionDecl() {
2504 void RewriteObjC::SynthGetMetaClassFunctionDecl() {
2517 Stmt *RewriteObjC::RewriteObjCStringLiteral(ObjCStringLiteral *Exp) {
2563 QualType RewriteObjC::getSuperStructType() {
2591 QualType RewriteObjC::getConstantStringStructType() {
2624 CallExpr *RewriteObjC::SynthMsgSendStretCallExpr(FunctionDecl *MsgSendStretFlavor,
2658 Stmt *RewriteObjC::SynthMessageExpr(ObjCMessageExpr *Exp,
3082 Stmt *RewriteObjC::RewriteMessageExpr(ObjCMessageExpr *Exp) {
3094 QualType RewriteObjC::getProtocolType() {
3109 /// RewriteObjC::HandleTranslationUnit().
3110 Stmt *RewriteObjC::RewriteObjCProtocolExpr(ObjCProtocolExpr *Exp) {
3131 bool RewriteObjC::BufferContainsPPDirectives(const char *startBuf,
3159 void RewriteObjC::RewriteObjCInternalStruct(ObjCInterfaceDecl *CDecl,
3297 void RewriteObjC::RewriteImplementations() {
3309 void RewriteObjC::RewriteByRefString(std::string &ResultStr,
3326 std::string RewriteObjC::SynthesizeBlockFunc(BlockExpr *CE, int i,
3418 std::string RewriteObjC::SynthesizeBlockHelperFuncs(BlockExpr *CE, int i,
3466 std::string RewriteObjC::SynthesizeBlockImpl(BlockExpr *CE, std::string Tag,
3581 std::string RewriteObjC::SynthesizeBlockDescriptor(std::string DescTag,
3609 void RewriteObjC::SynthesizeBlockLiterals(SourceLocation FunLocStart,
3697 void RewriteObjC::InsertBlockLiteralsWithinFunction(FunctionDecl *FD) {
3715 void RewriteObjC::InsertBlockLiteralsWithinMethod(ObjCMethodDecl *MD) {
3724 void RewriteObjC::GetBlockDeclRefExprs(Stmt *S) {
3746 void RewriteObjC::GetInnerBlockDeclRefExprs(Stmt *S,
3782 QualType RewriteObjC::convertFunctionTypeOfBlocks(const FunctionType *FT) {
3809 Stmt *RewriteObjC::SynthesizeBlockCall(CallExpr *Exp, const Expr *BlockExp) {
3925 Stmt *RewriteObjC::RewriteBlockDeclRefExpr(DeclRefExpr *DeclRefExp) {
3964 Stmt *RewriteObjC::RewriteLocalVariableExternalStorage(DeclRefExpr *DRE) {
3979 void RewriteObjC::RewriteCastExpr(CStyleCastExpr *CE) {
4018 void RewriteObjC::RewriteBlockPointerFunctionArgs(FunctionDecl *FD) {
4053 bool RewriteObjC::PointerTypeTakesAnyBlockArguments(QualType QT) {
4072 bool RewriteObjC::PointerTypeTakesAnyObjCQualifiedType(QualType QT) {
4096 void RewriteObjC::GetExtentOfArgList(const char *Name, const char *&LParen,
4117 void RewriteObjC::RewriteBlockPointerDecl(NamedDecl *ND) {
4214 std::string RewriteObjC::SynthesizeByrefCopyDestroyHelper(VarDecl *VD,
4269 void RewriteObjC::RewriteByRefVar(VarDecl *ND) {
4417 void RewriteObjC::CollectBlockDeclRefInfo(BlockExpr *Exp) {
4446 FunctionDecl *RewriteObjC::SynthBlockInitFunctionDecl(StringRef name) {
4454 Stmt *RewriteObjC::SynthBlockInitExpr(BlockExpr *Exp,
4649 bool RewriteObjC::IsDeclStmtInForeachHeader(DeclStmt *DS) {
4660 Stmt *RewriteObjC::RewriteFunctionBodyOrGlobalInitializer(Stmt *S) {
4878 void RewriteObjC::RewriteRecordBody(RecordDecl *RD) {
4892 void RewriteObjC::HandleDeclInMainFile(Decl *D) {
5015 void RewriteObjC::HandleTranslationUnit(ASTContext &C) {