diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2013-07-09 16:59:14 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2013-07-09 16:59:14 +0000 |
commit | d83ef848bd859cdf8f5bb380cbe808746e534121 (patch) | |
tree | eacaac94f9becd6a23fe1346875063464eac3931 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 5743f1aafc647471a105c72dcb56ff15b78ae65e (diff) | |
download | llvm-d83ef848bd859cdf8f5bb380cbe808746e534121.zip llvm-d83ef848bd859cdf8f5bb380cbe808746e534121.tar.gz llvm-d83ef848bd859cdf8f5bb380cbe808746e534121.tar.bz2 |
ObjC migrator: Add -objcmt-migrate-property to do property
migration. Also, fixes an old bug where older migration
flags were not being checked for properly.
llvm-svn: 185948
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index d8b4392..97ca50a 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -787,6 +787,8 @@ static InputKind ParseFrontendArgs(FrontendOptions &Opts, ArgList &Args, Opts.ObjCMTAction |= FrontendOptions::ObjCMT_Literals; if (Args.hasArg(OPT_objcmt_migrate_subscripting)) Opts.ObjCMTAction |= FrontendOptions::ObjCMT_Subscripting; + if (Args.hasArg(OPT_objcmt_migrate_property)) + Opts.ObjCMTAction |= FrontendOptions::ObjCMT_Property; if (Opts.ARCMTAction != FrontendOptions::ARCMT_None && Opts.ObjCMTAction != FrontendOptions::ObjCMT_None) { |