Skip to content

Commit f8ae46b

Browse files
committed
[inclusive-language] changed sanity to soundness
1 parent 141b4d0 commit f8ae46b

File tree

78 files changed

+133
-133
lines changed

Some content is hidden

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

78 files changed

+133
-133
lines changed

cmake/modules/SwiftXcodeSupport.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ function(fix_imported_targets_for_xcode imported_targets)
8484
endif()
8585

8686
# First check that we actually imported the configuration that LLVM said
87-
# that we did. This is just a sanity check.
87+
# that we did. This is just a soundness check.
8888
check_imported_target_has_imported_configuration(${target} ${LLVM_BUILD_TYPE_UPPER})
8989

9090
# Then loop through all of the imported properties and translate.

docs/ContinuousIntegration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ All supported platforms | @swift-ci Please clean test | Sw
8787
macOS platform | @swift-ci Please test macOS platform | Swift Test macOS Platform (smoke test)<br>Swift Test macOS Platform
8888
macOS platform | @swift-ci Please clean test macOS platform | Swift Test macOS Platform (smoke test)<br>Swift Test macOS Platform
8989
macOS platform | @swift-ci Please benchmark | Swift Benchmark on macOS Platform (many runs - rigorous)
90-
macOS platform | @swift-ci Please smoke benchmark | Swift Benchmark macOS Platform (few runs - sanity)
90+
macOS platform | @swift-ci Please smoke benchmark | Swift Benchmark macOS Platform (few runs - soundness)
9191
Linux platform | @swift-ci Please test Linux platform | Swift Test Linux Platform (smoke test)<br>Swift Test Linux Platform
9292
Linux platform | @swift-ci Please clean test Linux platform | Swift Test Linux Platform (smoke test)<br>Swift Test Linux Platform
9393
macOS platform | @swift-ci Please ASAN test | Swift ASAN Test macOS Platform
@@ -126,7 +126,7 @@ A validation test on Linux does the following:
126126
Platform | Comment | Check Status
127127
------------ | ------- | ------------
128128
macOS platform | @swift-ci Please benchmark | Swift Benchmark on macOS Platform (many runs - rigorous)
129-
macOS platform | @swift-ci Please smoke benchmark | Swift Benchmark on macOS Platform (few runs - sanity)
129+
macOS platform | @swift-ci Please smoke benchmark | Swift Benchmark on macOS Platform (few runs - soundness)
130130

131131
### Linting
132132

docs/StringDesign.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ programmers well; so, why does Swift have its own string type?
540540
* C strings had to stay around for performance reasons and
541541
interoperability
542542

543-
Want performance of C, sane semantics of C++ strings, and high-level
543+
Want performance of C, sound semantics of C++ strings, and high-level
544544
goodness of ObjC.
545545

546546
The design of ``NSString`` is *very* different from the string

docs/archive/LangRef.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ <h3 id="decl-struct">struct Declarations</h3>
490490
Structs do not support inheritance due to undesirable ripple effects across
491491
the design of the language. For example, method dispatch would arguably need
492492
to become virtual, not static. The storage of the type would arguably need
493-
to become indirected so that an array of T could be implemented sanely
493+
to become indirected so that an array of T could be implemented soundly
494494
(because we don't know if T is actually a T, or a subclass of T). We'd need
495495
to store the "isa"/vtable in the struct so that virtual method dispatch
496496
could be implemented, and this has additional storage costs. None of these

docs/proposals/rejected/ClassConstruction.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
Objective-C's "designated initializers pattern seems at first to
1111
create a great deal of complication. However, designated initializers
12-
are simply the only sane response to Objective-C's initialization rules,
12+
are simply the only sound response to Objective-C's initialization rules,
1313
which are the root cause of the complication.
1414

1515
This proposal suggests an approach to initialization that avoids the

include/swift/Basic/UUID.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
//===----------------------------------------------------------------------===//
1212
//
1313
// This is an interface over the standard OSF uuid library that gives UUIDs
14-
// sane value semantics and operators.
14+
// sound value semantics and operators.
1515
//
1616
//===----------------------------------------------------------------------===//
1717

include/swift/RemoteInspection/ReflectionContext.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1177,7 +1177,7 @@ class ReflectionContext
11771177
bool projectEnumValue(RemoteAddress EnumAddress, const TypeRef *EnumTR,
11781178
int *CaseIndex,
11791179
remote::TypeInfoProvider *ExternalTypeInfo) {
1180-
// Get the TypeInfo and sanity-check it
1180+
// Get the TypeInfo and soundness-check it
11811181
if (EnumTR == nullptr) {
11821182
return false;
11831183
}

include/swift/RemoteInspection/TypeRefBuilder.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -994,7 +994,7 @@ class TypeRefBuilder {
994994
return nullptr;
995995
}
996996

997-
// Sanity: Verify that the generic params per level add
997+
// Soundness: Verify that the generic params per level add
998998
// up exactly to the number of args we were provided, and
999999
// that we don't have a rediculous number of either one
10001000
auto genericParamsPerLevel = *maybeGenericParamsPerLevel;

include/swift/SIL/FieldSensitivePrunedLiveness.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1046,7 +1046,7 @@ class FieldSensitivePrunedLivenessBoundary {
10461046
public:
10471047
FieldSensitivePrunedLivenessBoundary(unsigned numBits) : numBits(numBits) {}
10481048

1049-
/// Sanity check meant for NDEBUG mode.
1049+
/// Soundness check meant for NDEBUG mode.
10501050
unsigned getNumLastUsersAndDeadDefs(unsigned bitNo) const {
10511051
#ifdef NDEBUG
10521052
llvm_unreachable("Only call in asserts build!\n");

lib/AST/ASTContext.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2204,7 +2204,7 @@ void OverriddenDeclsRequest::cacheResult(
22042204
if (value.empty())
22052205
return;
22062206

2207-
// Sanity-check the declarations we were given.
2207+
// Soundness-check the declarations we were given.
22082208
for (auto overriddenDecl : value) {
22092209
assert(overriddenDecl->getKind() == decl->getKind() &&
22102210
"Overridden decl kind mismatch");

0 commit comments

Comments
 (0)