Skip to content

Commit cc85204

Browse files
[gardening] Fix accidental trailing whitespace.
1 parent 3616567 commit cc85204

File tree

165 files changed

+1002
-1002
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

165 files changed

+1002
-1002
lines changed

CMakeLists.txt

+9-9
Original file line numberDiff line numberDiff line change
@@ -506,20 +506,20 @@ if(XCODE)
506506
endif()
507507

508508
# FIXME: the parameters we specify in SWIFT_SDKS are lacking architecture specifics,
509-
# so we need to hard-code it. For example, the SDK for Android is just 'ANDROID',
510-
# which we assume below to be armv7.
509+
# so we need to hard-code it. For example, the SDK for Android is just 'ANDROID',
510+
# which we assume below to be armv7.
511511
# The iOS SDKs all have their architectures hardcoded because they are just specified by name (e.g. 'IOS' or 'WATCHOS').
512512
# We can't cross-compile the standard library for another linux architecture,
513513
# because the SDK list would just be 'LINUX' and we couldn't disambiguate it from the host.
514-
#
514+
#
515515
# To fix it, we would need to append the architecture to the SDKs,
516516
# for example: 'OSX-x86_64;IOS-armv7;...etc'.
517517
# We could easily do that - we have all of that information in build-script-impl.
518518
# Also, we would need to be provided with the sysroot for each SDK (see SWIFT_ANDROID_SDK_PATH/SWIFT_SDK_ANDROID_PATH).
519519
# Darwin targets cheat and use `xcrun`.
520520

521521
if("${SWIFT_HOST_VARIANT_SDK}" STREQUAL "LINUX")
522-
522+
523523
set(CMAKE_EXECUTABLE_FORMAT "ELF")
524524
set(SWIFT_HOST_VARIANT "linux" CACHE STRING
525525
"Deployment OS for Swift host tools (the compiler) [linux].")
@@ -550,7 +550,7 @@ if("${SWIFT_HOST_VARIANT_SDK}" STREQUAL "LINUX")
550550
endif()
551551

552552
elseif("${SWIFT_HOST_VARIANT_SDK}" STREQUAL "FREEBSD")
553-
553+
554554
set(CMAKE_EXECUTABLE_FORMAT "ELF")
555555
set(SWIFT_HOST_VARIANT "freebsd" CACHE STRING
556556
"Deployment OS for Swift host tools (the compiler) [freebsd].")
@@ -563,13 +563,13 @@ elseif("${SWIFT_HOST_VARIANT_SDK}" STREQUAL "FREEBSD")
563563
"x86_64-unknown-freebsd${FREEBSD_SYSTEM_VERSION}" "/")
564564
set(SWIFT_PRIMARY_VARIANT_SDK_default "${SWIFT_HOST_VARIANT_SDK}")
565565
set(SWIFT_PRIMARY_VARIANT_ARCH_default "x86_64")
566-
566+
567567
elseif("${SWIFT_HOST_VARIANT_SDK}" STREQUAL "CYGWIN")
568-
568+
569569
# set(CMAKE_EXECUTABLE_FORMAT "ELF")
570570
set(SWIFT_HOST_VARIANT "windows" CACHE STRING
571571
"Deployment OS for Swift host tools (the compiler) [windows].")
572-
572+
573573
configure_sdk_unix(CYGWIN "Cygwin" "windows" "cygwin" "windows" "x86_64-unknown-windows-cygnus" "/")
574574
set(SWIFT_PRIMARY_VARIANT_SDK_default "${SWIFT_HOST_VARIANT_SDK}")
575575
set(SWIFT_PRIMARY_VARIANT_ARCH_default "x86_64")
@@ -579,7 +579,7 @@ elseif("${SWIFT_HOST_VARIANT_SDK}" MATCHES "(OSX|IOS*|TVOS*|WATCHOS*)")
579579
set(SWIFT_HOST_VARIANT "macosx" CACHE STRING
580580
"Deployment OS for Swift host tools (the compiler) [macosx, iphoneos].")
581581

582-
# Display Xcode toolchain version.
582+
# Display Xcode toolchain version.
583583
# The SDK configuration below prints each SDK version.
584584
execute_process(
585585
COMMAND "xcodebuild" "-version"

LICENSE.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,8 @@
200200
See the License for the specific language governing permissions and
201201
limitations under the License.
202202

203-
204-
203+
204+
205205
## Runtime Library Exception to the Apache 2.0 License: ##
206206

207207

apinotes/CoreGraphics.apinotes

+7-7
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ Functions:
9090
# replaced by Equatable / ==
9191
SwiftName: CGAffineTransform.__equalTo(self:_:)
9292
SwiftPrivate: true
93-
93+
9494
# CGBitmapContext
9595
- Name: CGBitmapContextCreateWithData
9696
SwiftName: CGContext.init(data:width:height:bitsPerComponent:bytesPerRow:space:bitmapInfo:releaseCallback:releaseInfo:)
@@ -114,7 +114,7 @@ Functions:
114114
SwiftName: getter:CGContext.alphaInfo(self:)
115115
- Name: CGBitmapContextCreateImage
116116
SwiftName: CGContext.makeImage(self:)
117-
117+
118118
# CGColor
119119
#
120120
- Name: CGColorCreate
@@ -409,7 +409,7 @@ Functions:
409409
- Name: CGGetLastMouseDelta
410410
# replaced by a version that returns CGVector instead of using out-pointers
411411
SwiftPrivate: true
412-
412+
413413
# CGEvent
414414
- Name: CGEventCreateFromData
415415
SwiftName: CGEvent.init(withDataAllocator:data:)
@@ -421,7 +421,7 @@ Functions:
421421
SwiftName: CGEvent.postToPid(_:self:)
422422
- Name: CGEventCreateSourceFromEvent
423423
SwiftName: CGEventSource.init(event:)
424-
424+
425425
# CGFont
426426
- Name: CGFontCreateWithDataProvider
427427
SwiftName: CGFont.init(_:)
@@ -443,7 +443,7 @@ Functions:
443443
SwiftName: CGFont.table(self:for:)
444444
- Name: CGFontCreateCopyWithVariations
445445
SwiftName: CGFont.copy(self:withVariations:)
446-
446+
447447
# CGGeometry
448448
- Name: CGPointCreateDictionaryRepresentation
449449
SwiftName: getter:CGPoint.dictionaryRepresentation(self:)
@@ -474,7 +474,7 @@ Functions:
474474
# hide in favor of an init (can't map to initializer because out-pointer)
475475
SwiftName: CGRect.__setFromDictionaryRepresentation(_:_:)
476476
SwiftPrivate: true
477-
477+
478478
# CGGradient
479479
- Name: CGGradientCreateWithColorComponents
480480
SwiftName: CGGradient.init(colorSpace:colorComponents:locations:count:)
@@ -557,7 +557,7 @@ Functions:
557557
# CGPSConverter
558558
- Name: CGPSConverterIsConverting
559559
SwiftName: getter:CGPSConverter.isConverting(self:)
560-
560+
561561
# CGPath
562562
- Name: CGPathCreateCopy
563563
SwiftName: CGPath.copy(self:)

apinotes/GameplayKit.apinotes

+1-1
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ Classes:
206206
- Selector: 'shuffledArrayWithRandomSource:'
207207
SwiftName: shuffled(using:)
208208
MethodKind: Instance
209-
- Name: GKARC4RandomSource
209+
- Name: GKARC4RandomSource
210210
Methods:
211211
- Selector: 'dropValuesWithCount:'
212212
SwiftName: dropValues(_:)

apinotes/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ API notes are organized into a set of `.apinotes` files. Each
1111
written in YAML (FIXME: to be) described below. These YAML sources
1212
must be manually compiled into a binary representation (`.apinotesc`)
1313
that the Swift compiler will lazily load when it builds code, also
14-
described below.
14+
described below.
1515

1616
# API Notes YAML Format
1717

@@ -42,7 +42,7 @@ When updating API notes for a system module, recompile the API notes
4242
and place the result in the appropriate directories listed above. The
4343
Swift compiler itself need not be recompiled except in rare cases
4444
where the changes affect how the SDK overlays are built. To recompile
45-
API notes for a given module `$MODULE` and place them into their
45+
API notes for a given module `$MODULE` and place them into their
4646

4747
### OS X
4848
```

cmake/modules/AddSwift.cmake

+5-5
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ endfunction()
9595
# ANALYZE_CODE_COVERAGE analyze_code_coverage
9696
# RESULT_VAR_NAME result_var_name
9797
# DEPLOYMENT_VERSION_IOS deployment_version_ios # If provided, overrides the default value of the iOS deployment target set by the Swift project for this compilation only.
98-
#
98+
#
9999
# )
100100
function(_add_variant_c_compile_link_flags)
101101
set(oneValueArgs SDK ARCH BUILD_TYPE RESULT_VAR_NAME ENABLE_LTO ANALYZE_CODE_COVERAGE DEPLOYMENT_VERSION_IOS)
@@ -104,7 +104,7 @@ function(_add_variant_c_compile_link_flags)
104104
"${oneValueArgs}"
105105
""
106106
${ARGN})
107-
107+
108108
set(result
109109
${${CFLAGS_RESULT_VAR_NAME}}
110110
"-target" "${SWIFT_SDK_${CFLAGS_SDK}_ARCH_${CFLAGS_ARCH}_TRIPLE}")
@@ -1297,12 +1297,12 @@ function(add_swift_library name)
12971297
message(FATAL_ERROR
12981298
"Either SHARED, STATIC, or OBJECT_LIBRARY must be specified")
12991299
endif()
1300-
1300+
13011301
if(SWIFTLIB_TARGET_LIBRARY)
13021302
if(NOT SWIFT_BUILD_RUNTIME_WITH_HOST_COMPILER)
13031303
list(APPEND SWIFTLIB_DEPENDS clang)
13041304
endif()
1305-
1305+
13061306
# If we are building this library for targets, loop through the various
13071307
# SDKs building the variants of this library.
13081308
list_intersect(
@@ -1675,7 +1675,7 @@ function(_add_swift_executable_single name)
16751675
# Determine compiler flags.
16761676
set(c_compile_flags)
16771677
set(link_flags)
1678-
1678+
16791679
# Add variant-specific flags.
16801680
_add_variant_c_compile_flags(
16811681
SDK "${SWIFTEXE_SINGLE_SDK}"

cmake/modules/FindICU.cmake

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ set(ICU_REQUIRED)
88
foreach(MODULE ${ICU_FIND_COMPONENTS})
99
string(TOUPPER "${MODULE}" MODULE)
1010
string(TOLOWER "${MODULE}" module)
11-
list(APPEND ICU_REQUIRED
11+
list(APPEND ICU_REQUIRED
1212
ICU_${MODULE}_INCLUDE_DIR ICU_${MODULE}_LIBRARIES)
1313

1414
pkg_check_modules(PC_ICU_${MODULE} QUIET icu-${module})

docs/ABI.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Structs and tuples currently share the same layout algorithm, noted as the
2929
is as follows:
3030

3131
- Start with a **size** of **0** and an **alignment** of **1**.
32-
- Iterate through the fields, in element order for tuples, or in ``var``
32+
- Iterate through the fields, in element order for tuples, or in ``var``
3333
declaration order for structs. For each field:
3434

3535
* Update **size** by rounding up to the **alignment of the field**, that is,
@@ -41,7 +41,7 @@ is as follows:
4141
**alignment of the field**.
4242

4343
- The final **size** and **alignment** are the size and alignment of the
44-
aggregate. The **stride** of the type is the final **size** rounded up to
44+
aggregate. The **stride** of the type is the final **size** rounded up to
4545
**alignment**.
4646

4747
Note that this differs from C or LLVM's normal layout rules in that *size*
@@ -852,7 +852,7 @@ The first identifier in a ``<private-decl-name>`` is a string that represents
852852
the file the original declaration came from. It should be considered unique
853853
within the enclosing module. The second identifier is the name of the entity.
854854

855-
Not all declarations marked ``private`` declarations will use the
855+
Not all declarations marked ``private`` declarations will use the
856856
``<private-decl-name>`` mangling; if the entity's context is enough to uniquely
857857
identify the entity, the simple ``identifier`` form is preferred.
858858

@@ -929,7 +929,7 @@ Types
929929
type ::= 'b' type type // objc block function type
930930
type ::= 'c' type type // C function pointer type
931931
type ::= 'F' throws-annotation? type type // function type
932-
type ::= 'f' throws-annotation? type type // uncurried function type
932+
type ::= 'f' throws-annotation? type type // uncurried function type
933933
type ::= 'G' type <type>+ '_' // generic type application
934934
type ::= 'K' type type // @auto_closure function type
935935
type ::= 'M' type // metatype without representation

docs/AccessControl.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ This optimizes for the most common case—a single-target application
2525
project—while not accidentally revealing entities to clients of a framework
2626
module.
2727

28-
.. warning:: This document has not yet been updated for SE-0117, which adds the
28+
.. warning:: This document has not yet been updated for SE-0117, which adds the
2929
"open" level of access.
3030

3131

@@ -220,7 +220,7 @@ functionality beyond ``private``, ``fileprivate``, ``internal``, and ``public``.
220220
limited with regards to extensions. Beyond that, however, a "class-only"
221221
limit forces code to be declared within the class that might otherwise
222222
naturally be a top-level helper or an extension method on another type.
223-
223+
224224
``private`` and ``fileprivate`` serve the use case of limiting access to the
225225
implementation details of a class (even from the rest of the module!) while
226226
not tying access to the notion of type.
@@ -232,7 +232,7 @@ functionality beyond ``private``, ``fileprivate``, ``internal``, and ``public``.
232232
plans for resilient APIs. Additionally, it increases the complexity of the
233233
access control model for both the compiler and for developers, and like
234234
"class-only" it is not immediately clear how it interacts with extensions.
235-
235+
236236
Though it is not compiler-enforced, members that might be considered
237237
"protected" are effectively publicly accessible, and thus should be marked
238238
``public`` in Swift. They can still be documented as intended for overriding

docs/CMakeLists.txt

+10-10
Original file line numberDiff line numberDiff line change
@@ -42,18 +42,18 @@ if(LITRE_EXECUTABLE)
4242
set(subdir_CMakeLists)
4343

4444
foreach(rst ${rst_files})
45-
# Prepare a testing directory containing a CMakeLists.txt
45+
# Prepare a testing directory containing a CMakeLists.txt
4646
# and example files extracted from the .rst
4747
set(test_dir "litre-tests/${rst}.litre-tests")
4848

4949
add_custom_command(
50-
OUTPUT
50+
OUTPUT
5151
${test_dir}/CMakeLists.txt
52-
COMMAND
53-
${LITRE_EXECUTABLE}
52+
COMMAND
53+
${LITRE_EXECUTABLE}
5454
--default_compiler=${CMAKE_BINARY_DIR}/bin/swift
5555
"--dump_dir=${test_dir}"
56-
--traceback
56+
--traceback
5757
--report=severe # suppress most .rst errors. We have lots of them.
5858
${CMAKE_CURRENT_SOURCE_DIR}/${rst}
5959
DEPENDS
@@ -71,7 +71,7 @@ if(LITRE_EXECUTABLE)
7171
OUTPUT
7272
litre-top-CMakeLists.cmake
7373
COMMAND
74-
${CMAKE_COMMAND} -DOUTPUT=litre-top-CMakeLists.cmake
74+
${CMAKE_COMMAND} -DOUTPUT=litre-top-CMakeLists.cmake
7575
-DSOURCE_DIR=${CMAKE_CURRENT_SOURCE_DIR}
7676
-P ${CMAKE_CURRENT_SOURCE_DIR}/GenerateTopLevelLitreCMakeLists.cmake
7777
${rst_files}
@@ -134,7 +134,7 @@ if (LLVM_ENABLE_DOXYGEN)
134134
if (DOXYGEN_FOUND)
135135
set(abs_srcdir ${CMAKE_CURRENT_SOURCE_DIR})
136136
set(abs_builddir ${CMAKE_CURRENT_BINARY_DIR})
137-
137+
138138
if (HAVE_DOT)
139139
set(DOT ${LLVM_PATH_DOT})
140140
endif()
@@ -152,7 +152,7 @@ if (DOXYGEN_FOUND)
152152
set(enable_external_search "NO")
153153
set(extra_search_mappings "")
154154
endif()
155-
155+
156156
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/doxygen.cfg.in
157157
${CMAKE_CURRENT_BINARY_DIR}/doxygen.cfg @ONLY)
158158

@@ -164,11 +164,11 @@ if (DOXYGEN_FOUND)
164164
set(enable_server_based_search)
165165
set(enable_external_search)
166166
set(extra_search_mappings)
167-
167+
168168
add_custom_target(doxygen-swift
169169
${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/doxygen.cfg
170170
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
171-
COMMENT "Generating swift doxygen documentation." VERBATIM)
171+
COMMENT "Generating swift doxygen documentation." VERBATIM)
172172

173173
if(LLVM_BUILD_DOCS)
174174
add_dependencies(doxygen doxygen-swift)

docs/CallingConvention.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ of an l-value, but Swift does, so it's pertinent.
5959
In general, the terms "pass-by-X" and "call-by-X" are used
6060
interchangeably. It's unfortunate, because these conventions are
6161
argument specific, and functions can be passed multiple arguments
62-
that are each handled in a different way. As such, we'll prefer
63-
"pass-by-X" for consistency and to emphasize that these conventions
62+
that are each handled in a different way. As such, we'll prefer
63+
"pass-by-X" for consistency and to emphasize that these conventions
6464
are argument-specific.
6565

6666
Pass-by-reference

docs/ContinuousIntegration.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ A smoke test on Linux does the following:
7070

7171
Platform | Comment | Check Status
7272
------------ | ------- | ------------
73-
All supported platforms | @swift-ci Please test | Swift Test Linux Platform (smoke test)<br>Swift Test OS X Platform (smoke test)<br>Swift Test Linux Platform<br>Swift Test OS X Platform<br>
74-
All supported platforms | @swift-ci Please clean test | Swift Test Linux Platform (smoke test)<br>Swift Test OS X Platform (smoke test)<br>Swift Test Linux Platform<br>Swift Test OS X Platform<br>
73+
All supported platforms | @swift-ci Please test | Swift Test Linux Platform (smoke test)<br>Swift Test OS X Platform (smoke test)<br>Swift Test Linux Platform<br>Swift Test OS X Platform<br>
74+
All supported platforms | @swift-ci Please clean test | Swift Test Linux Platform (smoke test)<br>Swift Test OS X Platform (smoke test)<br>Swift Test Linux Platform<br>Swift Test OS X Platform<br>
7575
All supported platforms | @swift-ci Please test and merge | Swift Test Linux Platform (smoke test)<br>Swift Test OS X Platform (smoke test)<br> Swift Test Linux Platform <br>Swift Test OS X Platform
7676
All supported platforms | @swift-ci Please clean test and merge | Swift Test Linux Platform (smoke test)<br>Swift Test OS X Platform (smoke test)<br> Swift Test Linux Platform <br>Swift Test OS X Platform
7777
OS X platform | @swift-ci Please test OS X platform | Swift Test OS X Platform (smoke test)<br>Swift Test OS X Platform
@@ -123,9 +123,9 @@ A validation test on Linux does the following:
123123

124124
## Cross Repository Testing
125125

126-
Simply provide the URL from corresponding pull requests in the same comment as "@swift-ci Please test" phrase. List all of the pull requests and then provide the specific test phrase you would like to trigger. Currently, it will only merge the main pull request you requested testing from as opposed to all of the PR's.
126+
Simply provide the URL from corresponding pull requests in the same comment as "@swift-ci Please test" phrase. List all of the pull requests and then provide the specific test phrase you would like to trigger. Currently, it will only merge the main pull request you requested testing from as opposed to all of the PR's.
127127

128-
For example:
128+
For example:
129129

130130
```
131131
Please test with following pull request:

docs/DependencyAnalysis.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ to is tantamount to a debug-time miscompile!
2020
Kinds of Dependency
2121
===================
2222

23-
There are four major kinds of dependency between files:
23+
There are four major kinds of dependency between files:
2424

2525
- ``top-level``: use of an unqualified name that is looked up at module scope,
2626
and definition of a name at module scope. This includes free functions,

docs/Driver.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -270,10 +270,10 @@ past that, so:
270270

271271
1. Generate an output file map that contains all the per-file outputs you care
272272
about. Most likely this is just the object files and incremental build
273-
dependency files; everything else is an intermediate. (There should probably
273+
dependency files; everything else is an intermediate. (There should probably
274274
be a tool that does this, perhaps built on what the package manager does.)
275275

276-
2. Set TMPDIR to somewhere you don't mind uninteresting intermediate files
276+
2. Set TMPDIR to somewhere you don't mind uninteresting intermediate files
277277
going.
278278

279279
3. Do one of the following:

0 commit comments

Comments
 (0)