Commit Graph

185 Commits

Author SHA1 Message Date
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
1952296547 API Notes: Add WebKit audit
Swift SVN r22569
2014-10-07 21:24:11 +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
9e5003e668 API Notes: Mark dispatch_retain and dispatch_release as unavailable.
Swift SVN r22091
2014-09-18 18:51:52 +00:00
Anna Zaks
c61280cf35 API Notes: Mark several APIs as unavailable.
- Make NSZone functions unavailable radar://16688847
 - Distributed Objects subsystem should not be imported into Swift radar://16689104
 - NSCalendarDate is available in Swift, but deprecated radar://16689207
 - Do not import NSMethodSignature class and related methods radar://16689329
 - NSInvocationOperation should be unavailble in Swift radar://17921785

Swift SVN r22090
2014-09-18 18:51:51 +00:00
Anna Zaks
61df57ea77 API Notes: Corrections to Foundation and UIKit
Swift SVN r21795
2014-09-09 01:47:04 +00:00
Doug Gregor
37db85ae8f -[NSData initWithBase64EncodedString:options:] can return nil
Swift SVN r21727
2014-09-04 23:06:57 +00:00
Doug Gregor
eaefb5e2b0 String's NSString API: Replace factory methods with failable initializers.
Addresses rdar://problem/18225788.


Swift SVN r21710
2014-09-04 17:21:33 +00:00
Doug Gregor
cc31f9bae0 Temporarily fix nullability of -[NSData initWithBase64EncodedString:options].
This keeps our own test cases running; the actual fix is tracked by
rdar://problem/18230185.


Swift SVN r21708
2014-09-04 16:10:41 +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
fa6c359842 API Notes File: Add notes fro Objective C framework
Note that isEqual: has been audited to take an optional parameter.

Swift SVN r21317
2014-08-20 21:15:25 +00:00
Anna Zaks
c519ecfe4f API Notes File: The product of the 2d nullability audit of Foundation.
As well as the required test/stdlib modifications.

Swift SVN r21181
2014-08-13 19:39:59 +00:00
Anna Zaks
ca03e527c3 API Notes File: Add the notes generated as the product of the first nullability audit of Foundation
As well as the required test modifications.

Swift SVN r21126
2014-08-09 01:40:48 +00:00
Jordan Rose
73cce9702e [CMake] Remove the CMakeLists file from apinotes/.
Also, move the ObjectiveC overlay into its own directory, so that we can
use the directory name as an indicator of what overlays exist.

This is in preparation for DevPubs providing the contents of the apinotes/
directory. The downside here is that adding new apinotes files doesn't
automatically trigger a rebuild; I intend to mitigate that somewhat by at
least triggering one when the revision number of the DevPubs repo changes.

Swift SVN r21078
2014-08-06 23:07:24 +00:00
Anna Zaks
c17fd1a586 API Notes: Add availability info to global variables and global functions.
Swift SVN r21029
2014-08-04 23:49:14 +00:00
Jordan Rose
9b07f35cc0 Audit NSDictionary's subscript.
This requires a bit of special handling because we override the getter's type
in the importer, to make sure it's compatible with the setter, but other than
that we just use the information from the apinotes file.

<rdar://problem/17891179>

Swift SVN r21027
2014-08-04 23:16:53 +00:00
Doug Gregor
cf09436166 Keep +[GKLocalPlayer localPlayer] as a factory method.
The -init initializer does something different. <rdar://problem/17167589>

Swift SVN r21010
2014-08-04 15:14:13 +00:00
Dmitri Hrybenko
edc664c36f stdlib/NSString APIs on String: change return type of
stringByAddingPercentEncodingWithAllowedCharacters() and
stringByAddingPercentEscapesUsingEncoding() to String?, and add API notes for
NSString to the same effect


Swift SVN r21007
2014-08-04 14:13:46 +00:00
Anna Zaks
782ecab50a API Notes: Teach Clang Importer about nullability of globals and functions
Swift SVN r20941
2014-08-02 01:55:18 +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
Doug Gregor
413ded0f30 Update apinotes README with the -target option.
Swift SVN r20512
2014-07-24 20:17:46 +00:00
Doug Gregor
0ad6ad65c8 API notes: add a "Required" field for Objective-C methods.
This allows us to express required initializers in the API notes. Use
it to smooth over NSString differences in the various SDKs even more.

Swift SVN r20511
2014-07-24 20:14:48 +00:00
Doug Gregor
64e73744bd Mark NSString's designated initializers.
Different SDKs have different beliefs on what NSString's designated
initializers are. Use API notes to smooth over the differences.


Swift SVN r20498
2014-07-24 17:16:36 +00:00
Anna Zaks
ddaa294eca API notes: turn FactoryAsInit into 3-state on YAML side.
Swift SVN r20463
2014-07-24 03:16:58 +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
c2b5703865 API notes: rework CMake support so that we can separate the API notes sources.
Move all of the information about API notes into the "apinotes"
subdirectory, which specifies the API notes that it provides. The
organization is such that "apinotes" can become its own separate
repository, and the compiler build will pick up those API notes that
are available and build them along with the overlays.

Swift SVN r20406
2014-07-23 16:09:49 +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