summaryrefslogtreecommitdiffstats
path: root/clang/lib/ARCMigrate
Commit message (Collapse)AuthorAgeFilesLines
...
* ObjectiveC migrator: until we have beter understanding ofFariborz Jahanian2013-08-211-15/+11
| | | | | | | setter/getter implementations, migrate them to nonatomic properties. llvm-svn: 188914
* ObjectiveC migrator. make sure to embed auditedFariborz Jahanian2013-08-201-6/+15
| | | | | | | candidate functions in their CF_IMPLICIT_BRIDGING_ENABLED pragma before exiting the header file. llvm-svn: 188846
* ObjectiveC migrator: make sure audited pragams areFariborz Jahanian2013-08-201-29/+38
| | | | | | dumped for last declarations in the current TU. wip. llvm-svn: 188838
* ObjectiveC migrator: More tweaking of heuristicsFariborz Jahanian2013-08-201-5/+10
| | | | | | | for an audited cf function to not include those which are annotated by user. llvm-svn: 188823
* ObjectiveC migrator: More tweaking of heuristicsFariborz Jahanian2013-08-201-15/+29
| | | | | | | for an audited cf function and addition of a test case. llvm-svn: 188816
* ARCMigrate depends on the static analyzer.Benjamin Kramer2013-08-201-0/+1
| | | | llvm-svn: 188792
* ObjectiveC migrator: More work towardsFariborz Jahanian2013-08-201-1/+9
| | | | | | insertion of ObjC audit pragmas. llvm-svn: 188733
* ObjectiveC migrator: Start insertingFariborz Jahanian2013-08-191-9/+30
| | | | | | | CF_IMPLICIT_BRIDGING_ENABLE/CF_IMPLICIT_BRIDGING_DISABLED pair. wip. llvm-svn: 188714
* ObjectiveC migrator. Start auditing CF functionsFariborz Jahanian2013-08-191-41/+53
| | | | | | | for possible use of CF_IMPLICIT_BRIDGING_ENABLE pragma. llvm-svn: 188691
* ObjectiveC migrator: Add some more routinesFariborz Jahanian2013-08-161-11/+62
| | | | | | for future work. No change otherwise. llvm-svn: 188591
* ObjectiveC migrator. Start annotating CF functionsFariborz Jahanian2013-08-151-0/+23
| | | | | | | with CF_RETURNS_RETAINED/CF_RETURNS_NOT_RETAINED as appropriate. llvm-svn: 188493
* Fixes a gross conditional in my last patch.Fariborz Jahanian2013-08-151-1/+1
| | | | | | | | - This line, and those below, will be ignored-- M lib/ARCMigrate/ObjCMT.cpp llvm-svn: 188473
* ObjectiveC migrator: In deciding NS_OPTION overFariborz Jahanian2013-08-151-3/+8
| | | | | | | NS_ENUM, at least one power of 2 enumerator must be greater than two. llvm-svn: 188470
* ObjectiveC migrator: Fixes a crash and makes coupleFariborz Jahanian2013-08-131-6/+19
| | | | | | of harmless changes. llvm-svn: 188303
* ObjectiveC migration. Add couple of routineFariborz Jahanian2013-08-121-1/+23
| | | | | | , currently unused, for future cf-annotation work. llvm-svn: 188224
* [arcmt] When handling unbridged casts, handle the body of BlockDecl ↵Argyrios Kyrtzidis2013-08-091-0/+7
| | | | | | | | | | separately because ParentMap does not record Stmt parent nodes inside a BlockDecl. Fixes rdar://14686900 llvm-svn: 188101
* unbreak buildbot on Windows.Fariborz Jahanian2013-08-081-1/+1
| | | | llvm-svn: 188018
* ObjectiveC migrator: tighten rule about when toFariborz Jahanian2013-08-081-2/+2
| | | | | | | migrate to @property with getter name starting with 'is'. llvm-svn: 188013
* ObjectiveC migration: Handle another special case ofFariborz Jahanian2013-08-081-18/+65
| | | | | | | setter/getter methods which can be migrated to a @property. llvm-svn: 188005
* ObjectiveC migration: tweak setting of lifetime attributeFariborz Jahanian2013-08-061-19/+30
| | | | | | | | | 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. llvm-svn: 187810
* ObjectiveC migrator. Differentiate 'instancetype'Fariborz Jahanian2013-08-021-1/+3
| | | | | | | from 'id' result type when deciding on migration to instancetype. llvm-svn: 187684
* ObjectiveC migrator: Add another family of factory Fariborz Jahanian2013-08-021-7/+23
| | | | | | methods which can be migrated to instancetype. llvm-svn: 187672
* ObjectiveC migrator: Fixes public buildbot failures,Fariborz Jahanian2013-08-021-17/+68
| | | | | | in my previous patch which was reverted in r187657 llvm-svn: 187661
* revert patch I added in r187655. It still breaks publicFariborz Jahanian2013-08-021-64/+17
| | | | | | buildbot. llvm-svn: 187657
* ObjectiveC migration. Check-in patch reverted in r187634.Fariborz Jahanian2013-08-021-17/+64
| | | | | | Also removed check for "NS" prefix for class name. llvm-svn: 187655
* Revert "ObjectiveC migrator. Migrate to instancetype return type for mehods ↵Rafael Espindola2013-08-021-63/+17
| | | | | | | | | | with certain prefix selector matching their class names' suffix." This reverts commit r187626. It is breaking the bots. llvm-svn: 187634
* ObjectiveC migrator. Migrate to instancetype return typeFariborz Jahanian2013-08-011-17/+63
| | | | | | | for mehods with certain prefix selector matching their class names' suffix. llvm-svn: 187626
* Objective-C migrator: some cleanup.Fariborz Jahanian2013-07-241-9/+8
| | | | | | | | Expose static type of init/alloc/retain with instance type as well. Ad-hoc cases are coming next. llvm-svn: 187068
* ObjectiveC migration: Method candidates for Fariborz Jahanian2013-07-241-4/+12
| | | | | | | migrating to instancetype can have implicit 'id' type too. llvm-svn: 187062
* ObjectiveC migration: more migration toFariborz Jahanian2013-07-231-3/+16
| | | | | | instancetype of NSDictionary methods. llvm-svn: 187008
* ObjectiveC migrator: start migrating toFariborz Jahanian2013-07-231-4/+12
| | | | | | instancetype methods. llvm-svn: 187004
* ObjC migrator: more knobs toward doingFariborz Jahanian2013-07-231-0/+41
| | | | | | instancetype migration. llvm-svn: 187000
* ObjectiveC migration. Better handle migration to conformingFariborz Jahanian2013-07-221-4/+10
| | | | | | | protocols by ignoring cases where all protocol properties and methods are optional. llvm-svn: 186895
* Objective-C migration: Use NS_OPTIONS when enumeratorsFariborz Jahanian2013-07-221-11/+42
| | | | | | have shift/bitwise operators or are power of 2. llvm-svn: 186856
* [arcmt] Only disable ARC in the second compilation if there were actually ↵Argyrios Kyrtzidis2013-07-221-10/+21
| | | | | | | | ARC errors in the checking phase. rdar://14490204 llvm-svn: 186850
* ObjectiveC migrator: Another use case of enumFariborz Jahanian2013-07-191-3/+32
| | | | | | declaration which can be migrated to NS_ENUM. llvm-svn: 186716
* [arcmt] After checking is successful disable auto-synthesize to avoid ↵Argyrios Kyrtzidis2013-07-191-0/+3
| | | | | | | | | | "@synthesize of 'weak' property is only allowed in ARC" errors. rdar://14461559 llvm-svn: 186709
* Fixes an ObjC migrator crash when last declFariborz Jahanian2013-07-191-3/+4
| | | | | | in file is an enum. llvm-svn: 186700
* ObjectiveC migrator: add support to migrate toFariborz Jahanian2013-07-191-5/+12
| | | | | | NS_OPTIONS. llvm-svn: 186641
* ObjectiveC migrator: Remove semicolon after the typedefFariborz Jahanian2013-07-181-4/+101
| | | | | | | declaration when converting to NS_ENUM. This required some code refactoring. llvm-svn: 186619
* ObjectiveC migration. migration to NS_ENUM/SN_OPTIONFariborz Jahanian2013-07-181-0/+27
| | | | | | - wip. llvm-svn: 186604
* ObjectiveC migrator: When adding conforming protocol,Fariborz Jahanian2013-07-171-1/+22
| | | | | | | only add outer-most conforming protocols as adding others are redundant. llvm-svn: 186473
* [arcmt] Remove some dead code.Argyrios Kyrtzidis2013-07-161-27/+14
| | | | | | Patch by Rafael Espíndola. llvm-svn: 186462
* ObjectiveC migrator. If a class implements a protocol'sFariborz Jahanian2013-07-161-9/+14
| | | | | | properties, then class conforms to that protocol. llvm-svn: 186460
* Update for llvm API change.Rafael Espindola2013-07-161-2/+2
| | | | llvm-svn: 186448
* ObjC migrator: build conforming interfaceFariborz Jahanian2013-07-161-1/+16
| | | | | | declaration (not yet used). wip. llvm-svn: 186369
* ObjC migrator: finding conforming protocolFariborz Jahanian2013-07-151-2/+44
| | | | | | candidates for each class. wip. llvm-svn: 186349
* Fixes a typo caught by Arthur O'DwyerFariborz Jahanian2013-07-131-2/+2
| | | | llvm-svn: 186249
* ObjC migrator: More knobs for migratingFariborz Jahanian2013-07-131-3/+19
| | | | | | conforming protocols to each class. wip. llvm-svn: 186231
* ObjC migrator: early work for migrating implicitly conformingFariborz Jahanian2013-07-121-1/+30
| | | | | | protocols to classes. This is wip. llvm-svn: 186220
OpenPOWER on IntegriCloud