Skip to content

Commit 0c253b7

Browse files
committed
Cleanup trailing whitespace
1 parent fcf70fc commit 0c253b7

File tree

11 files changed

+23
-22
lines changed

11 files changed

+23
-22
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -888,7 +888,7 @@ endif()
888888
###############
889889
#
890890
# We have to include stdlib/ before tools/.
891-
# Do not move add_subdirectory(stdlib) after add_subdirectory(tools)!
891+
# Do not move add_subdirectory(stdlib) after add_subdirectory(tools)!
892892
#
893893
# We must include stdlib/ before tools/ because stdlib/CMakeLists.txt
894894
# declares the swift-stdlib-* set of targets. These targets will then
@@ -907,7 +907,7 @@ add_subdirectory(stdlib)
907907
if(SWIFT_INCLUDE_TOOLS)
908908
add_subdirectory(include)
909909
add_subdirectory(lib)
910-
910+
911911
# Always include this after including stdlib/!
912912
# Refer to the large comment above the add_subdirectory(stdlib) call.
913913
# https://bugs.swift.org/browse/SR-5975

cmake/modules/AddSwift.cmake

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1619,7 +1619,7 @@ function(add_swift_library name)
16191619
if(SWIFTLIB_IS_SDK_OVERLAY)
16201620
list(APPEND swiftlib_swift_compile_flags_all "-Fsystem" "${SWIFT_SDK_${sdk}_PATH}/System/Library/PrivateFrameworks/")
16211621
endif()
1622-
1622+
16231623
if("${sdk}" STREQUAL "IOS_SIMULATOR")
16241624
if("${name}" STREQUAL "swiftMediaPlayer")
16251625
message("DISABLING AUTOLINK FOR swiftMediaPlayer")
@@ -1920,7 +1920,7 @@ function(add_swift_library name)
19201920
LIBRARY DESTINATION lib${LLVM_LIBDIR_SUFFIX}
19211921
RUNTIME DESTINATION bin)
19221922
swift_is_installing_component(dev is_installing)
1923-
1923+
19241924
if(NOT is_installing)
19251925
set_property(GLOBAL APPEND PROPERTY SWIFT_BUILDTREE_EXPORTS ${name})
19261926
else()
@@ -2264,7 +2264,7 @@ function(add_swift_host_tool executable)
22642264

22652265
swift_is_installing_component(${ADDSWIFTHOSTTOOL_SWIFT_COMPONENT}
22662266
is_installing)
2267-
2267+
22682268
if(NOT is_installing)
22692269
set_property(GLOBAL APPEND PROPERTY SWIFT_BUILDTREE_EXPORTS ${executable})
22702270
else()

include/swift/Basic/LangOptions.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ namespace swift {
8383

8484
/// \brief Maximum number of typo corrections we are allowed to perform.
8585
unsigned TypoCorrectionLimit = 10;
86-
86+
8787
/// Should access control be respected?
8888
bool EnableAccessControl = true;
8989

@@ -290,7 +290,7 @@ namespace swift {
290290
void clearAllPlatformConditionValues() {
291291
PlatformConditionValues.clear();
292292
}
293-
293+
294294
/// Returns the value for the given platform condition or an empty string.
295295
StringRef getPlatformConditionValue(PlatformConditionKind Kind) const;
296296

include/swift/Runtime/Mutex.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ class ReadWriteLock {
251251

252252
/// The readLock() method has the following properties:
253253
/// - Behaves as an atomic operation.
254-
/// - Blocks the calling thread while the write lock is held by another
254+
/// - Blocks the calling thread while the write lock is held by another
255255
/// thread and once the read lock is acquired by the calling thread
256256
/// other threads are prevented from acquiring the write lock.
257257
/// - Multiple threads can hold the read lock at the same time.

lib/Driver/Driver.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Driver::Driver(StringRef DriverExecutable,
6868
: Opts(createSwiftOptTable()), Diags(Diags),
6969
Name(Name), DriverExecutable(DriverExecutable),
7070
DefaultTargetTriple(llvm::sys::getDefaultTargetTriple()) {
71-
71+
7272
// The driver kind must be parsed prior to parsing arguments, since that
7373
// affects how arguments are parsed.
7474
parseDriverKind(Args.slice(1));
@@ -98,7 +98,7 @@ void Driver::parseDriverKind(ArrayRef<const char *> Args) {
9898
.Case("swift-autolink-extract", DriverKind::AutolinkExtract)
9999
.Case("swift-format", DriverKind::SwiftFormat)
100100
.Default(None);
101-
101+
102102
if (Kind.hasValue())
103103
driverKind = Kind.getValue();
104104
else if (!OptName.empty())
@@ -562,7 +562,7 @@ std::unique_ptr<Compilation> Driver::buildCompilation(
562562

563563
if (Diags.hadAnyError())
564564
return nullptr;
565-
565+
566566
std::unique_ptr<const ToolChain> TC =
567567
makeToolChain(*this, llvm::Triple(DefaultTargetTriple));
568568
if (!TC) {
@@ -612,7 +612,7 @@ std::unique_ptr<Compilation> Driver::buildCompilation(
612612

613613
assert(OI.CompilerOutputType != types::ID::TY_INVALID &&
614614
"buildOutputInfo() must set a valid output type!");
615-
615+
616616
validateEmbedBitcode(*TranslatedArgList, OI, Diags);
617617

618618
if (OI.CompilerMode == OutputInfo::Mode::REPL)
@@ -2292,7 +2292,7 @@ Job *Driver::buildJobsForAction(Compilation &C, const JobAction *JA,
22922292

22932293
// 4. Construct a Job which produces the right CommandOutput.
22942294
std::unique_ptr<Job> ownedJob = TC.constructJob(*JA, C, std::move(InputJobs),
2295-
InputActions,
2295+
InputActions,
22962296
std::move(Output), OI);
22972297
Job *J = C.addJob(std::move(ownedJob));
22982298

lib/Driver/ToolChains.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ ToolChain::constructInvocation(const CompileJobAction &job,
285285
}
286286

287287
assert(FrontendModeOption != nullptr && "No frontend mode option specified!");
288-
288+
289289
Arguments.push_back(FrontendModeOption);
290290

291291
// Add input arguments.
@@ -607,7 +607,7 @@ ToolChain::constructInvocation(const BackendJobAction &job,
607607
}
608608

609609
assert(FrontendModeOption != nullptr && "No frontend mode option specified!");
610-
610+
611611
Arguments.push_back(FrontendModeOption);
612612

613613
// Add input arguments.
@@ -624,7 +624,7 @@ ToolChain::constructInvocation(const BackendJobAction &job,
624624
assert(context.Inputs.size() == 1 && "The backend expects one input!");
625625
Arguments.push_back("-primary-file");
626626
const Job *Cmd = context.Inputs.front();
627-
627+
628628
// In multi-threaded compilation, the backend job must select the correct
629629
// output file of the compilation job.
630630
auto OutNames = Cmd->getOutput().getPrimaryOutputFilenames();
@@ -755,7 +755,7 @@ ToolChain::constructInvocation(const ModuleWrapJobAction &job,
755755

756756
Arguments.push_back("-target");
757757
Arguments.push_back(context.Args.MakeArgString(getTriple().str()));
758-
758+
759759
Arguments.push_back("-o");
760760
Arguments.push_back(
761761
context.Args.MakeArgString(context.Output.getPrimaryOutputFilename()));
@@ -1735,7 +1735,7 @@ toolchains::GenericUnix::constructInvocation(const LinkJobAction &job,
17351735
Arguments.push_back(context.Args.MakeArgString(SharedRuntimeLibPath));
17361736
Arguments.push_back("-lswiftCore");
17371737
}
1738-
1738+
17391739
// Explicitly pass the target to the linker
17401740
Arguments.push_back(context.Args.MakeArgString("--target=" + getTriple().str()));
17411741

stdlib/private/StdlibUnittest/RaceTest.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ func _masterThreadOneTrial<RT>(_ sharedState: _RaceTestSharedState<RT>) {
434434

435435
let identityShuffle = Array(0..<sharedState.raceData.count)
436436
sharedState.workerStates.removeAll(keepingCapacity: true)
437-
437+
438438
sharedState.workerStates.append(contentsOf: (0..<racingThreadCount).lazy.map {
439439
_ in
440440
let workerState = _RaceTestWorkerState<RT>()

stdlib/private/StdlibUnittest/StdlibCoreExtras.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public struct TypeIdentifier : Hashable, Comparable {
116116

117117
public var hashValue: Int { return objectID.hashValue }
118118
public var value: Any.Type
119-
119+
120120
internal var objectID : ObjectIdentifier { return ObjectIdentifier(value) }
121121
}
122122

stdlib/public/SwiftShims/LibcShims.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ static inline SWIFT_ALWAYS_INLINE
9595
float _swift_stdlib_remainderf(float _self, float _other) {
9696
return __builtin_remainderf(_self, _other);
9797
}
98-
98+
9999
static inline SWIFT_ALWAYS_INLINE
100100
float _swift_stdlib_squareRootf(float _self) {
101101
return __builtin_sqrtf(_self);

stdlib/public/runtime/Errors.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ reportOnCrash(uint32_t flags, const char *message)
235235
} else {
236236
newMessage = strdup(message);
237237
}
238-
238+
239239
CRSetCrashLogMessage(newMessage);
240240

241241
crashlogLock.unlock();

utils/build-presets.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -926,6 +926,7 @@ dash-dash
926926
build-ninja
927927
reconfigure
928928

929+
929930
#===------------------------------------------------------------------------===#
930931
# OS X Package Builders
931932
#===------------------------------------------------------------------------===#

0 commit comments

Comments
 (0)