Skip to content

Commit 66663b1

Browse files
authored
Spelling basic (#42541)
* spelling: add Signed-off-by: Josh Soref <[email protected]> * spelling: attributes Signed-off-by: Josh Soref <[email protected]> * spelling: bridging Signed-off-by: Josh Soref <[email protected]> * spelling: deserialization Signed-off-by: Josh Soref <[email protected]> * spelling: initialize Signed-off-by: Josh Soref <[email protected]> * spelling: invariants Signed-off-by: Josh Soref <[email protected]> * spelling: lazily Signed-off-by: Josh Soref <[email protected]> * spelling: occurred Signed-off-by: Josh Soref <[email protected]> * spelling: offset Signed-off-by: Josh Soref <[email protected]> * spelling: optimization Signed-off-by: Josh Soref <[email protected]> * spelling: our Signed-off-by: Josh Soref <[email protected]> * spelling: process Signed-off-by: Josh Soref <[email protected]> * spelling: substitution Signed-off-by: Josh Soref <[email protected]> * spelling: the operation Signed-off-by: Josh Soref <[email protected]> * spelling: the Signed-off-by: Josh Soref <[email protected]> Co-authored-by: Josh Soref <[email protected]>
1 parent e2c742c commit 66663b1

File tree

11 files changed

+26
-26
lines changed

11 files changed

+26
-26
lines changed

SwiftCompilerSources/Sources/Basic/SourceLoc.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===--- SourceLoc.swift - SourceLoc bridiging utilities ------------------===//
1+
//===--- SourceLoc.swift - SourceLoc bridging utilities ------------------===//
22
//
33
// This source file is part of the Swift.org open source project
44
//

include/swift/Basic/BasicSourceInfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ class BasicSourceFileInfo {
8383

8484
/// Construct with a `SourceFile`. `getInterfaceHashIncludingTypeMembers()`,
8585
/// `getInterfaceHashExcludingTypeMembers()`, `getLastModified()` and
86-
/// `getFileSize()` are laizily populated when accessed.
86+
/// `getFileSize()` are lazily populated when accessed.
8787
BasicSourceFileInfo(const SourceFile *SF);
8888

8989
bool isFromSourceFile() const;

include/swift/Basic/GraphNodeWorklist.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
/// also be used within hybrid worklist/recursive traversal by recording the
2424
/// size of the worklist at each level of recursion.
2525
///
26-
/// The primary API has two methods: intialize() and pop(). Others are provided
26+
/// The primary API has two methods: initialize() and pop(). Others are provided
2727
/// for flexibility.
2828
template <typename T, unsigned SmallSize>
2929
struct GraphNodeWorklist {

include/swift/Basic/LangOptions.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ namespace swift {
484484
bool HermeticSealAtLink = false;
485485

486486
/// Allow deserializing implementation only dependencies. This should only
487-
/// be set true by lldb and other tooling, so that deserilization
487+
/// be set true by lldb and other tooling, so that deserialization
488488
/// recovery issues won't bring down the debugger.
489489
/// TODO: remove this when @_implementationOnly modules are robust enough.
490490
bool AllowDeserializingImplementationOnly = false;
@@ -795,7 +795,7 @@ namespace swift {
795795
/// header, place it in this directory.
796796
std::string PrecompiledHeaderOutputDir;
797797

798-
/// The optimizaton setting. This doesn't typically matter for
798+
/// The optimization setting. This doesn't typically matter for
799799
/// import, but it can affect Clang's IR generation of static functions.
800800
std::string Optimization;
801801

@@ -837,7 +837,7 @@ namespace swift {
837837
/// When set, don't look for or load overlays.
838838
bool DisableOverlayModules = false;
839839

840-
/// When set, import SPI_AVAILABLE symbols with Swift SPI attribtues.
840+
/// When set, import SPI_AVAILABLE symbols with Swift SPI attributes.
841841
bool EnableClangSPI = true;
842842

843843
/// When set, don't enforce warnings with -Werror.

include/swift/Basic/Mangler.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ class Mangler {
126126
/// Appends a mangled identifier string.
127127
void appendIdentifier(StringRef ident);
128128

129-
// NOTE: the addSubsitution functions perform the value computation before
129+
// NOTE: the addSubstitution functions perform the value computation before
130130
// the assignment because there is no sequence point synchronising the
131131
// computation of the value before the insertion of the new key, resulting in
132132
// the computed value being off-by-one causing an undecoration failure during

include/swift/Basic/MultiMapCache.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class MultiMapCache {
8181
return None;
8282
}
8383

84-
// Otherwise, compute our our length, compute our initial ArrayRef<ValueTy>,
84+
// Otherwise, compute our length, compute our initial ArrayRef<ValueTy>,
8585
// update the map with the start, length, and return the resulting ArrayRef.
8686
unsigned length = data.size() - initialOffset;
8787
iter.first->second = std::make_tuple(initialOffset, length);

include/swift/Basic/Range.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ class IntRange {
134134
return *this;
135135
}
136136
iterator operator+(difference_type i) const {
137-
return iterator(Traits::adddOfset(Value, i));
137+
return iterator(Traits::addOffset(Value, i));
138138
}
139139
friend iterator operator+(difference_type i, iterator base) {
140140
return iterator(Traits::addOffset(base.Value, i));

lib/Basic/Cache.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ void CacheImpl::setAndRetain(void *Key, void *Value, size_t Cost) {
8585
return;
8686
}
8787

88-
// If there is an existing entry, the the original key and the new key are ==.
88+
// If there is an existing entry, the original key and the new key are ==.
8989
// Swap the new key into the map and destroy the original key.
9090
std::swap(Entry->first.Key, Key);
9191
DCache.CBs.keyDestroyCB(Key, nullptr);

lib/Basic/Unix/TaskQueue.inc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class Task {
8787
/// A pipe for reading output from the child process.
8888
int Pipe;
8989

90-
/// A pipe for reading errors from the child prcess, if SeparateErrors is true.
90+
/// A pipe for reading errors from the child process, if SeparateErrors is true.
9191
int ErrorPipe;
9292

9393
/// The current state of the Task.
@@ -373,8 +373,8 @@ public:
373373

374374
/// Concurrently execute the tasks in the TaskQueue, collecting the outputs from
375375
/// each task.
376-
/// Maintain invarients connecting tasks to execute, tasks currently executing,
377-
/// and fds being polled. These invarients include:
376+
/// Maintain invariants connecting tasks to execute, tasks currently executing,
377+
/// and fds being polled. These invariants include:
378378
/// A task is not in both TasksToBeExecuted and TasksBeingExecuted,
379379
/// A task is executing iff it is in TasksBeingExecuted,
380380
/// A task is executing iff any of its fds being polled are in FdsBeingPolled

lib/Basic/Windows/TaskQueue.inc

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -132,16 +132,16 @@ private:
132132

133133
TaskProcessInformation TPI(T->PI.Pid, UTime, STime,
134134
Counters.PeakWorkingSetSize);
135-
bool ErrorOccured = false;
135+
bool ErrorOccurred = false;
136136
if (Crashed) {
137137
if (Cbs.TaskSignalled) {
138138
TaskFinishedResponse Response =
139139
Cbs.TaskSignalled(T->PI.Pid, "", StdoutContents, StderrContents,
140140
T->Context, T->PI.ReturnCode, TPI);
141-
ErrorOccured = (Response == TaskFinishedResponse::StopExecution);
141+
ErrorOccurred = (Response == TaskFinishedResponse::StopExecution);
142142
} else {
143143
// If we don't have a Signalled callback, unconditionally stop.
144-
ErrorOccured = true;
144+
ErrorOccurred = true;
145145
}
146146
} else {
147147
// Wait() returned a normal return code, so just indicate that the task
@@ -150,15 +150,15 @@ private:
150150
TaskFinishedResponse Response =
151151
Cbs.TaskFinished(T->PI.Pid, T->PI.ReturnCode, StdoutContents,
152152
StderrContents, TPI, T->Context);
153-
ErrorOccured = (Response == TaskFinishedResponse::StopExecution);
153+
ErrorOccurred = (Response == TaskFinishedResponse::StopExecution);
154154
} else if (Crashed) {
155-
ErrorOccured = true;
155+
ErrorOccurred = true;
156156
}
157157
}
158158
llvm::sys::fs::remove(T->StdoutPath);
159159
if (T->SeparateErrors)
160160
llvm::sys::fs::remove(T->StderrPath);
161-
return ErrorOccured;
161+
return ErrorOccurred;
162162
}
163163

164164
public:
@@ -171,14 +171,14 @@ public:
171171
/// Run the tasks to be executed.
172172
/// \return true on error.
173173
bool executeTasks() {
174-
bool ErrorOccured = false;
175-
while ((!ErrorOccured && !TasksToBeExecuted.empty()) ||
174+
bool ErrorOccurred = false;
175+
while ((!ErrorOccurred && !TasksToBeExecuted.empty()) ||
176176
!TasksBeingExecuted.empty()) {
177-
if (!ErrorOccured)
178-
ErrorOccured |= startUpSomeTasks();
179-
ErrorOccured |= waitForFinishedTask();
177+
if (!ErrorOccurred)
178+
ErrorOccurred |= startUpSomeTasks();
179+
ErrorOccurred |= waitForFinishedTask();
180180
}
181-
return ErrorOccured;
181+
return ErrorOccurred;
182182
}
183183
};
184184

unittests/Basic/PrefixMapTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ struct Tester {
7979
EXPECT_EQ(key.begin() + stdmapResult->first.size(), premapResult.second);
8080
}
8181

82-
// Perform a clear operation. Tests that that actually clears out the map.
82+
// Perform a clear operation. Tests that the operation actually clears out the map.
8383
void clear() {
8484
StdMap.clear();
8585
PreMap.clear();

0 commit comments

Comments
 (0)