Home | History | Annotate | Download | only in Rewrite

Lines Matching refs:RewriteObjC

1 //===--- RewriteObjC.cpp - Playground for the code rewriter ---------------===//
38 class RewriteObjC : public ASTConsumer {
152 RewriteObjC &R;
156 DisableReplaceStmtScope(RewriteObjC &R)
193 RewriteObjC(std::string inFile, raw_ostream *OS,
197 ~RewriteObjC() override {}
507 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,
1163 void RewriteObjC::RewriteImplementationDecl(Decl *OID) {
1196 void RewriteObjC::RewriteInterfaceDecl(ObjCInterfaceDecl *ClassDecl) {
1226 Stmt *RewriteObjC::RewritePropertyOrImplicitSetter(PseudoObjectExpr *PseudoOp) {
1309 Stmt *RewriteObjC::RewritePropertyOrImplicitGetter(PseudoObjectExpr *PseudoOp) {
1394 void RewriteObjC::SynthCountByEnumWithState(std::string &buf) {
1408 Stmt *RewriteObjC::RewriteBreakStmt(BreakStmt *S) {
1425 Stmt *RewriteObjC::RewriteContinueStmt(ContinueStmt *S) {
1471 Stmt *RewriteObjC::RewriteObjCForCollectionStmt(ObjCForCollectionStmt *S,
1641 Stmt *RewriteObjC::RewriteObjCSynchronizedStmt(ObjCAtSynchronizedStmt *S) {
1713 void RewriteObjC::WarnAboutReturnGotoStmts(Stmt *S)
1726 void RewriteObjC::HasReturnStmts(Stmt *S, bool &hasReturns)
1737 void RewriteObjC::RewriteTryReturnStmts(Stmt *S) {
1758 void RewriteObjC::RewriteSyncReturnStmts(Stmt *S, std::string syncExitBuf) {
1782 Stmt *RewriteObjC::RewriteObjCTryStmt(ObjCAtTryStmt *S) {
1950 Stmt *RewriteObjC::RewriteObjCThrowStmt(ObjCAtThrowStmt *S) {
1976 Stmt *RewriteObjC::RewriteAtEncode(ObjCEncodeExpr *Exp) {
1988 Stmt *RewriteObjC::RewriteAtSelector(ObjCSelectorExpr *Exp) {
2003 RewriteObjC::SynthesizeCallToFunctionDecl(FunctionDecl *FD,
2057 bool RewriteObjC::needToScanForQualifiers(QualType T) {
2075 void RewriteObjC::RewriteObjCQualifiedInterfaceTypes(Expr *E) {
2105 void RewriteObjC::RewriteObjCQualifiedInterfaceTypes(Decl *Dcl) {
2183 void RewriteObjC::RewriteTypeOfDecl(VarDecl *ND) {
2220 void RewriteObjC::SynthSelGetUidFunctionDecl() {
2233 void RewriteObjC::RewriteFunctionDecl(FunctionDecl *FD) {
2243 void RewriteObjC::RewriteBlockPointerType(std::string& Str, QualType Type) {
2257 void RewriteObjC::RewriteBlockPointerTypeVariable(std::string& Str,
2286 void RewriteObjC::RewriteBlockLiteralFunctionDecl(FunctionDecl *FD) {
2310 void RewriteObjC::SynthSuperConstructorFunctionDecl() {
2329 void RewriteObjC::SynthMsgSendFunctionDecl() {
2348 void RewriteObjC::SynthMsgSendSuperFunctionDecl() {
2370 void RewriteObjC::SynthMsgSendStretFunctionDecl() {
2390 void RewriteObjC::SynthMsgSendSuperStretFunctionDecl() {
2414 void RewriteObjC::SynthMsgSendFpretFunctionDecl() {
2433 void RewriteObjC::SynthGetClassFunctionDecl() {
2447 void RewriteObjC::SynthGetSuperClassFunctionDecl() {
2463 void RewriteObjC::SynthGetMetaClassFunctionDecl() {
2476 Stmt *RewriteObjC::RewriteObjCStringLiteral(ObjCStringLiteral *Exp) {
2523 QualType RewriteObjC::getSuperStructType() {
2551 QualType RewriteObjC::getConstantStringStructType() {
2584 CallExpr *RewriteObjC::SynthMsgSendStretCallExpr(FunctionDecl *MsgSendStretFlavor,
2615 Stmt *RewriteObjC::SynthMessageExpr(ObjCMessageExpr *Exp,
3009 Stmt *RewriteObjC::RewriteMessageExpr(ObjCMessageExpr *Exp) {
3021 QualType RewriteObjC::getProtocolType() {
3036 /// RewriteObjC::HandleTranslationUnit().
3037 Stmt *RewriteObjC::RewriteObjCProtocolExpr(ObjCProtocolExpr *Exp) {
3057 bool RewriteObjC::BufferContainsPPDirectives(const char *startBuf,
3085 void RewriteObjC::RewriteObjCInternalStruct(ObjCInterfaceDecl *CDecl,
3222 void RewriteObjC::RewriteImplementations() {
3234 void RewriteObjC::RewriteByRefString(std::string &ResultStr,
3251 std::string RewriteObjC::SynthesizeBlockFunc(BlockExpr *CE, int i,
3343 std::string RewriteObjC::SynthesizeBlockHelperFuncs(BlockExpr *CE, int i,
3387 std::string RewriteObjC::SynthesizeBlockImpl(BlockExpr *CE, std::string Tag,
3502 std::string RewriteObjC::SynthesizeBlockDescriptor(std::string DescTag,
3530 void RewriteObjC::SynthesizeBlockLiterals(SourceLocation FunLocStart,
3618 void RewriteObjC::InsertBlockLiteralsWithinFunction(FunctionDecl *FD) {
3636 void RewriteObjC::InsertBlockLiteralsWithinMethod(ObjCMethodDecl *MD) {
3645 void RewriteObjC::GetBlockDeclRefExprs(Stmt *S) {
3661 void RewriteObjC::GetInnerBlockDeclRefExprs(Stmt *S,
3692 QualType RewriteObjC::convertFunctionTypeOfBlocks(const FunctionType *FT) {
3718 Stmt *RewriteObjC::SynthesizeBlockCall(CallExpr *Exp, const Expr *BlockExp) {
3832 Stmt *RewriteObjC::RewriteBlockDeclRefExpr(DeclRefExpr *DeclRefExp) {
3870 Stmt *RewriteObjC::RewriteLocalVariableExternalStorage(DeclRefExpr *DRE) {
3885 void RewriteObjC::RewriteCastExpr(CStyleCastExpr *CE) {
3923 void RewriteObjC::RewriteBlockPointerFunctionArgs(FunctionDecl *FD) {
3957 bool RewriteObjC::PointerTypeTakesAnyBlockArguments(QualType QT) {
3975 bool RewriteObjC::PointerTypeTakesAnyObjCQualifiedType(QualType QT) {
3998 void RewriteObjC::GetExtentOfArgList(const char *Name, const char *&LParen,
4019 void RewriteObjC::RewriteBlockPointerDecl(NamedDecl *ND) {
4113 std::string RewriteObjC::SynthesizeByrefCopyDestroyHelper(VarDecl *VD,
4168 void RewriteObjC::RewriteByRefVar(VarDecl *ND) {
4315 void RewriteObjC::CollectBlockDeclRefInfo(BlockExpr *Exp) {
4344 FunctionDecl *RewriteObjC::SynthBlockInitFunctionDecl(StringRef name) {
4352 Stmt *RewriteObjC::SynthBlockInitExpr(BlockExpr *Exp,
4545 bool RewriteObjC::IsDeclStmtInForeachHeader(DeclStmt *DS) {
4556 Stmt *RewriteObjC::RewriteFunctionBodyOrGlobalInitializer(Stmt *S) {
4771 void RewriteObjC::RewriteRecordBody(RecordDecl *RD) {
4783 void RewriteObjC::HandleDeclInMainFile(Decl *D) {
4906 void RewriteObjC::HandleTranslationUnit(ASTContext &C) {