History log of /external/clang/lib/ARCMigrate/ObjCMT.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
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