Skip to content

Spelling include #42616

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 43 commits into from
Apr 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
d7c9181
spelling: accessible
jsoref Apr 17, 2022
24cb63c
spelling: are
jsoref Apr 17, 2022
50f504a
spelling: assume
jsoref Apr 18, 2022
0f4ee58
spelling: attempt
jsoref Apr 17, 2022
e2441de
spelling: children
jsoref Apr 17, 2022
ead34ab
spelling: convenience
jsoref Apr 17, 2022
c7dedd6
spelling: creation
jsoref Apr 17, 2022
d905b4b
spelling: default
jsoref Apr 17, 2022
b7cf943
spelling: dereference
jsoref Apr 17, 2022
98af5f6
spelling: deserialization
jsoref Apr 17, 2022
c9727e8
spelling: embedded
jsoref Apr 17, 2022
84f1860
spelling: enriched
jsoref Apr 17, 2022
bd23ade
spelling: excluding
jsoref Apr 17, 2022
9620613
spelling: for
jsoref Apr 17, 2022
a9358ce
spelling: global
jsoref Apr 17, 2022
aab083f
spelling: guarantee
jsoref Apr 17, 2022
340166e
spelling: initialization
jsoref Apr 17, 2022
11adb62
spelling: initialize
jsoref Apr 17, 2022
bcc7954
spelling: label
jsoref Apr 17, 2022
bcf3190
spelling: lifting
jsoref Apr 17, 2022
e5eb87c
spelling: mangled
jsoref Apr 17, 2022
339b570
spelling: metadata
jsoref Apr 17, 2022
d2ac7a9
spelling: minimum
jsoref Apr 17, 2022
0bf2de6
spelling: offset
jsoref Apr 17, 2022
6370079
spelling: only
jsoref Apr 17, 2022
e0808c1
spelling: otherwise
jsoref Apr 17, 2022
87b7e69
spelling: output
jsoref Apr 17, 2022
d58b2f2
spelling: overall
jsoref Apr 17, 2022
d086fdd
spelling: parameter
jsoref Apr 17, 2022
d64615c
spelling: passed
jsoref Apr 17, 2022
1d7021a
spelling: performance
jsoref Apr 17, 2022
f544850
spelling: referenced
jsoref Apr 17, 2022
ba81d4a
spelling: standard
jsoref Apr 18, 2022
f13a1ef
spelling: syntax
jsoref Apr 17, 2022
2ce262d
spelling: that
jsoref Apr 17, 2022
5e8bff2
spelling: the
jsoref Apr 17, 2022
5c5daf1
spelling: trivia
jsoref Apr 17, 2022
df0ce50
spelling: truncate
jsoref Apr 17, 2022
85ccb75
spelling: undesirable
jsoref Apr 17, 2022
990a245
spelling: uniformly
jsoref Apr 17, 2022
51847df
spelling: uninitialized
jsoref Apr 17, 2022
3fc3685
spelling: value
jsoref Apr 17, 2022
a62f20c
spelling: verification
jsoref Apr 17, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions include/swift/ABI/Metadata.h
Original file line number Diff line number Diff line change
Expand Up @@ -2025,7 +2025,7 @@ using ExtendedExistentialTypeShape
/// existential shape.
///
/// We'd like to use BLAKE3 for this, but pending acceptance of
/// that into LLVM, we're using SHA-256. We simply truncaate the
/// that into LLVM, we're using SHA-256. We simply truncate the
/// hash to the desired length.
struct UniqueHash {
static_assert(NumBytes_UniqueHash % sizeof(uint32_t) == 0,
Expand Down Expand Up @@ -3541,7 +3541,7 @@ class TargetTypeContextDescriptor
return getTypeContextDescriptorFlags().hasSingletonMetadataInitialization();
}

/// Does this type have "foreign" metadata initialiation?
/// Does this type have "foreign" metadata initialization?
bool hasForeignMetadataInitialization() const {
return getTypeContextDescriptorFlags().hasForeignMetadataInitialization();
}
Expand Down
2 changes: 1 addition & 1 deletion include/swift/ABI/ObjectFile.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class SwiftObjectFileFormat {
return {};
}
/// Get the name of the segment in the symbol rich binary that may contain
/// Swift meteadata.
/// Swift metadata.
virtual llvm::Optional<llvm::StringRef> getSymbolRichSegmentName() {
return {};
}
Expand Down
2 changes: 1 addition & 1 deletion include/swift/ABI/Task.h
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ class AsyncTask : public Job {
/// \c Executing, then \c waitingTask has been added to the
/// wait queue and will be scheduled when the future completes. Otherwise,
/// the future has completed and can be queried.
/// The waiting task's async context will be intialized with the parameters if
/// The waiting task's async context will be initialized with the parameters if
/// the current's task state is executing.
FutureFragment::Status waitFuture(AsyncTask *waitingTask,
AsyncContext *waitingTaskContext,
Expand Down
2 changes: 1 addition & 1 deletion include/swift/ABI/TrailingObjects.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
/// determine the size needed for allocation via
/// 'additionalSizeToAlloc' and 'totalSizeToAlloc'.
///
/// All the methods implemented by this class are are intended for use
/// All the methods implemented by this class are intended for use
/// by the implementation of the class, not as part of its interface
/// (thus, private inheritance is suggested).
///
Expand Down
4 changes: 2 additions & 2 deletions include/swift/Migrator/FixitFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ struct FixitFilter {
// primary file, so if a nominal type was renamed, for example, any members
// users have added in an extension in a separate file may not be visible,
// due to the extension rename not having been applied. The below diag(s)
// can provide undesireable fixits that rename references of these
// can provide undesirable fixits that rename references of these
// no-longer-visible members to similar still-visible ones.
// Note: missing_argument_lables and extra_argument_labels are filtered out
// Note: missing_argument_labels and extra_argument_labels are filtered out
// elsewhere
if (Info.ID == diag::wrong_argument_labels.ID)
return false;
Expand Down
2 changes: 1 addition & 1 deletion include/swift/Reflection/TypeRefBuilder.h
Original file line number Diff line number Diff line change
Expand Up @@ -1378,7 +1378,7 @@ class TypeRefBuilder {

// The Fields section has gathered info on types that includes their mangled
// names. Use that to build a dictionary from a type's demangled name to its
// mangeled name
// mangled name
std::unordered_map<std::string, std::string> typeNameToManglingMap;
for (const auto &section : ReflectionInfos) {
for (auto descriptor : section.Field) {
Expand Down
2 changes: 1 addition & 1 deletion include/swift/Remote/MetadataReader.h
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ class MetadataReader {
isBridged);
}

/// Given a known-opaque existential, attemp to discover the pointer to its
/// Given a known-opaque existential, attempt to discover the pointer to its
/// metadata address and its value.
llvm::Optional<RemoteExistential>
readMetadataAndValueOpaqueExistential(RemoteAddress ExistentialAddress) {
Expand Down
2 changes: 1 addition & 1 deletion include/swift/Runtime/AccessibleFunction.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===---- AcceesibleFunction.h - Runtime accessible functions ---*- C++ -*-===//
//===---- AccessibleFunction.h - Runtime accessible functions ---*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
Expand Down
2 changes: 1 addition & 1 deletion include/swift/Runtime/Atomic.h
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ class alignas(2 * sizeof(void*)) atomic_impl<Value, 2 * sizeof(void*)> {
} // end namespace swift::impl

/// A simple wrapper for std::atomic that provides the most important
/// interfaces and fixes the API bug where all of the orderings dafault
/// interfaces and fixes the API bug where all of the orderings default
/// to sequentially-consistent.
///
/// It also sometimes uses a different implementation in cases where
Expand Down
2 changes: 1 addition & 1 deletion include/swift/Runtime/AtomicWaitQueue.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class AtomicWaitQueue {
Mutex WaitQueueLock;

/// Add a reference to this queue. Must be called while holding the
/// globaal lock.
/// global lock.
void retain_locked() {
referenceCount++;
}
Expand Down
2 changes: 1 addition & 1 deletion include/swift/Runtime/Concurrency.h
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ void swift_taskGroup_destroy(TaskGroup *group);
/// more 'pending' child to account for.
///
/// This function SHOULD be called from the AsyncTask running the task group,
/// however is generally thread-safe as it only only works with the group status.
/// however is generally thread-safe as it only works with the group status.
///
/// Its Swift signature is
///
Expand Down
2 changes: 1 addition & 1 deletion include/swift/Runtime/Debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ struct RuntimeErrorDetails {
const char *currentStackDescription;

// Number of frames in the current stack that should be ignored when reporting
// the issue (exluding the reportToDebugger/_swift_runtime_on_report frame).
// the issue (excluding the reportToDebugger/_swift_runtime_on_report frame).
// The remaining top frame should point to user's code where the bug is.
uintptr_t framesToSkip;

Expand Down
6 changes: 3 additions & 3 deletions include/swift/Runtime/Enum.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ void swift_initEnumMetadataSinglePayload(EnumMetadata *enumType,
unsigned emptyCases);

using getExtraInhabitantTag_t =
SWIFT_CC(swift) unsigned (const OpaqueValue *vaue,
SWIFT_CC(swift) unsigned (const OpaqueValue *value,
unsigned numExtraInhabitants,
const Metadata *payloadType);

Expand Down Expand Up @@ -130,7 +130,7 @@ void swift_storeEnumTagMultiPayload(OpaqueValue *value,
unsigned whichCase);

/// The unspecialized getEnumTagSinglePayload value witness to be used by the
/// VWTs for for specialized generic enums that are multi-payload.
/// VWTs for specialized generic enums that are multi-payload.
///
/// Runtime availability: Swift 5.6
SWIFT_RUNTIME_EXPORT
Expand All @@ -139,7 +139,7 @@ unsigned swift_getMultiPayloadEnumTagSinglePayload(const OpaqueValue *value,
const Metadata *enumType);

/// The unspecialized storeEnumTagSinglePayload value witness to be used by the
/// VWTs for for specialized generic enums that are multi-payload.
/// VWTs for specialized generic enums that are multi-payload.
///
/// Runtime availability: Swift 5.6
SWIFT_RUNTIME_EXPORT
Expand Down
2 changes: 1 addition & 1 deletion include/swift/Runtime/Exclusivity.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ void swift_dumpTrackedAccesses();
#endif

// When building the concurrency library for back deployment, we rename these
// symbols unformly so they don't conflict with the real concurrency library.
// symbols uniformly so they don't conflict with the real concurrency library.
#ifdef SWIFT_CONCURRENCY_BACK_DEPLOYMENT
# define swift_task_enterThreadLocalContext swift_task_enterThreadLocalContextBackDeploy
# define swift_task_exitThreadLocalContext swift_task_exitThreadLocalContextBackDeploy
Expand Down
4 changes: 2 additions & 2 deletions include/swift/Runtime/Heap.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
namespace swift {
namespace {
// This is C++17 and newer, so we simply re-define it. Since the codebase is
// C++14, asume that DR1558 is accounted for and that unused parameters in alias
// C++14, assume that DR1558 is accounted for and that unused parameters in alias
// templates are guaranteed to ensure SFINAE and are not ignored.
template <typename ...>
using void_t = void;
Expand Down Expand Up @@ -91,7 +91,7 @@ struct aligned_alloc<Alignment_, true> {

#if defined(_WIN32)
// FIXME: why is this even needed? This is not permitted as per the C++
// standrd new.delete.placement (§17.6.3.4).
// standard new.delete.placement (§17.6.3.4).
[[nodiscard]] void *operator new(std::size_t size, void *where) noexcept {
return ::operator new(size, where);
}
Expand Down
2 changes: 1 addition & 1 deletion include/swift/Runtime/HeapObject.h
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ bool swift_isUniquelyReferenced_nonNull_native(const struct HeapObject *);
/// \p type: 0 - withoutActuallyEscaping verification
/// Was the closure passed to a withoutActuallyEscaping block
/// escaped in the block?
/// 1 - @objc closure sentinel verfication
/// 1 - @objc closure sentinel verification
/// Was the closure passed to Objective-C escaped?
SWIFT_RUNTIME_EXPORT
bool swift_isEscapingClosureAtFileLocation(const struct HeapObject *object,
Expand Down
2 changes: 1 addition & 1 deletion include/swift/Runtime/SwiftDtoa.h
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ extern "C" {
// * `d` is the number to be formatted
// * `dest` is a buffer of length `length`
//
// Ouput:
// Output:
// * Return value is the length of the string placed into `dest`
// or zero if the buffer is too small.
// * For infinity, it copies "inf" or "-inf".
Expand Down
2 changes: 1 addition & 1 deletion include/swift/Strings.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ constexpr static const StringLiteral DEFAULT_ACTOR_STORAGE_FIELD_NAME =
constexpr static const StringLiteral BUILTIN_TYPE_NAME_PREFIX = "Builtin.";

/// The default SPI group name to associate with Clang SPIs.
constexpr static const StringLiteral CLANG_MODULE_DEFUALT_SPI_GROUP_NAME =
constexpr static const StringLiteral CLANG_MODULE_DEFAULT_SPI_GROUP_NAME =
"OBJC_DEFAULT_SPI_GROUP";

/// The attribute name for @_spi_available
Expand Down
2 changes: 1 addition & 1 deletion include/swift/SwiftRemoteMirror/SwiftRemoteMirror.h
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ int swift_reflection_projectExistential(SwiftReflectionContextRef ContextRef,
/// - When dealing with an error existential, this version will dereference
/// the ExistentialAddress before proceeding.
/// - After setting OutInstanceTypeRef and OutStartOfInstanceData this version
/// may derefence and set OutStartOfInstanceData if OutInstanceTypeRef is a
/// may dereference and set OutStartOfInstanceData if OutInstanceTypeRef is a
/// class TypeRef.
SWIFT_REMOTE_MIRROR_LINKAGE
int swift_reflection_projectExistentialAndUnwrapClass(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

#include "SwiftRemoteMirror.h"

/// The remote representation of a Swift metada pointer as returned by
/// The remote representation of a Swift metadata pointer as returned by
/// interop wrappers.
typedef struct swift_metadata_interop {
uintptr_t Metadata;
Expand Down
2 changes: 1 addition & 1 deletion include/swift/SymbolGraphGen/FragmentInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ namespace symbolgraphgen {
struct FragmentInfo {
/// The swift decl of the referenced symbol.
const ValueDecl *VD;
/// The path components of the refereced symbol.
/// The path components of the referenced symbol.
SmallVector<PathComponent, 4> ParentContexts;
};

Expand Down
6 changes: 3 additions & 3 deletions include/swift/Syntax/AbsoluteRawSyntax.h
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ class SyntaxIdentifier {
}
};

/// Represents a node's position in a syntax tree, described by its overal
/// Represents a node's position in a syntax tree, described by its overall
/// textual offset and the position within its parent.
class AbsoluteSyntaxPosition {
public:
Expand Down Expand Up @@ -254,7 +254,7 @@ class AbsoluteSyntaxInfo {
}
};

/// A \c RawSyntax node that is enrichted with information of its position
/// A \c RawSyntax node that is enriched with information of its position
/// within the syntax tree it lives in.
class AbsoluteRawSyntax {
/// OptionalStorage is a friend so it can access the \c nullptr initializer
Expand Down Expand Up @@ -303,7 +303,7 @@ class AbsoluteRawSyntax {
return Info;
}

/// Get the position at which the leading triva of this node starts.
/// Get the position at which the leading trivia of this node starts.
AbsoluteSyntaxPosition getPosition() const {
return getInfo().getPosition();
};
Expand Down
2 changes: 1 addition & 1 deletion include/swift/Syntax/AtomicCache.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ namespace swift {
template <typename T>
class AtomicCache {
// Whatever type is created through this cache must be pointer-sized,
// othwerise, we can't pretend it's a uintptr_t and use its
// otherwise, we can't pretend it's a uintptr_t and use its
// compare_exchange_strong.
static_assert(sizeof(uintptr_t) == sizeof(RC<T>),
"RC<T> must be pointer sized!");
Expand Down
4 changes: 2 additions & 2 deletions include/swift/Syntax/RawSyntax.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
//
// RawSyntax nodes always live in a SyntaxArena. The user of the RawSyntax nodes
// is responsible to ensure that the SyntaxArena stays alive while the RawSyntax
// nodes are being accessed. During tree cration this is done by the
// nodes are being accessed. During tree creation this is done by the
// SyntaxTreeCreator holding on to the arena. In lib/Syntax, the root SyntaxData
// node retains the syntax arena. Should a RawSyntaxNode A reference a node B
// from a different arena, it automatically adds B's arena as a child arena of
Expand Down Expand Up @@ -276,7 +276,7 @@ class RawSyntax final
Bits.Token.TrailingTriviaLength);
}

/// Compute the node's text length by summing up the length of its childern
/// Compute the node's text length by summing up the length of its children
size_t computeTextLength() {
size_t TextLength = 0;
for (size_t I = 0, NumChildren = getNumChildren(); I < NumChildren; ++I) {
Expand Down
2 changes: 1 addition & 1 deletion include/swift/Syntax/Serialization/SyntaxDeserialization.h
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ struct TokenDescription {
StringRef Text;
};

/// Desrialization traits for TokenDescription.
/// Deserialization traits for TokenDescription.
/// TokenDescriptions always serialized with a token kind, which is
/// the stringified version of their name in the tok:: enum.
/// ```
Expand Down
14 changes: 7 additions & 7 deletions include/swift/Syntax/Syntax.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
// There are two versions of the Syntax type.
// SyntaxRef:
// SyntaxRef is designed around efficiency. It *does not* retain the
// SyntaxDataRef that stores its data - the user must gurantee that the
// SyntaxDataRef that stores its data - the user must guarantee that the
// SyntaxDataRef outlives the SyntaxRef that references it. Instead,
// SyntaxDataRef provides a *view* into the SyntaxDataRef and the view provides
// all convinience APIs. The advantage of this is that the underlying SyntaxData
// all convenience APIs. The advantage of this is that the underlying SyntaxData
// can be stack-allocated and does not need to be copied when the the SyntaxRef
// is being passsed around or when the SyntaxRef is being casted.
// is being passed around or when the SyntaxRef is being casted.
//
// Syntax:
// The syntax nodes are designed for memory safety. Syntax nodes always retain
Expand All @@ -33,7 +33,7 @@
//
// Note that the two access modes can also be mixed. When a syntax tree is
// accessed by Syntax (memory-safe) nodes, they can be demoted to SyntaxRef
// nodes to perform perfomance-critical tasks.
// nodes to perform performance-critical tasks.
//===----------------------------------------------------------------------===//

#ifndef SWIFT_SYNTAX_SYNTAX_H
Expand Down Expand Up @@ -98,7 +98,7 @@ class OwnedSyntaxRef {
SyntaxRefType Ref;

public:
/// Create an *uninintialized* \c OwnedSyntaxRef. Its storage needs to be
/// Create an *uninitialized* \c OwnedSyntaxRef. Its storage needs to be
/// initialised by writing a \c SyntaxDataRef to the pointer returned by
/// \c getDataPtr()
/// Implementation Note: We need to initialise \c Ref without validation,
Expand Down Expand Up @@ -310,7 +310,7 @@ class Syntax {
return Data->getAbsolutePositionBeforeLeadingTrivia();
}

/// Get the offset at which the actual content (i.e. non-triva) of this node
/// Get the offset at which the actual content (i.e. non-trivia) of this node
/// starts.
AbsoluteOffsetPosition getAbsolutePositionAfterLeadingTrivia() const {
return Data->getAbsolutePositionAfterLeadingTrivia();
Expand Down Expand Up @@ -405,7 +405,7 @@ class SyntaxRef {
return getDataRef()->getAbsolutePositionBeforeLeadingTrivia();
}

/// Get the offset at which the actual content (i.e. non-triva) of this node
/// Get the offset at which the actual content (i.e. non-trivia) of this node
/// starts.
AbsoluteOffsetPosition getAbsolutePositionAfterLeadingTrivia() const {
return getDataRef()->getAbsolutePositionAfterLeadingTrivia();
Expand Down
2 changes: 1 addition & 1 deletion include/swift/Syntax/SyntaxData.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class SyntaxDataRef {
/// RawSyntax's \c SyntaxArena outlives this \c SyntaxDataRef.
///
/// In \c SyntaxData, the backing \c SyntaxArena is retained via the \c Arena
/// property, lifiting the responsibility to guarantee the \c RawSyntax node
/// property, lifting the responsibility to guarantee the \c RawSyntax node
/// stays alive from the user.
AbsoluteRawSyntax AbsoluteRaw;

Expand Down
2 changes: 1 addition & 1 deletion include/swift/Syntax/SyntaxFactory.h.gyb
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public:
);

/// Count the number of children for a given syntax node kind,
/// returning a pair of mininum and maximum count of children. The gap
/// returning a pair of minimum and maximum count of children. The gap
/// between these two numbers is the number of optional children.
static std::pair<unsigned, unsigned> countChildren(SyntaxKind Kind);

Expand Down
2 changes: 1 addition & 1 deletion include/swift/TBDGen/TBDGen.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ struct TBDGenOptions {
/// For these modules, TBD gen should embed their symbols in the emitted tbd
/// file.
/// Typically, these modules are static linked libraries. Thus their symbols
/// are embeded in the current dylib.
/// are embedded in the current dylib.
std::vector<std::string> embedSymbolsFromModules;

friend bool operator==(const TBDGenOptions &lhs, const TBDGenOptions &rhs) {
Expand Down