From 55d6e6c93057ed7525d64e76a25a6be883ddbd70 Mon Sep 17 00:00:00 2001 From: Fariborz Jahanian Date: Wed, 28 Aug 2013 23:22:46 +0000 Subject: ObjectiveC migrator. This patch infers readonly properties for no-parameter instance methods returning non-void. This will be quite noisy. So, it is placed under a new migrator flag -objcmt-migrate-readonly-property. llvm-svn: 189537 --- clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp') diff --git a/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp b/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp index 2f6d4b2..7ba7103 100644 --- a/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp +++ b/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp @@ -164,7 +164,8 @@ static FrontendAction *CreateFrontendAction(CompilerInstance &CI) { Act = new arcmt::ObjCMigrateAction(Act, FEOpts.MTMigrateDir, FEOpts.ObjCMTAction & FrontendOptions::ObjCMT_Literals, FEOpts.ObjCMTAction & FrontendOptions::ObjCMT_Subscripting, - FEOpts.ObjCMTAction & FrontendOptions::ObjCMT_Property); + FEOpts.ObjCMTAction & FrontendOptions::ObjCMT_Property, + FEOpts.ObjCMTAction & FrontendOptions::ObjCMT_ReadonlyProperty); } #endif -- cgit v1.1