Skip to content

Commit 238270f

Browse files
authored
Merge pull request #42458 from jsoref/spelling-utils
Spelling utils
2 parents c87d7ae + 5460443 commit 238270f

29 files changed

+42
-42
lines changed

utils/analyze_code_size.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,14 +440,14 @@ def print_summary(self, section_size):
440440
(category[0], category[1], category[2]))
441441
print("%60s: %8d (%6.2f%%)" % ('TOTAL', total_size, float(100)))
442442

443-
def uncatorizedSymbols(self):
443+
def uncategorizedSymbols(self):
444444
category = self.categories.get('Unknown')
445445
if category:
446446
return category.symbols
447447
return None
448448

449449
def print_uncategorizedSymbols(self):
450-
syms = self.uncatorizedSymbols()
450+
syms = self.uncategorizedSymbols()
451451
if syms:
452452
for symbol in syms:
453453
print(symbol.mangled_name + " " + symbol.name + " " +

utils/api_checker/swift-api-checker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,12 +260,12 @@ def main():
260260
basic_group.add_argument('--separate-by-module',
261261
action='store_true',
262262
help='When importing entire SDK, dump content '
263-
'seprately by module names')
263+
'separately by module names')
264264

265265
basic_group.add_argument('--zippered',
266266
action='store_true',
267267
help='dump module content to a dir with files for'
268-
'seprately targets')
268+
'separately targets')
269269

270270
basic_group.add_argument('--abi',
271271
action='store_true',

utils/bug_reducer/bug_reducer/func_bug_reducer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def function_bug_reducer(input_file, nm, sil_opt_invoker, sil_extract_invoker,
100100

101101
print("Base case crashes! Trying to reduce *.sib file")
102102

103-
# Otherwise, reduce the list of pases that cause the optimzier to crash.
103+
# Otherwise, reduce the list of pases that cause the optimizer to crash.
104104
tester = OptimizerTester(sil_opt_invoker, pass_list)
105105
r = ReduceMiscompilingFunctions(functions, sil_extract_invoker,
106106
tester)

utils/build-presets.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1693,7 +1693,7 @@ skip-test-foundation
16931693
skip-test-libdispatch
16941694
skip-test-xctest
16951695

1696-
# Builds enough of the the toolchain to build a swift pacakge on macOS.
1696+
# Builds enough of the toolchain to build a swift package on macOS.
16971697
[preset: mixin_swiftpm_package_macos_platform]
16981698
mixin-preset=mixin_swiftpm_macos_platform
16991699

@@ -1708,7 +1708,7 @@ skip-watchos
17081708
skip-test-llbuild
17091709
skip-test-swiftpm
17101710

1711-
# Builds enough of the the toolchain to build a swift pacakge on Linux.
1711+
# Builds enough of the toolchain to build a swift package on Linux.
17121712
[preset: mixin_swiftpm_package_linux_platform]
17131713
mixin-preset=mixin_swiftpm_linux_platform
17141714

utils/build-script-impl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ umask 0022
3333
# The --skip-build parameter, with no product name, does not affect the
3434
# configuration (CMake parameters). You can turn this option on and
3535
# off in different invocations of the script for the same build
36-
# directory without affecting configutation.
36+
# directory without affecting configuration.
3737
#
3838
# skip-build-* and build-* parameters affect the CMake configuration
3939
# (enable/disable those components).
@@ -3442,10 +3442,10 @@ for host in "${ALL_HOSTS[@]}"; do
34423442
# The usage for this script says that lipo happens before
34433443
# dsym extraction but that's not really what happens. At this point,
34443444
# we're processing an individual host (eg macosx-x86_64) but targeting
3445-
# the (shared) SYMROOT which can cause mutliple hosts to stomp on each
3445+
# the (shared) SYMROOT which can cause multiple hosts to stomp on each
34463446
# other. As a hack, I'm segregating the hosts in the symroot but it
34473447
# would probably be better to make the script behave as the usage
3448-
# descibes
3448+
# describes
34493449
host_symroot="${INSTALL_SYMROOT}/${host}"
34503450

34513451
set -x

utils/build-toolchain

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function usage() {
3636
echo "Customize the preset invoked by prepending a prefix"
3737
echo ""
3838
echo "--use-os-runtime"
39-
echo "Require this toolchain to link against against the OS runtime rather than the toolchains packaged runtime"
39+
echo "Require this toolchain to link against the OS runtime rather than the toolchains packaged runtime"
4040
echo ""
4141
}
4242

utils/build-tooling-libs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env python3
2-
# utils/build-tooling-libs - Helper tool for building the SwiftSyntax paresr
2+
# utils/build-tooling-libs - Helper tool for building the SwiftSyntax parser
33
# and SwiftStaticMirror libraries -*- python -*-
44
#
55
# This source file is part of the Swift.org open source project

utils/build-windows.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
:: - REPO_SCHEME: Optional. The scheme name to checkout.
1818

1919
:: REQUIRED PERMISSIONS
20-
:: Practically, it is easier to be in the Adminstrators group to run the
20+
:: Practically, it is easier to be in the Administrators group to run the
2121
:: script, but it should be possible to execute as a normal user.
2222
:: The user will need permission to write files into the Windows SDK and the
2323
:: VisualC++ folder.

utils/build_swift/build_swift/argparse/actions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ def __init__(self, option_strings, **kwargs):
320320
# -----------------------------------------------------------------------------
321321

322322
class UnsupportedAction(Action):
323-
"""Action that denotes an unsupported argument or opiton and subsequently
323+
"""Action that denotes an unsupported argument or option and subsequently
324324
raises an ArgumentError.
325325
"""
326326

utils/build_swift/build_swift/argparse/parser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def __call__(self, *args):
7070

7171
class _PartialAction(Action):
7272
"""Action that is partially applied, creating a factory closure used to
73-
defer initialization of acitons in the builder DSL.
73+
defer initialization of actions in the builder DSL.
7474
"""
7575

7676
def __init__(self, action_class):
@@ -185,7 +185,7 @@ def mutually_exclusive_group(self, **kwargs):
185185
# -----------------------------------------------------------------------------
186186

187187
class ArgumentParser(argparse.ArgumentParser):
188-
"""A thin extension class to the standard ArgumentParser which incluldes
188+
"""A thin extension class to the standard ArgumentParser which includes
189189
methods to interact with a builder instance.
190190
"""
191191

0 commit comments

Comments
 (0)