Skip to content

Commit 08bc6ec

Browse files
committed
Merge remote-tracking branch 'origin/main' into rebranch
2 parents c01b4d5 + 6b5f449 commit 08bc6ec

22 files changed

+32
-32
lines changed

Diff for: SwiftCompilerSources/force_lib.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111
//===----------------------------------------------------------------------===//
1212

1313
/// Dummy source file to force CMake generated SwiftInTheCompiler.xcodeproj
14-
/// to sucessfully build static libraries conatining only object files used
14+
/// to successfully build static libraries conatining only object files used
1515
/// during "bootstrap" process to link Swift sources into the compiler.

Diff for: include/swift/AST/DiagnosticsFrontend.def

+1-1
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ NOTE(sdk_version_pbm_version,none,
434434
NOTE(compiled_module_ignored_reason,none,
435435
"compiled module '%0' was ignored because %select{%error"
436436
"|it belongs to a framework in the SDK"
437-
"|loading from module interfaces is prefered}1",
437+
"|loading from module interfaces is preferred}1",
438438
(StringRef, unsigned))
439439
NOTE(out_of_date_module_here,none,
440440
"%select{compiled|cached|forwarding|prebuilt}0 module is out of date: '%1'",

Diff for: include/swift/Basic/LangOptions.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -831,7 +831,7 @@ namespace swift {
831831

832832
/// When building a PCM, rely on the Swift frontend's command-line -Xcc flags
833833
/// to build the Clang module via Clang frontend directly,
834-
/// and completly bypass the Clang driver.
834+
/// and completely bypass the Clang driver.
835835
bool DirectClangCC1ModuleBuild = false;
836836

837837
/// Return a hash code of any components from these options that should

Diff for: include/swift/IDE/CodeCompletionResult.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ class ContextFreeCodeCompletionResult {
337337
bool IsSystem : 1;
338338
bool IsAsync : 1;
339339
/// Whether the result has been annotated as having an async alternative that
340-
/// should be prefered in async contexts.
340+
/// should be preferred in async contexts.
341341
bool HasAsyncAlternative : 1;
342342
CodeCompletionString *CompletionString;
343343
NullTerminatedStringRef ModuleName;
@@ -355,7 +355,7 @@ class ContextFreeCodeCompletionResult {
355355
NullTerminatedStringRef FilterName;
356356

357357
/// If the result represents a \c ValueDecl the name by which this decl should
358-
/// be refered to in diagnostics.
358+
/// be referred to in diagnostics.
359359
NullTerminatedStringRef NameForDiagnostics;
360360

361361
public:

Diff for: include/swift/Refactoring/RefactoringKinds.def

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ REFACTORING(GlobalRename, "Global Rename", rename.global)
2626
/// (syntactically).
2727
REFACTORING(FindGlobalRenameRanges, "Find Global Rename Ranges", rename.global.find-ranges)
2828

29-
/// Find and categorize all occurences of the file-local symbol at a given
29+
/// Find and categorize all occurrences of the file-local symbol at a given
3030
/// location.
3131
REFACTORING(FindLocalRenameRanges, "Find Local Rename Ranges", rename.local.find-ranges)
3232

33-
/// Find and rename all occurences of the file-local symbol at a given
33+
/// Find and rename all occurrences of the file-local symbol at a given
3434
/// location.
3535
CURSOR_REFACTORING(LocalRename, "Local Rename", rename.local)
3636

Diff for: include/swift/SIL/TypeSubstCloner.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ class TypeSubstCloner : public SILClonerWithScopes<ImplClass> {
441441
else {
442442
// Create a new function with this mangled name with an empty
443443
// body. There won't be any IR generated for it (hence the linkage),
444-
// but the symbol will be refered to by the debug info metadata.
444+
// but the symbol will be referred to by the debug info metadata.
445445
ParentFunction = FuncBuilder.getOrCreateFunction(
446446
ParentFunction->getLocation(), MangledName, SILLinkage::Shared,
447447
ParentFunction->getLoweredFunctionType(), ParentFunction->isBare(),

Diff for: lib/AST/Attr.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -933,7 +933,7 @@ bool DeclAttribute::printImpl(ASTPrinter &Printer, const PrintOptions &Options,
933933
// will occur while building the Swift module because the overriding decl
934934
// doesn't override anything.
935935
// We couldn't skip every `override` keywords because they change the
936-
// ABI if the overridden decl is also publically visible.
936+
// ABI if the overridden decl is also publicly visible.
937937
// For public-override-internal case, having `override` doesn't have ABI
938938
// implication. Thus we can skip them.
939939
if (auto *VD = dyn_cast<ValueDecl>(D)) {

Diff for: lib/AST/FineGrainedDependencies.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ SourceFileDepGraph::findExistingNodePairOrCreateAndAddIfNew(
143143
// But, if an arc is added for this, then *any* change that causes
144144
// a same-named interface to be dirty will dirty this implementation,
145145
// even if that interface is in another file.
146-
// Therefor no such arc is added here, and any dirtying of either
146+
// Therefore no such arc is added here, and any dirtying of either
147147
// the interface or implementation of this declaration will cause
148148
// the driver to recompile this source file.
149149
return nodePair;

Diff for: lib/IRGen/GenDecl.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -5661,7 +5661,7 @@ llvm::Constant *IRGenModule::getAddrOfGlobalUTF16String(StringRef utf8) {
56615661

56625662
/// Can not treat a treat the layout of a class as resilient if the current
56635663
/// class is defined in an external module and
5664-
/// not publically accessible (e.g private or internal).
5664+
/// not publicly accessible (e.g private or internal).
56655665
/// This would normally not happen except if we compile theClass's module with
56665666
/// enable-testing.
56675667
/// Do we have to use resilient access patterns when working with this

Diff for: lib/Parse/Lexer.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2001,7 +2001,7 @@ bool Lexer::isPotentialUnskippableBareSlashRegexLiteral(const Token &Tok) const
20012001
// We either don't have a regex literal, or we failed a heuristic. We now need
20022002
// to make sure we don't have an unbalanced `{` or `}`, as that would have the
20032003
// potential to change the range of a skipped body if we try to more
2004-
// agressively lex a regex literal during normal parsing. If we have balanced
2004+
// aggressively lex a regex literal during normal parsing. If we have balanced
20052005
// `{` + `}`, we can proceed with skipping. Worst case scenario is we emit a
20062006
// worse diagnostic.
20072007
// FIXME: We ought to silence lexer diagnostics when skipping, this would

Diff for: lib/Refactoring/Refactoring.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -997,7 +997,7 @@ class ExtractCheckResult {
997997
ExtractCheckResult checkExtractConditions(const ResolvedRangeInfo &RangeInfo,
998998
DiagnosticEngine &DiagEngine) {
999999
SmallVector<CannotExtractReason, 2> AllReasons;
1000-
// If any declared declaration is refered out of the given range, return false.
1000+
// If any declared declaration is referred out of the given range, return false.
10011001
auto Declared = RangeInfo.DeclaredDecls;
10021002
auto It = std::find_if(Declared.begin(), Declared.end(),
10031003
[](DeclaredDecl DD) { return DD.ReferredAfterRange; });

Diff for: lib/SILOptimizer/Mandatory/DiagnoseLifetimeIssues.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
//
2121
// func test() {
2222
// let k = Klass()
23-
// // k is deallocated immediatly after the closure capture (a store_weak).
23+
// // k is deallocated immediately after the closure capture (a store_weak).
2424
// functionWithClosure({ [weak k] in
2525
// // crash!
2626
// k!.foo()

Diff for: lib/SILOptimizer/Mandatory/MoveOnlyAddressChecker.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1374,7 +1374,7 @@ bool GlobalLivenessChecker::testInstVectorLiveness(
13741374
if (!liveness.isWithinBoundary(takeInstAndValue.first,
13751375
takeInstAndValue.second)) {
13761376
// TODO: Today, we don't tell the user the actual field itself where the
1377-
// violation occured and just instead just shows the two instructions. We
1377+
// violation occurred and just instead just shows the two instructions. We
13781378
// could be more specific though...
13791379
LLVM_DEBUG(llvm::dbgs() << " Not within the boundary.\n");
13801380
continue;

Diff for: lib/SILOptimizer/Mandatory/MoveOnlyBorrowToDestructureTransform.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ struct TypeOffsetSizePair {
606606
}
607607

608608
// At this point, we know that our type is not a subtype of this
609-
// type. Some sort of logic error occured.
609+
// type. Some sort of logic error occurred.
610610
llvm_unreachable("Not a child of this type?!");
611611
}
612612

@@ -640,7 +640,7 @@ struct TypeOffsetSizePair {
640640
}
641641

642642
// At this point, we know that our type is not a subtype of this
643-
// type. Some sort of logic error occured.
643+
// type. Some sort of logic error occurred.
644644
llvm_unreachable("Not a child of this type?!");
645645
}
646646

@@ -699,7 +699,7 @@ struct TypeOffsetSizePair {
699699
}
700700

701701
// At this point, we know that our type is not a subtype of this
702-
// type. Some sort of logic error occured.
702+
// type. Some sort of logic error occurred.
703703
llvm_unreachable("Not a child of this type?!");
704704
}
705705

@@ -736,7 +736,7 @@ struct TypeOffsetSizePair {
736736
}
737737

738738
// At this point, we know that our type is not a subtype of this
739-
// type. Some sort of logic error occured.
739+
// type. Some sort of logic error occurred.
740740
llvm_unreachable("Not a child of this type?!");
741741
}
742742

Diff for: lib/SILOptimizer/Mandatory/MoveOnlyDeinitInsertion.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
///
1313
/// \file
1414
///
15-
/// This pass runs after move only checking has occured and transforms last
15+
/// This pass runs after move only checking has occurred and transforms last
1616
/// destroy_value of move only types into a call to the move only types deinit.
1717
///
1818
//===----------------------------------------------------------------------===//

Diff for: lib/Sema/CSApply.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -3848,7 +3848,7 @@ namespace {
38483848
subExpr = subExpr->getValueProvidingExpr();
38493849

38503850
// Diagnose if we find a 'try?'.
3851-
// FIXME: We could put up with occurences of 'try?' if they do not apply
3851+
// FIXME: We could put up with occurrences of 'try?' if they do not apply
38523852
// directly to the called ctor, e.g. 'try? try self.init()', or if the
38533853
// called ctor isn't throwing.
38543854
if (auto *OTE = dyn_cast<OptionalTryExpr>(subExpr)) {

Diff for: lib/Sema/CSSimplify.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2361,7 +2361,7 @@ struct PackTypeVariableCollector: TypeWalker {
23612361
/// pack type. The original pack type is then matched against the instantiated
23622362
/// pack type.
23632363
///
2364-
/// As a side effect, it binds each pack type variable occuring in the pattern
2364+
/// As a side effect, it binds each pack type variable occurring in the pattern
23652365
/// type to a new pack with the same shape as the original pack, but where the
23662366
/// elements are fresh type variables.
23672367
///

Diff for: lib/Sema/TypeChecker.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ checkGenericArguments(ModuleDecl *module, ArrayRef<Requirement> requirements,
566566
/// \param module The module to use for conformance lookup.
567567
/// \param contextSig The generic signature that should be used to map
568568
/// \p parentTy into context. We pass a generic signature to secure on-demand
569-
/// computation of the associated generic enviroment.
569+
/// computation of the associated generic environment.
570570
///
571571
/// \returns \c true on success.
572572
bool checkContextualRequirements(GenericTypeDecl *decl, Type parentTy,

Diff for: lib/Serialization/SourceInfoFormat.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ const uint32_t SWIFTSOURCEINFO_HASH_SEED = 5387;
6060
/// .swiftsourceinfo doesn't have consequences as serious as breaking the format
6161
/// of .swiftdoc, because .swiftsourceinfo file is for local development use only.
6262
///
63-
/// When changing this block, backwards-compatible changes are prefered.
63+
/// When changing this block, backwards-compatible changes are preferred.
6464
/// You may need to update the version when you do so. See docs/StableBitcode.md
6565
/// for information on how to make backwards-compatible changes using the LLVM
6666
/// bitcode format.

Diff for: stdlib/public/BackDeployConcurrency/Actor.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -701,7 +701,7 @@ class DefaultActorImpl : public HeapObject {
701701

702702
/// Schedule an inline processing job. This can generally only be
703703
/// done if we know nobody else is trying to do it at the same time,
704-
/// e.g. if this thread just sucessfully transitioned the actor from
704+
/// e.g. if this thread just successfully transitioned the actor from
705705
/// Idle to Scheduled.
706706
void scheduleNonOverrideProcessJob(JobPriority priority,
707707
bool hasActiveInlineJob);

Diff for: test/IRGen/weak_import_native_hoist.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
import weak_import_native_hoist_helper
99

10-
// We should not hoist the metadata accessor accross the version check.
10+
// We should not hoist the metadata accessor across the version check.
1111

1212
// CHECK-LABEL: define {{.*}} void @"$s24weak_import_native_hoist09test_not_D14_weakly_linkedyyF"()
1313
// CHECK-NOT: 15ResilientStructVMa

Diff for: utils/gen-unicode-data/Sources/GenScalarProps/GeneralCategory.swift

+6-6
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ enum GeneralCategory: String {
3535
case currencySymbol = "Sc"
3636
case modifierSymbol = "Sk"
3737
case otherSymbol = "So"
38-
case spaceSeperator = "Zs"
39-
case lineSeperator = "Zl"
40-
case paragraphSeperator = "Zp"
38+
case spaceSeparator = "Zs"
39+
case lineSeparator = "Zl"
40+
case paragraphSeparator = "Zp"
4141
case control = "Cc"
4242
case format = "Cf"
4343
case surrogate = "Cs"
@@ -90,11 +90,11 @@ enum GeneralCategory: String {
9090
return 20
9191
case .otherSymbol:
9292
return 21
93-
case .spaceSeperator:
93+
case .spaceSeparator:
9494
return 22
95-
case .lineSeperator:
95+
case .lineSeparator:
9696
return 23
97-
case .paragraphSeperator:
97+
case .paragraphSeparator:
9898
return 24
9999
case .control:
100100
return 25

0 commit comments

Comments
 (0)