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 | d412999a3da6387dbfaf00f7647132082e94310e (patch) | |
tree | 20df1cbe8ca78292258842b2c198ca507370b192 /include | |
parent | 2ca3741a962ded08866596577aaee2f4ab74c955 (diff) | |
download | clang-d412999a3da6387dbfaf00f7647132082e94310e.tar.gz |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@185948 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/clang/ARCMigrate/ARCMTActions.h | 4 | ||||
-rw-r--r-- | include/clang/Driver/Options.td | 3 | ||||
-rw-r--r-- | include/clang/Frontend/FrontendOptions.h | 4 |
3 files changed, 8 insertions, 3 deletions
diff --git a/include/clang/ARCMigrate/ARCMTActions.h b/include/clang/ARCMigrate/ARCMTActions.h index 2daaf73065..2023c729b8 100644 --- a/include/clang/ARCMigrate/ARCMTActions.h +++ b/include/clang/ARCMigrate/ARCMTActions.h @@ -59,12 +59,14 @@ class ObjCMigrateAction : public WrapperFrontendAction { std::string MigrateDir; bool MigrateLiterals; bool MigrateSubscripting; + bool MigrateProperty; FileRemapper Remapper; CompilerInstance *CompInst; public: ObjCMigrateAction(FrontendAction *WrappedAction, StringRef migrateDir, bool migrateLiterals, - bool migrateSubscripting); + bool migrateSubscripting, + bool migrateProperty); protected: virtual ASTConsumer *CreateASTConsumer(CompilerInstance &CI,StringRef InFile); diff --git a/include/clang/Driver/Options.td b/include/clang/Driver/Options.td index 416a5de096..7e7e111aa4 100644 --- a/include/clang/Driver/Options.td +++ b/include/clang/Driver/Options.td @@ -160,7 +160,8 @@ def objcmt_migrate_literals : Flag<["-"], "objcmt-migrate-literals">, Flags<[CC1 HelpText<"Enable migration to modern ObjC literals">; def objcmt_migrate_subscripting : Flag<["-"], "objcmt-migrate-subscripting">, Flags<[CC1Option]>, HelpText<"Enable migration to modern ObjC subscripting">; - +def objcmt_migrate_property : Flag<["-"], "objcmt-migrate-property">, Flags<[CC1Option]>, + HelpText<"Enable migration to modern ObjC property">; // Make sure all other -ccc- options are rejected. def ccc_ : Joined<["-"], "ccc-">, Group<ccc_Group>, Flags<[Unsupported]>; diff --git a/include/clang/Frontend/FrontendOptions.h b/include/clang/Frontend/FrontendOptions.h index 1130f7b3fc..0b78d95e75 100644 --- a/include/clang/Frontend/FrontendOptions.h +++ b/include/clang/Frontend/FrontendOptions.h @@ -159,7 +159,9 @@ public: /// \brief Enable migration to modern ObjC literals. ObjCMT_Literals = 0x1, /// \brief Enable migration to modern ObjC subscripting. - ObjCMT_Subscripting = 0x2 + ObjCMT_Subscripting = 0x2, + /// \brief Enable migration to modern ObjC property. + ObjCMT_Property = 0x4 }; unsigned ObjCMTAction; |