History log of /external/clang/lib/ARCMigrate/ObjCMT.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
33337ca4d89605025818daf83390ab4271d598d9 06-May-2015 Pirama Arumuga Nainar <pirama@google.com> Update aosp/master clang for rebase to r235153

Change-Id: Ia94bbcb6da7c75b6e7c2afedd1001094d62a7324
/external/clang/lib/ARCMigrate/ObjCMT.cpp
3ea9e33ea25e0c2b12db56418ba3f994eb662c04 08-Apr-2015 Pirama Arumuga Nainar <pirama@google.com> Update aosp/master clang for rebase to r233350

Change-Id: I12d4823f10bc9e445b8b86e7721b71f98d1df442
/external/clang/lib/ARCMigrate/ObjCMT.cpp
0e2c34f92f00628d48968dfea096d36381f494cb 23-Mar-2015 Stephen Hines <srhines@google.com> Update aosp/master clang for rebase to r230699.

Change-Id: I6a546ab3d4ae37119eebb735e102cca4f80ab520
/external/clang/lib/ARCMigrate/ObjCMT.cpp
176edba5311f6eff0cad2631449885ddf4fbc9ea 01-Dec-2014 Stephen Hines <srhines@google.com> Update aosp/master Clang for rebase to r222490.

Change-Id: Ic557ac55e97fbf6ee08771c7b7c3594777b0aefd
/external/clang/lib/ARCMigrate/ObjCMT.cpp
c568f1e98938584c0ef0b12ae5018ff7d90a4072 21-Jul-2014 Stephen Hines <srhines@google.com> Update Clang for rebase to r212749.

This also fixes a small issue with arm_neon.h not being generated always.

Includes a cherry-pick of:
r213450 - fixes mac-specific header issue
r213126 - removes a default -Bsymbolic on Android

Change-Id: I2a790a0f5d3b2aab11de596fc3a74e7cbc99081d
/external/clang/lib/ARCMigrate/ObjCMT.cpp
6bcf27bb9a4b5c3f79cb44c0e4654a6d7619ad89 29-May-2014 Stephen Hines <srhines@google.com> Update Clang for 3.5 rebase (r209713).

Change-Id: I8c9133b0f8f776dc915f270b60f94962e771bc83
/external/clang/lib/ARCMigrate/ObjCMT.cpp
651f13cea278ec967336033dd032faef0e9fc2ec 24-Apr-2014 Stephen Hines <srhines@google.com> Updated to Clang 3.5a.

Change-Id: I8127eb568f674c2e72635b639a3295381fe8af82
/external/clang/lib/ARCMigrate/ObjCMT.cpp
93d4b8cbc7d55fcd3326747d07c7a65f42e02d93 14-Nov-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator: This patch sets access property
attributes on 'readonly' properties. // rdar://15460787


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194718 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
2c050f6a68c4f871d26be63f8d598f1b64a8e16f 14-Nov-2013 Argyrios Kyrtzidis <akyrtzi@gmail.com> [objcmt] Introduce "objcmt-white-list-dir-path=" option.

This options accepts a path to a directory, collects the filenames of the files
it contains, and the migrator will only modify files with the same filename.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194710 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
9887f260a8d59d47ed31b5fc689909b464ffc18f 14-Nov-2013 Argyrios Kyrtzidis <akyrtzi@gmail.com> [objcmt] -objcmt-atomic-property & -objcmt-ns-nonatomic-iosonly are companion flags.
Ignore them when determining if some transformation was enabled.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194709 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
02593f5c9769851b8fcf6f78736e8b63ce9692e3 14-Nov-2013 Argyrios Kyrtzidis <akyrtzi@gmail.com> [objcmt] If no objcmt options were specified, default to enable literals+subscripting.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194629 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
17c384c7418ad93b3ceb04218734950f7f32e993 14-Nov-2013 Argyrios Kyrtzidis <akyrtzi@gmail.com> [objcmt] Transfer the objcmt flags from the driver to cc1 invocation and
instantiate ObjCMigrateASTConsumer with the specific options that were enabled.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194628 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
e909a720149ba5025209096fb9ed17e0162c8873 13-Nov-2013 Argyrios Kyrtzidis <akyrtzi@gmail.com> [objcmt] Use FileIDs directly instead of their hash value.

No functionality change.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194590 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
5d2a20671954f55f765b96375e8bcd38367cb3ba 13-Nov-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator. Place use of NS_NONATOMIC_IOSONLY
on inferred property attribute under
-objcmt-ns-nonatomic-iosonly option.
// rdar://15442742


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194532 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
1ab853d934daefee1806872a2d4a5f0fe0ff1939 12-Nov-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator. Another alternative to
"atomic" or "nonatomic" for properties is
NS_NONATOMIC_IOSONLY. Use it if available.
// rdar://15442742


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194503 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
80aecf578fa0b24e1f4280820a1b6f1bf34862e0 08-Nov-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator. Added a dropped check in my
last patch.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194238 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
78e39b0b69ee5af1d9691f3143de15cb37b8ad55 08-Nov-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator. Fixes an obscure bug where
NS_RETURNS_INNER_POINTER ends up unintentionally
on the @property under -objcmt-migrate-all
// rdar://15396636


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194233 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
cd569f2788ece55b9f790b6900164e2b2d5d966c 05-Nov-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator. Please annotation of properties with
NS_RETURNS_INNER_POINTER under -objcmt-returns-innerpointer-property
flag (off by default), as older compilers do not support such annotations.
// rdar://15396636


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194100 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
257ddb2b4721e71749174ddaf03c6692df9dd346 01-Nov-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator. When inferring readwrite property,
do not remove the setter if its availability differs
from availability of the getter (which is now turned into
a property). Otherwise, synthesized setter will
inherit availability of the property (which is incorrect).
// rdar://15300059


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@193837 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
5eeefe6cfd4c31fe6af0f1abfe4e78f294faa982 31-Oct-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator. Change naming hueristic for
deprecated categories, fixes a typo reported by
Jordan.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@193759 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
6d754e9a9d6591e8fc5eedc144cc70a7e539ba6f 31-Oct-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator: annotate all protocols/methods in
a category with NSxxxDeprecated name with deprecated
annotation. // rdar://15337661


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@193726 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
d33884f1e2e3189ee2db75cc72d90ea854f6bc68 18-Oct-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator. Minor clean up of my last patch.
No functional change.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192933 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
f98f12f5f565a914d8996d881f53253f95a2db00 18-Oct-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator. In infering NS_ENUM/NS_OPTIONS
macros, prefer the typedef immediately following the
enum declaration to the one preceeding it.
// rdar://15200915


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192927 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
b5b3f816d3c2543e11fb4f0b235041beafd81a1e 17-Oct-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator. Remove blank lines
when inferring property from setter/getter
methods. // rdar://15200949


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192853 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
b81765f59f0c99da3b4e934686bfc118b91aded0 16-Oct-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator. Don't add 'assign' for
inferred properties when type is scalar and
assumed to be 'assign. // rdar://15231241


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192841 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
624b367920405ac5ad5814eee41eb423c368a2c6 16-Oct-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator. 'atomic' is the default attribute.
Don't add it to inferred property. // rdar://14988132



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192834 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
803ccc9071a7120b20490ba0f2ca2ed7d9e96c45 16-Oct-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator. Use 'assign' for 'delegate'
properties. // rdar://15231860



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192826 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
b3c71facc346f70fe4958f766ab55bd537229195 15-Oct-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator: Support for more possibility of
migration to NS_ENUM/NS_OPTIONS macros; when
typedef'ed to NSInteger/NSUInteger preceeds well
before of the enum declaration. // rdar://15201056


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192645 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
d2dab64a438b7b8d57f8a10883e107d2bc0988ed 11-Oct-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator. also support migration to
NS_ENUM/NS_OPTIONS macros when typedef declaration
precedes enum declaration. // rdar://15200915


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192506 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
1f9a09d4e50c3e8e622292350823eef776b93e3d 11-Oct-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator: fixes a bug when in NS_ENUM/NS_OPTIONS
migration, the typedef has annotations.
// rdar://15200602


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192468 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
9afabf6020a4a34377311f1cd758675e06464b59 11-Oct-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator. When migrating to NS_ENUM/NS_OPTIONS,
don't leave a blank line behind replacing the typedef
decl. // rdar://15200949


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192407 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
9fcbd5e55a8029a0ca8a5d64457278ec716a8705 10-Oct-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator: For 'default' and 'shared' family of
methods, infer their self's type as their result type.
// rdar://15145218


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192377 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
39ebb02cb0bd342ced56de6d19aa9992aa0371b8 09-Oct-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator. Introduce a new objcmt-atomic-property option
and use it to infer all properties as 'atomic'.
// rdar://14988132


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192317 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
9fe529f15723018a2fecdcc35611210f92ed2b82 09-Oct-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator. Introduce a new print policy for
suppression of strong lifetime qualifiers when
inferring property. // rdar://15082812


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192305 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
372877ef93f7bdfa5f4e48a82922450610c7052f 08-Oct-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator: Add support for inferring
properties of function pointer type.
// rdar://15082812


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192237 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
2d9f38a47c86cd462ee8fa82210f27a8f9e0d2b7 08-Oct-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migration. Add support for inferring
properties of block pointer types. Also, remove
strong lifetime attribute from property type
in this migration. This is wip.
// rdar://15082818


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192226 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
b8941a15b6b5477a81c189614d0129070ac099f1 03-Oct-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator: Add individual options and
enable them for distinct feature migration.
// rdar://15003157


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@191863 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
081099d302b79d1746c7a39da14e3265971eb718 02-Oct-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator. Starting distiguising different
migrations under their own option.
wip and // rdar://15003157


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@191855 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
74fd551c0ba344d62aedc8636ed81b45652f04d8 02-Oct-2013 Fariborz Jahanian <fjahanian@apple.com> Objective-C migrator. Simplify migrator option
processing in preparation for adding several more
options. // rdar://15003157


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@191842 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
6badc76787dc9480fd7c21d3eb75aab79d2df3f5 01-Oct-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator: When doing migration, migrator must suggest
migration of headers which have become system headers by user having put
the .system_framework in the sdk directory.
// rdar://15066802


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@191796 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
9fd802448d463777ed87d56a196b84da1ccdeaa5 28-Sep-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator. Infer property from getters only
if property name is a valid identifier in the underlying
language. // rdar://15044184


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@191584 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
f1ebccd82bbef0547fe1a8d14d2e74e7570be8ab 27-Sep-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator: Donlt annotate NS_RETURNS_INNER_POINTER
on class methods, as it makes no sense. // rdar://15069200


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@191468 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
0d4e06872de210a9f9ed89781ba606ea22fb61b8 26-Sep-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator: function pointer is not an
inner pointer for annotation to
objc_returns_inner_pointer purposes.
// rdar://15044991


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@191465 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
641649faa2a96dc5a2bbfcb9447b680fbedff962 25-Sep-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator. Don't suggest @property for
methods which look like getters but belong to
known family of methods. // rdar://15044058


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@191347 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
bffd89b0b008132550c9a892a745fc1a7932dae4 24-Sep-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator: provide space between the property
keyword and the rest on suggested property. // rdar://15069044



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@191335 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
f85f5e4769730e06590d969ad3cbff879d8006f6 24-Sep-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator: iDOn't mangle names when
NS_RETURNS_INNER_POINTER annotation is suggested on
a property. // rdar://15044991


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@191332 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
ec20b7e1ecb22ee4307da91eb6c0aff65c7271df 24-Sep-2013 Fariborz Jahanian <fjahanian@apple.com> Remove extra space.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@191246 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
635fe065866d0171ac89a94f9f14ed2254de0388 24-Sep-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator. When migrating to property declaration
use Cocoa's naming convention for properties of ObjC
object type. // rdar://15045005


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@191240 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
ff89d06413ff79fb2314b9196fa2508e244159fc 23-Sep-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator: Infer NS_OPTIONS when if there is at
least one hex enumerator, all others are also
hex enumerator (0 enumerator is excepted).
// rdar://15044304


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@191222 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
a346eb1188419d3f1698092edfbd66890b74163c 18-Sep-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator: For consistency, also infer
'instancetype' for known family of methods
with related result type; such as 'init'
methods. // rdar://14987948


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190956 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
f9d38c08bc77da4ebd67fdc7cb4f42da671f7d2b 18-Sep-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator: Infer property in the presense
of methods annotated with attributes.
// rdar://14987909


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190947 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
4667154c4cd7724f751c1c72af0ee05bcf5908da 18-Sep-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator: placing another check for
'deprecated' container before doing the 'instancetype'
inference.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190943 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
bb2405f293c79732748282538198e1d2d0f1b459 18-Sep-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator. infer NS_OPTIONS correctly in the
presense of parenthesized enumerator initializers.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190901 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
9a65f4251fe5548e0b4478d584796ca84a6f5ebc 18-Sep-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator: Don't infer property from
'deprected' setters either. // rdar://14989365


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190894 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
641645f00c22e1f55794537a43646214402e99a1 17-Sep-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator. Ignore migrating 'deprecated'
entities. // rdar://14989365


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190890 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
89ac7412ea3137f22065985c562a3050130e6ca0 17-Sep-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator: Don't infer a property from isXXX method
of retainable object (readonly or otherwise).


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190881 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
9c4759149c80464ca26dcc90c756f439e6640684 17-Sep-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator. Infer property in categories
declared as getter with or without setter method.
// rdar://15010020


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190878 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
bdb5468d36ed64013a0bb12c0ded7f980880be2f 12-Sep-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migration. NS_RETURNS_NOT_RETAINED is the default for
unknown methods which return Cocoa objects. No need to annotate
such methods.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190555 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
e80501ba640fae189d5f944b025a0079ec3c579f 11-Sep-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator. Modify inferred property name
such that it does not lower case the staring property
name if getter name (after "get" prefix) starts with
two upper case letters.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190539 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
a81f102bd396fd1da61b47337a2389f352baf539 11-Sep-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator. methods which look like a getter and
start with "get" are inferreed as a readonly properties.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190532 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
fe4f670935b07eb18d80200e292e08bfe523e417 10-Sep-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator: rename inferred isXXX property,
with a suitable 'getter' attribute.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190420 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
c72b4b396a9b87cf9cdb9958308d82fd32bdb846 10-Sep-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator. Do not infer NS_RETURNS_INNER_POINTER
annotation on methods which return typedef of pointer to
an incomplete struct type.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190372 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
8451a458d65879bb594ee879353658723feda0ee 07-Sep-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator: When inferring a property,
preserve getter's attribute. Also, do not attach
an inferred NS_RETURNS_INNER_POINTER to the inferred
property (it is illegal).


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190223 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
7fd8fb3a513330c9e754a6eec162170d5a979859 06-Sep-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator: tighten the rules for when
inferring NS_RETURNS_RETAINED, etc., return annotations.
Do not infer if these annotations are implicit
from the naming convention. Also add inference for
NS_CONSUMES_SELF annotation.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190106 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
4afe57965e19d9c9ba8070ac9901ed8a20e20fce 05-Sep-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator: start introducing NS_XXX annotations
to Method/functions returning ObjC objects. wip.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190005 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
a7a2a24956a53541acad07583c92747044e5bb95 04-Sep-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator. Refactor last patch on
annotations. (was r189892).


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@189956 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
5f7ac67c84e7b9a04fa4c5065e384f928c8f812f 04-Sep-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator: Cannot use bridging annotations for
ObjectiveC methods. Apply specific annotations for them
instead as determined by the static analyzer.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@189892 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
8a6ad2a21dcb654db25cf66408466d2e7a93e09c 31-Aug-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator: If we find a method that returns a C pointer
of some sort (but not an object, block pointer or CF pointers),
and is not annotated with the objc_returns_inner_pointer attribute,
we should suggest NS_RETURNS_INNER_POINTER annotation for these methods.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@189707 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
c9820ebfeff30598ebd7369c5daf5bde10df934b 30-Aug-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator: infer NS_ENUM even when user
specified NSUInteger as the followup typedef.
With this change, NS_OPTIONS is only inferred
based on looking up how enumerators are speficied
(if they her hexadecimal, power of 2, or have
bitwise constant expressions).


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@189682 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
ad162e912db93be9494ba3ebc12994e51e0b0db2 30-Aug-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator: User of hexadecimal enumerator
should infer migration to NS_OPTIONS.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@189628 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
d0f2921c3211299a80c043a3251e6b34dddba061 29-Aug-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator: remove dead code.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@189592 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
5b98aba1d74184923da32016c3abbc20e9a7686d 29-Aug-2013 Fariborz Jahanian <fjahanian@apple.com> 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.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@189537 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
3c6e5ce3776eaddaf4bcdf5da6c00ec4e6829d83 28-Aug-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator: In suggesting 'instancetype' use clang's
hasRelatedResultType() as it knows of methods which have
related result type by default. Such methods do not need
a redundant 'instancetype'.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@189520 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
c0d1b6aee0046ef5ca87e82dae889589b69dd232 28-Aug-2013 Fariborz Jahanian <fjahanian@apple.com> For methods where clang automatically infers instancetype from the selector
(e.g., all -init* methods), no need to suggest "instancetype" because it
is redundant.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@189514 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
c1cc488c3cf9ce7f7b7e211e891e2be7391e0e5a 28-Aug-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator: minor refactoring of my last
cf annotation patch.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@189420 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
a7f6a94c1bae840c51351cd37cc247ae75f8e649 28-Aug-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator: Do not add explicit cf annotation for
cf functions which are CF_IMPLICIT_BRIDGING_ENABLED.
Add cf annotation to those not CF_IMPLICIT_BRIDGING_ENABLED
to reduce bridge casts.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@189409 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
b78b664213aae4282bee33e421ed03fdec36eb3a 23-Aug-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator: builtin ObjectiveC types are not
audited types.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@189072 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
d76941102f17d5f4e88ef027151c20c95b745c8b 22-Aug-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator: some refactoring to reduce
code size.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@189070 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
d173d7885b6e7b40f2342cbc5aaaaef9c3e6c33b 22-Aug-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator: Provide ARC annotations for
CF methods too.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@189041 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
a178593335e12761d4362eab0eff0c12ad081635 21-Aug-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectibeC migrator. Annotate cf_consumed arguments,
as reported by static analyer API with CF_CONSUMED.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188922 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
8677ccd659c5f997ae9c4758f8e9aac2ae7f4a14 21-Aug-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator: until we have beter understanding of
setter/getter implementations, migrate them to
nonatomic properties.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188914 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
0f793587e1a40431e4d47157e913f354dd9cb159 21-Aug-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator. make sure to embed audited
candidate functions in their CF_IMPLICIT_BRIDGING_ENABLED
pragma before exiting the header file.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188846 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
dead50d347e9517d80f007a93df6295f66aa0f00 21-Aug-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator: make sure audited pragams are
dumped for last declarations in the current TU. wip.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188838 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
e89bad5fbd3746be1b4b0d4461a66791baaea3db 20-Aug-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator: More tweaking of heuristics
for an audited cf function to not include those
which are annotated by user.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188823 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
a46c6c3baa0bb24987b44ac7a5543fa60e8b639e 20-Aug-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator: More tweaking of heuristics
for an audited cf function and addition of
a test case.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188816 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
f0dd853bb1e8f3e59b169e6d34a8556c6003c47c 20-Aug-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator: More work towards
insertion of ObjC audit pragmas.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188733 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
3abb729514e871b46e0f03855fd686009f3b22b9 20-Aug-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator: Start inserting
CF_IMPLICIT_BRIDGING_ENABLE/CF_IMPLICIT_BRIDGING_DISABLED
pair. wip.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188714 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
6cb33a4e9e8298dfa4a8aa33ccc34ce68580f234 19-Aug-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator. Start auditing CF functions
for possible use of CF_IMPLICIT_BRIDGING_ENABLE
pragma.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188691 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
57c372a674beee5054a57026de46c280df1df577 17-Aug-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator: Add some more routines
for future work. No change otherwise.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188591 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
269cca13cdafab34073158476de0391d1839ecd3 15-Aug-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator. Start annotating CF functions
with CF_RETURNS_RETAINED/CF_RETURNS_NOT_RETAINED as
appropriate.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188493 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
83c746a20b920b3b9b4d6321f14ec0f766d2561c 15-Aug-2013 Fariborz Jahanian <fjahanian@apple.com> Fixes a gross conditional in my last patch.
- This line, and those below, will be ignored--

M lib/ARCMigrate/ObjCMT.cpp


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188473 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
0b5941c2a6ce99f0dc0dc8b64024eeabbbb6db1d 15-Aug-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator: In deciding NS_OPTION over
NS_ENUM, at least one power of 2 enumerator
must be greater than two.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188470 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
086d565d2d3b8e72f95492d3a2cefd09e1718f2a 13-Aug-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator: Fixes a crash and makes couple
of harmless changes.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188303 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
46f4fd5938b0ff4ebbb83ba1df225f73d640613d 13-Aug-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migration. Add couple of routine
, currently unused, for future cf-annotation work.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188224 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
f1f3e0516db0436be78ab7e6bbf1b0ba5d8348c9 08-Aug-2013 Fariborz Jahanian <fjahanian@apple.com> unbreak buildbot on Windows.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188018 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
1197c6586a401bac20ca843f409916a215fd14df 08-Aug-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator: tighten rule about when to
migrate to @property with getter name starting with
'is'.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188013 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
a9226496cd394efe36f1a774cf58e5a7f3eefd64 08-Aug-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migration: Handle another special case of
setter/getter methods which can be migrated to
a @property.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188005 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
fa45cb3bf95a10d6c3b1ab55d60dae28e8a57cf4 06-Aug-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migration: tweak setting of lifetime attribute
on @property migration. Don't set unsafe_unretained
on non-object properties. Set 'retain' on strong
properties. Makecertain properties with specific
names unsafe_unretained as well.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@187810 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
c217ced5ada5c5723bfca450b37ac046193a8c2f 03-Aug-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator. Differentiate 'instancetype'
from 'id' result type when deciding on migration
to instancetype.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@187684 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
8d3794e06a63578093bd71c3c2520bd01e6197a3 02-Aug-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator: Add another family of factory
methods which can be migrated to instancetype.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@187672 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
f647b69147c6e640bbccf501783fafc495bbefb2 02-Aug-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator: Fixes public buildbot failures,
in my previous patch which was reverted in r187657


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@187661 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
6803dbe1ec26539395951b75acbe595ad3e8cc8e 02-Aug-2013 Fariborz Jahanian <fjahanian@apple.com> revert patch I added in r187655. It still breaks public
buildbot.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@187657 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
906c7f78ee9026c1dc40e062667341f1dd194959 02-Aug-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migration. Check-in patch reverted in r187634.
Also removed check for "NS" prefix for class name.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@187655 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
cd683986e991f0e60afd6bc6f336cfc1fd844193 02-Aug-2013 Rafael Espindola <rafael.espindola@gmail.com> Revert "ObjectiveC migrator. Migrate to instancetype return type for mehods with certain prefix selector matching their class names' suffix."

This reverts commit r187626.

It is breaking the bots.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@187634 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
59944677b0576c19a08db92a6b45619077a00baa 02-Aug-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator. Migrate to instancetype return type
for mehods with certain prefix selector matching their class names'
suffix.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@187626 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
65f1a4c931bc17e51c751a5e9c6a71a9e52d5b8c 24-Jul-2013 Fariborz Jahanian <fjahanian@apple.com> Objective-C migrator: some cleanup.
Expose static type of init/alloc/retain with
instance type as well. Ad-hoc cases are coming
next.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@187068 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
5e151c507d7a939a10499ca6a4482b9d6dbfed99 24-Jul-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migration: Method candidates for
migrating to instancetype can have implicit 'id'
type too.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@187062 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
211b4a2b2260ba5a3150f2b8d47f569e9773b1d3 24-Jul-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migration: more migration to
instancetype of NSDictionary methods.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@187008 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
26cf046ff3a2d24ff3e2c3757599976b644a06da 24-Jul-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator: start migrating to
instancetype methods.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@187004 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
11638f7b922aa0182ab2028ec819001ed2fe8085 24-Jul-2013 Fariborz Jahanian <fjahanian@apple.com> ObjC migrator: more knobs toward doing
instancetype migration.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@187000 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
34cb2a3ed535eebed87d1118e89d006eb324e156 23-Jul-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migration. Better handle migration to conforming
protocols by ignoring cases where all protocol properties
and methods are optional.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@186895 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
e3069e231eeeafeaef6078bc585c82dc6a1830e2 22-Jul-2013 Fariborz Jahanian <fjahanian@apple.com> Objective-C migration: Use NS_OPTIONS when enumerators
have shift/bitwise operators or are power of 2.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@186856 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
faae53d1cec325140a548c8e9ff647b7edb43702 19-Jul-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator: Another use case of enum
declaration which can be migrated to NS_ENUM.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@186716 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
72685630b693c0ba6050875128ff6bb18107ba2f 19-Jul-2013 Fariborz Jahanian <fjahanian@apple.com> Fixes an ObjC migrator crash when last decl
in file is an enum.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@186700 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
9f9e54390c255587b009d912007b139432ab7bdc 19-Jul-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator: add support to migrate to
NS_OPTIONS.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@186641 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
44b41b12a44d74341fe7d241bfdf57847b728a62 19-Jul-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator: Remove semicolon after the typedef
declaration when converting to NS_ENUM. This required
some code refactoring.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@186619 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
bbbb0fe4f466d3163fcbf0a64ebf0f5868833efb 18-Jul-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migration. migration to NS_ENUM/SN_OPTION
- wip.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@186604 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
e8280188f7245e479418a716c3959f66b48ef64a 17-Jul-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator: When adding conforming protocol,
only add outer-most conforming protocols as adding
others are redundant.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@186473 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
8d8bfb3e52567b86add4bfa931023f2e2a291499 16-Jul-2013 Fariborz Jahanian <fjahanian@apple.com> ObjectiveC migrator. If a class implements a protocol's
properties, then class conforms to that protocol.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@186460 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
8c355831ac3c9e8c12b23ca69b7587dcbd0439ef 16-Jul-2013 Fariborz Jahanian <fjahanian@apple.com> ObjC migrator: build conforming interface
declaration (not yet used). wip.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@186369 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
ad4aaf11897cc5e9d443b0a80114daacf385f6df 15-Jul-2013 Fariborz Jahanian <fjahanian@apple.com> ObjC migrator: finding conforming protocol
candidates for each class. wip.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@186349 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
bf13df238a82659c0b6363541a84f09bc997fb86 13-Jul-2013 Fariborz Jahanian <fjahanian@apple.com> Fixes a typo caught by Arthur O'Dwyer



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@186249 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
e99b37c8f271814ba63046bbde9af0c68e7a26c9 13-Jul-2013 Fariborz Jahanian <fjahanian@apple.com> ObjC migrator: More knobs for migrating
conforming protocols to each class. wip.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@186231 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
7556853c60f3e2a3f43864d8ebe74ba5ac11e68e 13-Jul-2013 Fariborz Jahanian <fjahanian@apple.com> ObjC migrator: early work for migrating implicitly conforming
protocols to classes. This is wip.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@186220 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
d412999a3da6387dbfaf00f7647132082e94310e 09-Jul-2013 Fariborz Jahanian <fjahanian@apple.com> 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
/external/clang/lib/ARCMigrate/ObjCMT.cpp
2a4ebcfe8b5920ca35924359135f3c5ddca7b171 09-Jul-2013 Fariborz Jahanian <fjahanian@apple.com> ObjC migration: Skip over setter/getter with attributes
for now.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@185879 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
1921b58a2aba4f5073d6634d476356b6a4ff8815 08-Jul-2013 Fariborz Jahanian <fjahanian@apple.com> [Objective-C migrator] replace candidate user setter/getter with
their equivalent property declaration. wip.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@185873 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
afcb16f9cff8d5ccd57a6386d65ddc055368d0bc 05-Jul-2013 Fariborz Jahanian <fjahanian@apple.com> [objc migrator]: More knobs to do migration to
use of objc's properties.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@185724 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
52477fb1b86f99a2a8c77e1523d4f186490c28e9 04-Jul-2013 Fariborz Jahanian <fjahanian@apple.com> [ObjectiveC migrator] relax the rules for setter/getter
types when deciding on validity of a property
inclusion. // rdar://14345082


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@185599 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
dca7289799517c3eee1765a174984f2ecffad0f1 04-Jul-2013 Fariborz Jahanian <fjahanian@apple.com> Minor refactoring of my last patch.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@185593 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
baf15574ebe70871b4682cdd5a87028bad1c9f6f 04-Jul-2013 Fariborz Jahanian <fjahanian@apple.com> [ObjectiveC Migration]: Provide knobs for
migrating setter/getter methods to an eventual
property declaraiton. This is wip.
// rdar://14345082


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@185591 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
a44b97004298a4eb7c270009ea4cb12aad49c543 17-Jan-2013 Argyrios Kyrtzidis <akyrtzi@gmail.com> [objcmt] Rewrite a NSDictionary dictionaryWithObjects:forKeys: to a dictionary literal
if we can see the elements of the arrays.

for example:

NSDictionary *dict = [NSDictionary dictionaryWithObjects:[NSArray arrayWithObjects:@"1", @"2", nil] forKeys:[NSArray arrayWithObjects:@"A", @"B", nil]];

-->

NSDictionary *dict = @{ @"A" : @"1", @"B" : @"2" };

rdar://12428166

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172679 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
cfa88f893915ceb8ae4ce2f17c46c24a4d67502f 12-Jan-2013 Dmitri Gribenko <gribozavr@gmail.com> Remove useless 'llvm::' qualifier from names like StringRef and others that are
brought into 'clang' namespace by clang/Basic/LLVM.h


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172323 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
55fc873017f10f6f566b182b70f6fc22aefa3464 04-Dec-2012 Chandler Carruth <chandlerc@gmail.com> Sort all of Clang's files under 'lib', and fix up the broken headers
uncovered.

This required manually correcting all of the incorrect main-module
headers I could find, and running the new llvm/utils/sort_includes.py
script over the files.

I also manually added quite a few missing headers that were uncovered by
shuffling the order or moving headers up to be main-module-headers.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@169237 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
37ed12720a35b7bfa1c4de73ad6f1c6c1c88ee17 04-Dec-2012 Argyrios Kyrtzidis <akyrtzi@gmail.com> Refactor recording the preprocessor conditional directive regions out of
PreprocessingRecord and into its own class, PPConditionalDirectiveRecord.

Decoupling allows a client to use the functionality of PPConditionalDirectiveRecord
without needing a PreprocessingRecord.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@169229 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
305c613af6cfc40e519c75d9d2c84c6fa9a841c0 01-Sep-2012 Ted Kremenek <kremenek@apple.com> Split library clangRewrite into clangRewriteCore and clangRewriteFrontend.
This is similar to how we divide up the StaticAnalyzer libraries to separate
core functionality to what is clearly associated with Frontend actions.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@163050 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
471c8b49982d1132f30b0b0da27fef94fd6e4f67 04-Jul-2012 Benjamin Kramer <benny.kra@googlemail.com> Drop the ASTContext.h include from DeclFriend.h and DeclTemplate.h.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159723 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
013a254a5b85cfb54066e4022649368689c9ab06 24-May-2012 Argyrios Kyrtzidis <akyrtzi@gmail.com> [objcmt] Warn when modern objc migrator does not convert a NSNumber message because it requires a cast.

rdar://11525138

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157395 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
4e4d08403ca5cfd4d558fa2936215d3a4e5a528d 11-Mar-2012 David Blaikie <dblaikie@gmail.com> Unify naming of LangOptions variable/get function across the Clang stack (Lex to AST).

The member variable is always "LangOpts" and the member function is always "getLangOpts".

Reviewed by Chris Lattner

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152536 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp
30660a898545416f0fea2d717f16f75640001e38 06-Mar-2012 Ted Kremenek <kremenek@apple.com> Add new code migrator support for migrating existing Objective-C code to use
the new Objective-C NSArray/NSDictionary/NSNumber literal syntax.

This introduces a new library, libEdit, which provides a new way to support
migration of code that improves on the original ARC migrator. We now believe
that most of its functionality can be refactored into the existing libraries,
and thus this new library may shortly disappear.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152141 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/lib/ARCMigrate/ObjCMT.cpp