Skip to content

[APINotes] Replace old FactoryAsInit annotation with equivalent SwiftNames. #5285

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 14, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions apinotes/Foundation.apinotes
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ Classes:
Methods:
- Selector: 'notificationCenterForType:'
MethodKind: Class
FactoryAsInit: C
SwiftName: 'forType(_:)'
- Name: NSHTTPCookie
SwiftName: HTTPCookie
- Name: NSHTTPCookieStorage
Expand Down Expand Up @@ -209,10 +209,6 @@ Classes:
- Name: NSProcessInfo
SwiftName: ProcessInfo
Methods:
- Selector: processInfo
MethodKind: Class
NullabilityOfRet: N
FactoryAsInit: C
- Selector: 'isOperatingSystemAtLeastVersion:'
SwiftName: isOperatingSystemAtLeast(_:)
MethodKind: Instance
Expand Down
2 changes: 1 addition & 1 deletion apinotes/GameKit.apinotes
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Classes:
Methods:
- Selector: 'localPlayer'
MethodKind: Class
FactoryAsInit: C
SwiftName: 'localPlayer()'
Tags:
- Name: GKErrorCode
NSErrorDomain: GKErrorDomain
Expand Down
2 changes: 1 addition & 1 deletion apinotes/NotificationCenter.apinotes
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ Classes:
Methods:
- Selector: 'widgetController'
MethodKind: Class
FactoryAsInit: C
SwiftName: 'widgetController()'
2 changes: 1 addition & 1 deletion apinotes/UIKit.apinotes
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Classes:
Methods:
- Selector: printInfo
MethodKind: Class
FactoryAsInit: C
SwiftName: 'printInfo()'
- Name: UIPrintInteractionController
Properties:
- Name: 'sharedPrintController'
Expand Down
1 change: 0 additions & 1 deletion test/ClangModules/objc_factory_method.swift
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ func testNonsplittableFactoryMethod() {

func testFactoryMethodBlacklist() {
_ = NCWidgetController.widgetController()
_ = ProcessInfo.processInfo()
}

func test17261609() {
Expand Down
2 changes: 1 addition & 1 deletion test/Inputs/clang-importer-sdk/usr/include/Foundation.h
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,7 @@ NSSet *setToSet(NSSet *dict);
@end

@interface NSProcessInfo : NSObject
+ (nonnull NSProcessInfo *)processInfo;
@property (class, readonly, strong, nonnull) NSProcessInfo *processInfo;
@end

@interface NSString(FoundationExts)
Expand Down
Loading