Skip to content

Commit 1fe79d9

Browse files
committed
Merge pull request #2895 from practicalswift/normalize-syntax
[gardening] Normalize formatting. Use "OS X" instead of "OSX".
2 parents d0837a6 + d34114f commit 1fe79d9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/IDE/Formatting.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ class FormatWalker : public SourceEntityWalker {
504504
if (auto TE = dyn_cast_or_null<TupleExpr>(Node.dyn_cast<Expr *>())) {
505505
// Trailing closures are not considered siblings to other args.
506506
unsigned EndAdjust = TE->hasTrailingClosure() ? 1 : 0;
507-
for (unsigned I = 0, N = TE->getNumElements() - EndAdjust; I < N; I ++) {
507+
for (unsigned I = 0, N = TE->getNumElements() - EndAdjust; I < N; I++) {
508508
auto EleStart = TE->getElementNameLoc(I);
509509
if (EleStart.isInvalid()) {
510510
EleStart = TE->getElement(I)->getStartLoc();

utils/build-script-impl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ KNOWN_SETTINGS=(
109109
skip-build-linux "" "set to skip building Swift stdlibs for Linux"
110110
skip-build-freebsd "" "set to skip building Swift stdlibs for FreeBSD"
111111
skip-build-cygwin "" "set to skip building Swift stdlibs for Cygwin"
112-
skip-build-osx "" "set to skip building Swift stdlibs for OSX"
112+
skip-build-osx "" "set to skip building Swift stdlibs for OS X"
113113
skip-build-ios-device "" "set to skip building Swift stdlibs for iOS devices (i.e. build simulators only)"
114114
skip-build-ios-simulator "" "set to skip building Swift stdlibs for iOS simulators (i.e. build devices only)"
115115
skip-build-tvos-device "" "set to skip building Swift stdlibs for tvOS devices (i.e. build simulators only)"
@@ -135,7 +135,7 @@ KNOWN_SETTINGS=(
135135
skip-test-linux "" "set to skip testing Swift stdlibs for Linux"
136136
skip-test-freebsd "" "set to skip testing Swift stdlibs for FreeBSD"
137137
skip-test-cygwin "" "set to skip testing Swift stdlibs for Cygwin"
138-
skip-test-osx "" "set to skip testing Swift stdlibs for OSX"
138+
skip-test-osx "" "set to skip testing Swift stdlibs for OS X"
139139
skip-test-ios-simulator "" "set to skip testing Swift stdlibs for iOS simulators (i.e. test devices only)"
140140
skip-test-ios-host "" "set to skip testing the host parts of the iOS toolchain"
141141
skip-test-tvos-simulator "" "set to skip testing Swift stdlibs for tvOS simulators (i.e. test devices only)"
@@ -2718,7 +2718,7 @@ function build_and_test_installable_package() {
27182718
echo "--- Creating installable package ---"
27192719
echo "-- Package file: ${package_for_host} --"
27202720

2721-
# Assume the lipo builds are (or include) an OSX host and build an xctoolchain
2721+
# Assume the lipo builds are (or include) an OS X host and build an xctoolchain
27222722
if [[ "${host}" == "macosx-"* ]] || [[ "${host}" == "merged-hosts" ]]; then
27232723
copy_swift_stdlib_tool_substitute "${host_install_destdir}${host_install_prefix}/bin/swift-stdlib-tool"
27242724

0 commit comments

Comments
 (0)