Skip to content

Commit 637db88

Browse files
Merge pull request swiftlang#2143 from practicalswift/osx
[gardening] "OSX" → "OS X"
2 parents 2b6c755 + befbebc commit 637db88

File tree

10 files changed

+13
-13
lines changed

10 files changed

+13
-13
lines changed

apinotes/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Swift compiler itself need not be recompiled except in rare cases
4444
where the changes affect how the SDK overlays are built. To recompile
4545
API notes for a given module `$MODULE` and place them into their
4646

47-
### OSX
47+
### OS X
4848
```
4949
xcrun swift -apinotes -yaml-to-binary -target x86_64-apple-macosx10.10 -o $SWIFT_EXEC/lib/swift/macosx/$MODULE.apinotesc $MODULE.apinotes
5050
```

cmake/modules/FindUUID.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ find_path(UUID_INCLUDE_DIR uuid/uuid.h
88
HINTS ${PC_UUID_INCLUDEDIR} ${PC_UUID_INCLUDE_DIRS})
99
set(UUID_INCLUDE_DIRS ${UUID_INCLUDE_DIR})
1010

11-
# On OSX we don't need the library
11+
# On OS X we don't need the library
1212
if(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
1313
set(UUID_REQUIRED UUID_INCLUDE_DIR)
1414
else()

cmake/modules/SwiftSharedCMakeConfig.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ macro(swift_common_cxx_warnings)
381381
check_cxx_compiler_flag("-Werror -Woverloaded-virtual" CXX_SUPPORTS_OVERLOADED_VIRTUAL)
382382
append_if(CXX_SUPPORTS_OVERLOADED_VIRTUAL "-Woverloaded-virtual" CMAKE_CXX_FLAGS)
383383

384-
# Check for '-fapplication-extension'. On OSX/iOS we wish to link all
384+
# Check for '-fapplication-extension'. On OS X/iOS we wish to link all
385385
# dynamic libraries with this flag.
386386
check_cxx_compiler_flag("-fapplication-extension" CXX_SUPPORTS_FAPPLICATION_EXTENSION)
387387
endmacro()

docs/ErrorHandling.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -726,7 +726,7 @@ more likely, we'd need to wrap them all in an overlay.
726726

727727
In both cases, it is possible to pull these into the Swift error
728728
handling model, but because this is likely to require massive SDK
729-
annotations it is considered out of scope for iOS 9/OSX 10.11 & Swift 2.0.
729+
annotations it is considered out of scope for iOS 9/OS X 10.11 & Swift 2.0.
730730

731731
Unexpected and universal errors
732732
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

include/swift/AST/AvailabilitySpec.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class AvailabilitySpec {
5656
};
5757

5858
/// \brief An availability specification that guards execution based on the
59-
/// run-time platform and version, e.g., OSX >= 10.10.
59+
/// run-time platform and version, e.g., OS X >= 10.10.
6060
class VersionConstraintAvailabilitySpec : public AvailabilitySpec {
6161
PlatformKind Platform;
6262
SourceLoc PlatformLoc;

include/swift/AST/PlatformKind.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ StringRef prettyPlatformString(PlatformKind platform);
4646

4747
/// Returns whether the passed-in platform is active, given the language
4848
/// options. A platform is active if either it is the target platform or its
49-
/// AppExtension variant is the target platform. For example, OSX is
50-
/// considered active when the target operating system is OSX and app extension
49+
/// AppExtension variant is the target platform. For example, OS X is
50+
/// considered active when the target operating system is OS X and app extension
5151
/// restrictions are enabled, but OSXApplicationExtension is not considered
52-
/// active when the target platform is OSX and app extension restrictions are
52+
/// active when the target platform is OS X and app extension restrictions are
5353
/// disabled. PlatformKind::none is always considered active.
5454
bool isPlatformActive(PlatformKind Platform, LangOptions &LangOpts);
5555

lib/Sema/TypeChecker.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1346,7 +1346,7 @@ class TypeRefinementContextBuilder : private ASTWalker {
13461346

13471347
// FIXME: This is not quite right: we want to handle AppExtensions
13481348
// properly. For example, on the OSXApplicationExtension platform
1349-
// we want to chose the OSX spec unless there is an explicit
1349+
// we want to chose the OS X spec unless there is an explicit
13501350
// OSXApplicationExtension spec.
13511351
if (isPlatformActive(VersionSpec->getPlatform(), TC.getLangOpts())) {
13521352
return VersionSpec;

test/SILGen/inherited_protocol_conformance_multi_file_2.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
// baC
1515
// RUN: %target-swift-frontend -emit-silgen %S/Inputs/inherited_protocol_conformance_other_file_2_b.swift %s -primary-file %S/Inputs/inherited_protocol_conformance_other_file_2_c.swift -module-name main | FileCheck %s --check-prefix=FILE_C
1616

17-
// OSX 10.9
17+
// OS X 10.9
1818
// RUN: %target-swift-frontend -emit-silgen -primary-file %S/Inputs/inherited_protocol_conformance_other_file_2_c.swift %s %S/Inputs/inherited_protocol_conformance_other_file_2_b.swift -module-name main | FileCheck %s --check-prefix=FILE_C
1919
// cAb
2020
// RUN: %target-swift-frontend -emit-silgen %S/Inputs/inherited_protocol_conformance_other_file_2_c.swift -primary-file %s %S/Inputs/inherited_protocol_conformance_other_file_2_b.swift -module-name main | FileCheck %s --check-prefix=FILE_A

test/Sema/deprecation_osx.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ func callMethodInDeprecatedExtension() {
152152
func functionWithDeprecatedMethodInDeadElseBranch() {
153153
if #available(iOS 8.0, *) {
154154
} else {
155-
// This branch is dead on OSX, so we shouldn't emit a deprecation warning in it.
155+
// This branch is dead on OS X, so we shouldn't emit a deprecation warning in it.
156156
let _ = ClassDeprecatedIn10_9() // no-warning
157157
}
158158

@@ -163,7 +163,7 @@ func functionWithDeprecatedMethodInDeadElseBranch() {
163163
}
164164

165165
guard #available(iOS 8.0, *) else {
166-
// This branch is dead because our platform is OSX, so the wildcard always matches.
166+
// This branch is dead because our platform is OS X, so the wildcard always matches.
167167
let _ = ClassDeprecatedIn10_9() // no-warning
168168
}
169169
}

utils/build-presets.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ build-subdir=buildbot_incremental
404404
release
405405
assertions
406406

407-
# We run the OSX tests and validation tests.
407+
# We run the OS X tests and validation tests.
408408
test
409409
validation-test
410410

0 commit comments

Comments
 (0)