Skip to content

Commit b3ff2d8

Browse files
committed
[ClangImporter] Update diagnostic to refer to "macOS" instead of "OS X"
1 parent 8b14600 commit b3ff2d8

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/ClangImporter/ClangImporter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1703,7 +1703,7 @@ PlatformAvailability::PlatformAvailability(LangOptions &langOpts)
17031703
case PlatformKind::OSX:
17041704
case PlatformKind::OSXApplicationExtension:
17051705
deprecatedAsUnavailableMessage =
1706-
"APIs deprecated as of OS X 10.9 and earlier are unavailable in Swift";
1706+
"APIs deprecated as of macOS 10.9 and earlier are unavailable in Swift";
17071707
break;
17081708

17091709
default:

test/ClangImporter/availability_macosx.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import Foundation
66
import AvailabilityExtras
77

88
func test_unavailable_because_deprecated() {
9-
_ = NSRealMemoryAvailable() // expected-error {{APIs deprecated as of OS X 10.9 and earlier are unavailable in Swift}}
9+
_ = NSRealMemoryAvailable() // expected-error {{APIs deprecated as of macOS 10.9 and earlier are unavailable in Swift}}
1010
}
1111

1212
func test_swift_unavailable_wins() {

test/SourceKit/DocSupport/doc_clang_module.swift.response

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7014,7 +7014,7 @@ var FooSubUnnamedEnumeratorA1: Int { get }
70147014
key.kind: source.lang.swift.attribute.availability,
70157015
key.platform: source.availability.platform.osx,
70167016
key.is_unavailable: 1,
7017-
key.message: "APIs deprecated as of OS X 10.9 and earlier are unavailable in Swift",
7017+
key.message: "APIs deprecated as of macOS 10.9 and earlier are unavailable in Swift",
70187018
key.deprecated: "10.1"
70197019
}
70207020
],

0 commit comments

Comments
 (0)