Skip to content

Commit 2dbf77c

Browse files
committed
[lib, include] Fix typos
1 parent 9315673 commit 2dbf77c

File tree

260 files changed

+502
-502
lines changed

Some content is hidden

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

260 files changed

+502
-502
lines changed

include/swift-c/DependencyScan/DependencyScan.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -741,7 +741,7 @@ swiftscan_cache_replay_instance_create(int argc, const char **argv,
741741
SWIFTSCAN_PUBLIC void
742742
swiftscan_cache_replay_instance_dispose(swiftscan_cache_replay_instance_t);
743743

744-
/// Replay the cached compilation using cached compliation replay instance.
744+
/// Replay the cached compilation using cached compilation replay instance.
745745
/// Returns replay result or nullptr if output not found or error occurs. If
746746
/// error, the error message is returned via \c error parameter and its caller
747747
/// needs to free the message using `swiftscan_string_dispose`.

include/swift/ABI/GenericContext.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -179,25 +179,25 @@ class TargetGenericRequirementDescriptor {
179179
return Protocol;
180180
}
181181

182-
/// Retreive the raw value of the Protocol requirement pointer.
182+
/// Retrieve the raw value of the Protocol requirement pointer.
183183
int32_t getUnresolvedProtocolAddress() const {
184184
assert(getKind() == GenericRequirementKind::Protocol);
185185
return Protocol.getUnresolvedProtocolAddress();
186186
}
187187

188-
/// Retreive the offset to the Protocol field
188+
/// Retrieve the offset to the Protocol field
189189
constexpr inline auto
190190
getProtocolOffset() const -> typename Runtime::StoredSize {
191191
return offsetof(typename std::remove_reference<decltype(*this)>::type, Protocol);
192192
}
193193

194-
/// Retreive the offset to the Type field
194+
/// Retrieve the offset to the Type field
195195
constexpr inline auto
196196
getSameTypeNameOffset() const -> typename Runtime::StoredSize {
197197
return offsetof(typename std::remove_reference<decltype(*this)>::type, Type);
198198
}
199199

200-
/// Retreive the offset to the Param field
200+
/// Retrieve the offset to the Param field
201201
constexpr inline auto
202202
getParamOffset() const -> typename Runtime::StoredSize {
203203
return offsetof(typename std::remove_reference<decltype(*this)>::type, Param);

include/swift/ABI/MetadataValues.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2135,7 +2135,7 @@ enum class GenericRequirementKind : uint8_t {
21352135
/// A requirement stating which invertible protocol checks are
21362136
/// inverted.
21372137
///
2138-
/// This is more of an "anti-requirement", specifing which checks don't need
2138+
/// This is more of an "anti-requirement", specifying which checks don't need
21392139
/// to happen for a given type.
21402140
InvertedProtocols = 5,
21412141
/// A layout requirement.

include/swift/ABI/Task.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ class AsyncTask : public Job {
562562
}
563563

564564
/// Returns true if the current task has any task preference record,
565-
/// including if it has an initial task preference record or onces
565+
/// including if it has an initial task preference record or one
566566
/// set during the lifetime of the task.
567567
bool hasTaskExecutorPreferenceRecord() const;
568568

include/swift/APIDigester/ModuleAnalyzerNodes.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ enum class NodeMatchReason: uint8_t {
115115
// a type declaration.
116116
Sequential,
117117

118-
// The first node is a function and it chanaged to a property as the second
118+
// The first node is a function and it changed to a property as the second
119119
// node.
120120
FuncToProperty,
121121

@@ -362,7 +362,7 @@ class SDKNodeDecl: public SDKNode {
362362
uint8_t ReferenceOwnership;
363363
StringRef GenericSig;
364364
// In ABI mode, this field is populated as a user-friendly version of GenericSig.
365-
// Diagnostic preferes the sugared versions if they differ as well.
365+
// Diagnostic prefers the sugared versions if they differ as well.
366366
StringRef SugaredGenericSig;
367367
std::optional<uint8_t> FixedBinaryOrder;
368368
PlatformIntroVersion introVersions;

include/swift/AST/ASTContext.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -849,7 +849,7 @@ class ASTContext final {
849849
AvailabilityContext getSwiftAvailability(unsigned major, unsigned minor) const;
850850

851851
// For each feature defined in FeatureAvailability, define two functions;
852-
// the latter, with the suffix RuntimeAvailabilty, is for use with
852+
// the latter, with the suffix RuntimeAvailability, is for use with
853853
// AvailabilityContext::forRuntimeTarget(), and only looks at the Swift
854854
// runtime version.
855855
#define FEATURE(N, V) \

include/swift/AST/ASTSynthesis.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ inline synthesizeMetatypeRepresentation(RepresentationSynthesizer rep) {
205205
switch (rep) {
206206
case _thin: return MetatypeRepresentation::Thin;
207207
case _thick: return MetatypeRepresentation::Thick;
208-
// TOOD: maybe add _objc?
208+
// TODO: maybe add _objc?
209209
}
210210
llvm_unreachable("bad kind");
211211
}

include/swift/AST/AccessScope.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class AccessScope {
3939
/// <FileUnit*, true> Private private
4040
///
4141
/// For example, if a decl with `public` access level is referenced outside of
42-
/// its defining module, it will be maped to the <nullptr, false> pair during
42+
/// its defining module, it will be mapped to the <nullptr, false> pair during
4343
/// the access scope check. This pair is determined based on the decl's access
4444
/// level in \c getAccessScopeForFormalAccess and passed to
4545
/// \c checkAccessUsingAccessScope which compares access scope of the

include/swift/AST/AutoDiff.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ class DerivativeFunctionTypeError
407407
enum class Kind {
408408
/// Original function type has no semantic results.
409409
NoSemanticResults,
410-
/// Differentiability parmeter indices are empty.
410+
/// Differentiability parameter indices are empty.
411411
NoDifferentiabilityParameters,
412412
/// A differentiability parameter does not conform to `Differentiable`.
413413
NonDifferentiableDifferentiabilityParameter,

include/swift/AST/Availability.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -384,21 +384,21 @@ class AvailabilityInference {
384384

385385
/// For the attribute's introduction version, update the platform and version
386386
/// values to the re-mapped platform's, if using a fallback platform.
387-
/// Returns `true` if a remap occured.
387+
/// Returns `true` if a remap occurred.
388388
static bool updateIntroducedPlatformForFallback(
389389
const AvailableAttr *attr, const ASTContext &Ctx,
390390
llvm::StringRef &Platform, llvm::VersionTuple &PlatformVer);
391391

392392
/// For the attribute's deprecation version, update the platform and version
393393
/// values to the re-mapped platform's, if using a fallback platform.
394-
/// Returns `true` if a remap occured.
394+
/// Returns `true` if a remap occurred.
395395
static bool updateDeprecatedPlatformForFallback(
396396
const AvailableAttr *attr, const ASTContext &Ctx,
397397
llvm::StringRef &Platform, llvm::VersionTuple &PlatformVer);
398398

399399
/// For the attribute's obsoletion version, update the platform and version
400400
/// values to the re-mapped platform's, if using a fallback platform.
401-
/// Returns `true` if a remap occured.
401+
/// Returns `true` if a remap occurred.
402402
static bool updateObsoletedPlatformForFallback(
403403
const AvailableAttr *attr, const ASTContext &Ctx,
404404
llvm::StringRef &Platform, llvm::VersionTuple &PlatformVer);
@@ -409,7 +409,7 @@ class AvailabilityInference {
409409

410410
/// For the attribute's before version, update the platform and version
411411
/// values to the re-mapped platform's, if using a fallback platform.
412-
/// Returns `true` if a remap occured.
412+
/// Returns `true` if a remap occurred.
413413
static bool updateBeforePlatformForFallback(const BackDeployedAttr *attr,
414414
const ASTContext &Ctx,
415415
llvm::StringRef &Platform,

0 commit comments

Comments
 (0)