Commit Graph

26 Commits

Author SHA1 Message Date
Jordan Rose
6163679538 [APINotes] Replace old FactoryAsInit annotation with equivalent SwiftNames.
'processInfo' was removed entirely because it's now considered a class property,
and we don't ever import those as initializers.
2016-10-14 09:07:43 -07:00
Mishal Shah
d28ff854b9 Update master to build with Xcode 8 beta 4, OS X 10.12, iOS 10, tvOS 10, and watchOS 3 SDKs. 2016-08-02 11:47:10 -07:00
Jordan Rose
1af013337d [API notes] One more zero-valued option set entry for UIKit. (#3499)
rdar://problem/27115143
2016-07-13 17:02:23 -07:00
Mishal Shah
23b646eed2 Update master to build with Xcode 8 beta 2, OS X 10.12, iOS 10, tvOS 10, and watchOS 3 SDKs 2016-07-06 10:48:45 -07:00
Mishal Shah
87b7bcfd3e Update master to build with Xcode 8 beta 1, OS X 10.12, iOS 10, tvOS 10, and watchOS 3 SDKs. 2016-06-14 14:53:55 -07:00
Jordan Rose
5619b5dd44 [apinotes] Remove information that has been migrated into the SDKs.
I'll be filing Radars for the rest of these. (Some of them already have them.)

rdar://problem/19003559&19756368&20276854

Swift SVN r29324
2015-06-05 23:02:17 +00:00
Anna Zaks
57cac6a9fd [apinotes] Mark UIView's motionEffects as optional for backward compatibility.
Swift SVN r25016
2015-02-05 21:11:50 +00:00
Anna Zaks
c2a7613612 [API Notes] Address outstanding nullability issues + new audited pieces
<rdar://problem/17902944> UIView's motionEffects property should never return 'nil'
<rdar://problem/17971360> [factor-init] SKPhysicsJointPin's factory method is not converted to a Swift API initializer
<rdar://problem/18553910> #IUO UICollectionViewUpdateItem properties
<rdar://problem/18875692> NSEntityDescription subentities/subentitiesByName should be marked optional
<rdar://problem/18919879> Swift: NSTableView's preparedCellAtColumn(_:row:) should return an optional
<rdar://problem/18940072> NSPredicate's init(format:) should not be optional
<rdar://problem/18987481> NSURLRequest without NSURL crashes Swift
<rdar://problem/19034448> UIPrintInfo’s -init is banned, should use +printInfo
<rdar://problem/19147412> NSUserInterfaceItemIdentification declares identifier as a non-optional String and it should be optional or IUO
<rdar://problem/19347931> Declaration of a parameter in Cocoa API in Swift is wrong (NSDateFormatter)
+ additions to the WatchKit audit

+ additions to HealthKit and HomeKit.

Swift SVN r24630
2015-01-22 03:29:07 +00:00
Greg Parker
bf88270ff8 Remove literal tab characters from an apinotes file.
Swift SVN r24565
2015-01-20 21:06:55 +00:00
Jordan Rose
09fb741f17 Prevent +[UIPrintInfo printInfo] from being imported as an initializer.
...because -[UIPrintInfo init] throws an exception saying not to call it
directly.

rdar://problem/19034448

Swift SVN r24561
2015-01-20 20:41:58 +00:00
Anna Zaks
9064df226a [apinotes] Add fresh API audit drop.
Here, we mark the null_resettable properties as explicit "U".
Fixed UIColor and NSColor's initWithCGColor as returning an optional (radar://18420272)
Fixed fontDescriptorWithSymbolicTraits (rdar://problem/18812268)
Contains audit for NSXMLParserDelegate (rdar://problem/18227344)
+ a few other newly audited APIs

Swift SVN r23698
2014-12-05 00:16:08 +00:00
Anna Zaks
9c8f0df56d [API Notes] Mark window in supportedInterfaceOrientationsForWindow as optional.
Swift SVN r23160
2014-11-07 18:45:16 +00:00
Anna Zaks
e7e455a74a [API Notes] Fix several mis-audits.
See radar://18903832

Swift SVN r23155
2014-11-07 02:53:00 +00:00
Anna Zaks
4bd1dbd6bd API Notes: correct more mis-audits
radar://18240916 (NSFetchedResultsSectionInfo : name)
  radar://18495314 (UITableViewController  initWithStyle)
  radar://18406277 (UIViewController transitionFromViewController:toViewController:duration:options:animations:completion:)
  radar://18480210 (UITableViewCell textLabel, UITableViewCell imageView)
  radar://18481291 (NSManagedObjectModel mergedModelFromBundles:forStoreMetadata:)
  radar://18508088 (UICollectionView indexPathsForSelectedItems)
  radar://18447872 (NSDocumentController closeAllDocumentsWithDelegate:didCloseAllSelector:contextInfo:
                    NSDocument
                       autosaveDocumentWithDelegate:didAutosaveSelector:contextInfo:
                       duplicateDocumentWithDelegate:didDuplicateSelector:contextInfo:
                    NSViewController
                       commitEditingWithDelegate:didCommitSelector:contextInfo:)
   UIViewController
     segueForUnwindingToViewController:fromViewController:identifier:

Swift SVN r22633
2014-10-09 20:23:26 +00:00
Anna Zaks
27116c7aad API Notes: Correct audit errors
- Mark more initializers as non-optional.
    <rdar://problem/18559511> Audit the list of UIKit symbols that marked as returning optional
    <rdar://problem/18559660> Audit the list of AppKit symbols that marked as returning optional
    <rdar://problem/18559676> Audit the list of Foundation symbols that marked as returning optional
    <rdar://problem/18559730> Audit the list of Scenekit symbols that marked as returning optional
 - NSMenu.popUpMenuPositioningItem (radar://18505688)
 - Remove NSXMLParserDelegate audit since it leads to crashes (radar://18227344)
 - UICollectionViewController collectionView should not be optional (radar://18508177)

Swift SVN r22570
2014-10-07 21:24:16 +00:00
Anna Zaks
505257ae9b API Notes: This contains audit for most of AppKit!
Plus, smaller enhancements on the other frameworks.
Removes the need for _PrintableNSObjectType hack (rdar://problem/16883288)

Swift SVN r22185
2014-09-22 21:47:22 +00:00
Anna Zaks
61df57ea77 API Notes: Corrections to Foundation and UIKit
Swift SVN r21795
2014-09-09 01:47:04 +00:00
Anna Zaks
3997db5349 API Notes: Commit API Notes v13 (with copyWithZone returning N)
This drop adds 3 new frameworks: Metal, SceneKit, and SpriteKit.
The other frameworks (Foundation, CoreData, ObjectiveC, UIKit) have been refined:
 - conflicting items went to unknowns,
 - bugs got fixed,
 - more auditing has been performed.

Swift SVN r21443
2014-08-25 20:31:21 +00:00
Anna Zaks
14355baf7f API Notes File: 3d drop of Foundation, CoreData, UIKit
At this point, most of these frameworks have been fully audited.

Swift SVN r21318
2014-08-20 21:15:31 +00:00
Anna Zaks
b0ec16397f API Notes: Mark UIView's notionEffects as optional.
The getter can return 'nil'. Though, it is not clear if that is a bug in UIKit or not.

Swift SVN r20857
2014-07-31 22:38:25 +00:00
Anna Zaks
14542a7919 API Notes: Incorporate framework authors' feedback on UIFont
radar://17833719

Swift SVN r20806
2014-07-31 02:48:26 +00:00
Anna Zaks
77f28379b0 API Notes: incorporate Kuba's feedback on UIView
Swift SVN r20805
2014-07-31 02:48:26 +00:00
Anna Zaks
5a05388cc1 API Notes: incorporate feedback from DevPubs.
A couple of corrections + several disambiguations.

Swift SVN r20775
2014-07-30 21:05:47 +00:00
Anna Zaks
a8cb45a269 API Notes: add UIView + a couple of corrections to UIKit audit.
The corrections are:
 - Change the UIFont's API from '?' to '!'. These APIs are almost never get checked.
 - Change the "options" array parameter to being optional.

Swift SVN r20723
2014-07-29 23:47:11 +00:00
Anna Zaks
1866c660bc Mark the UIKit and AppKit classes as completely audited for nullability.
As well as add the missing pieces to them.

Swift SVN r20462
2014-07-24 03:16:55 +00:00
Doug Gregor
d347e93993 API notes: Add a CMake option to build the compiled API notes files from YAML sources.
Introduce a new off-by-default CMake option, SWIFT_BUILD_API_NOTES,
which compiles the YAML sources for API notes into the binary form
installed alongside the overlays. This will be the default mode,
replacing KnownObjCMethods.def, shortly.

The new apinotes/ subdirectory contains the translated contents of
KnownObjCMethods.def, courtesy of Anna. It still requires some
revision.

Swift SVN r20370
2014-07-23 04:23:51 +00:00