Skip to content

Commit d0fe0e6

Browse files
committed
Cleanup trailing whitespace
1 parent 252eab1 commit d0fe0e6

File tree

10 files changed

+20
-19
lines changed

10 files changed

+20
-19
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -920,7 +920,7 @@ endif()
920920
###############
921921
#
922922
# We have to include stdlib/ before tools/.
923-
# Do not move add_subdirectory(stdlib) after add_subdirectory(tools)!
923+
# Do not move add_subdirectory(stdlib) after add_subdirectory(tools)!
924924
#
925925
# We must include stdlib/ before tools/ because stdlib/CMakeLists.txt
926926
# declares the swift-stdlib-* set of targets. These targets will then
@@ -939,7 +939,7 @@ add_subdirectory(stdlib)
939939
if(SWIFT_INCLUDE_TOOLS)
940940
add_subdirectory(include)
941941
add_subdirectory(lib)
942-
942+
943943
# Always include this after including stdlib/!
944944
# Refer to the large comment above the add_subdirectory(stdlib) call.
945945
# https://bugs.swift.org/browse/SR-5975

include/swift/Basic/LangOptions.h

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

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

@@ -295,7 +295,7 @@ namespace swift {
295295
void clearAllPlatformConditionValues() {
296296
PlatformConditionValues.clear();
297297
}
298-
298+
299299
/// Returns the value for the given platform condition or an empty string.
300300
StringRef getPlatformConditionValue(PlatformConditionKind Kind) const;
301301

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
@@ -289,7 +289,7 @@ ToolChain::constructInvocation(const CompileJobAction &job,
289289
}
290290

291291
assert(FrontendModeOption != nullptr && "No frontend mode option specified!");
292-
292+
293293
Arguments.push_back(FrontendModeOption);
294294

295295
// Add input arguments.
@@ -611,7 +611,7 @@ ToolChain::constructInvocation(const BackendJobAction &job,
611611
}
612612

613613
assert(FrontendModeOption != nullptr && "No frontend mode option specified!");
614-
614+
615615
Arguments.push_back(FrontendModeOption);
616616

617617
// Add input arguments.
@@ -628,7 +628,7 @@ ToolChain::constructInvocation(const BackendJobAction &job,
628628
assert(context.Inputs.size() == 1 && "The backend expects one input!");
629629
Arguments.push_back("-primary-file");
630630
const Job *Cmd = context.Inputs.front();
631-
631+
632632
// In multi-threaded compilation, the backend job must select the correct
633633
// output file of the compilation job.
634634
auto OutNames = Cmd->getOutput().getPrimaryOutputFilenames();
@@ -760,7 +760,7 @@ ToolChain::constructInvocation(const ModuleWrapJobAction &job,
760760

761761
Arguments.push_back("-target");
762762
Arguments.push_back(context.Args.MakeArgString(getTriple().str()));
763-
763+
764764
Arguments.push_back("-o");
765765
Arguments.push_back(
766766
context.Args.MakeArgString(context.Output.getPrimaryOutputFilename()));
@@ -1712,7 +1712,7 @@ toolchains::GenericUnix::constructInvocation(const LinkJobAction &job,
17121712
Arguments.push_back(context.Args.MakeArgString(SharedRuntimeLibPath));
17131713
Arguments.push_back("-lswiftCore");
17141714
}
1715-
1715+
17161716
// Explicitly pass the target to the linker
17171717
Arguments.push_back(context.Args.MakeArgString("--target=" + getTriple().str()));
17181718

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
@@ -150,7 +150,7 @@ static inline SWIFT_ALWAYS_INLINE
150150
float _stdlib_remainderf(float _self, float _other) {
151151
return __builtin_remainderf(_self, _other);
152152
}
153-
153+
154154
static inline SWIFT_ALWAYS_INLINE
155155
float _stdlib_squareRootf(float _self) {
156156
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
@@ -934,6 +934,7 @@ dash-dash
934934
build-ninja
935935
reconfigure
936936

937+
937938
#===------------------------------------------------------------------------===#
938939
# OS X Package Builders
939940
#===------------------------------------------------------------------------===#

0 commit comments

Comments
 (0)