Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e6cdfb7

Browse files
Fix typos and spelling errors across codebase (#156270)
Corrected various spelling mistakes such as 'occurred', 'receiver', 'initialized', 'length', and others in comments, variable names, function names, and documentation throughout the project. These changes improve code readability and maintain consistency in naming and documentation. Co-authored-by: Louis Dionne <[email protected]>
1 parent 2e0e4f6 commit e6cdfb7

91 files changed

Lines changed: 143 additions & 143 deletions

File tree

Some content is hidden

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

bolt/lib/Core/DebugNames.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -677,11 +677,11 @@ static constexpr uint32_t getDebugNamesHeaderSize() {
677677
constexpr uint32_t BucketCountLength = sizeof(uint32_t);
678678
constexpr uint32_t NameCountLength = sizeof(uint32_t);
679679
constexpr uint32_t AbbrevTableSizeLength = sizeof(uint32_t);
680-
constexpr uint32_t AugmentationStringSizeLenght = sizeof(uint32_t);
680+
constexpr uint32_t AugmentationStringSizeLength = sizeof(uint32_t);
681681
return VersionLength + PaddingLength + CompUnitCountLength +
682682
LocalTypeUnitCountLength + ForeignTypeUnitCountLength +
683683
BucketCountLength + NameCountLength + AbbrevTableSizeLength +
684-
AugmentationStringSizeLenght;
684+
AugmentationStringSizeLength;
685685
}
686686

687687
void DWARF5AcceleratorTable::emitHeader() const {

bolt/test/X86/Inputs/dwarf4-gdb-index-types-helper.s

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
.type _Z3foov,@function
1717
_Z3foov: # @_Z3foov
1818
.Lfunc_begin0:
19-
.file 1 "/dwarf4-lenght-test" "helper.cpp"
19+
.file 1 "/dwarf4-length-test" "helper.cpp"
2020
.loc 1 7 0 # helper.cpp:7:0
2121
.cfi_startproc
2222
# %bb.0:
@@ -257,7 +257,7 @@ _Z3foov: # @_Z3foov
257257
.Linfo_string1:
258258
.asciz "helper.cpp" # string offset=146
259259
.Linfo_string2:
260-
.asciz "/home/ayermolo/local/tasks/T117448832/dwarf4-lenght-test" # string offset=157
260+
.asciz "/home/ayermolo/local/tasks/T117448832/dwarf4-length-test" # string offset=157
261261
.Linfo_string3:
262262
.asciz "_Z3foov" # string offset=214
263263
.Linfo_string4:

bolt/test/X86/Inputs/dwarf4-gdb-index-types-main.s

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
.type main,@function
1717
main: # @main
1818
.Lfunc_begin0:
19-
.file 1 "/dwarf4-lenght-test" "main.cpp"
19+
.file 1 "/dwarf4-length-test" "main.cpp"
2020
.loc 1 7 0 # main.cpp:7:0
2121
.cfi_startproc
2222
# %bb.0:
@@ -258,7 +258,7 @@ main: # @main
258258
.Linfo_string1:
259259
.asciz "main.cpp" # string offset=146
260260
.Linfo_string2:
261-
.asciz "/dwarf4-lenght-test" # string offset=155
261+
.asciz "/dwarf4-length-test" # string offset=155
262262
.Linfo_string3:
263263
.asciz "main" # string offset=212
264264
.Linfo_string4:

clang-tools-extra/clang-tidy/modernize/MakeSmartPtrCheck.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ bool MakeSmartPtrCheck::replaceNew(DiagnosticBuilder &Diag,
292292
// Foo(Bar{1, 2}) => true
293293
// Foo(1) => false
294294
// Foo{1} => false
295-
auto HasListIntializedArgument = [](const CXXConstructExpr *CE) {
295+
auto HasListInitializedArgument = [](const CXXConstructExpr *CE) {
296296
for (const auto *Arg : CE->arguments()) {
297297
Arg = Arg->IgnoreImplicit();
298298

@@ -348,7 +348,7 @@ bool MakeSmartPtrCheck::replaceNew(DiagnosticBuilder &Diag,
348348
// std::make_smart_ptr<S2>(std::vector<int>({1}));
349349
// std::make_smart_ptr<S3>(S2{1, 2}, 3);
350350
if (const auto *CE = New->getConstructExpr()) {
351-
if (HasListIntializedArgument(CE))
351+
if (HasListInitializedArgument(CE))
352352
return false;
353353
}
354354
if (ArraySizeExpr.empty()) {
@@ -370,7 +370,7 @@ bool MakeSmartPtrCheck::replaceNew(DiagnosticBuilder &Diag,
370370
SourceRange InitRange;
371371
if (const auto *NewConstruct = New->getConstructExpr()) {
372372
if (NewConstruct->isStdInitListInitialization() ||
373-
HasListIntializedArgument(NewConstruct)) {
373+
HasListInitializedArgument(NewConstruct)) {
374374
// FIXME: Add fixes for direct initialization with the initializer-list
375375
// constructor. Similar to the above CallInit case, the type has to be
376376
// specified explicitly in the fixes.

clang-tools-extra/clangd/Hover.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1793,7 +1793,7 @@ void parseDocumentationParagraph(llvm::StringRef Text, markup::Paragraph &Out) {
17931793

17941794
void parseDocumentation(llvm::StringRef Input, markup::Document &Output) {
17951795
// A documentation string is treated as a sequence of paragraphs,
1796-
// where the paragraphs are seperated by at least one empty line
1796+
// where the paragraphs are separated by at least one empty line
17971797
// (meaning 2 consecutive newline characters).
17981798
// Possible leading empty lines (introduced by an odd number > 1 of
17991799
// empty lines between 2 paragraphs) will be removed later in the Markup

clang-tools-extra/clangd/index/FileIndex.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ FileShardedIndex::FileShardedIndex(IndexFileIn Input)
143143
}
144144
}
145145
}
146-
// Attribute references into each file they occured in.
146+
// Attribute references into each file they occurred in.
147147
if (Index.Refs) {
148148
for (const auto &SymRefs : *Index.Refs) {
149149
for (const auto &R : SymRefs.second) {

clang-tools-extra/test/clang-tidy/checkers/abseil/faster-strsplit-delimiter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ void SplitDelimiters() {
7777
// CHECK-MESSAGES: [[@LINE-1]]:25: warning: absl::StrSplit()
7878
// CHECK-FIXES: absl::StrSplit("ABC", 'A', [](absl::string_view) { return true; });
7979

80-
// Doesn't do anything with other strings lenghts.
80+
// Doesn't do anything with other strings lengths.
8181
absl::StrSplit("ABC", "AB");
8282
absl::StrSplit("ABC", absl::ByAnyChar(""));
8383
absl::StrSplit("ABC", absl::ByAnyChar(" \t"));

clang-tools-extra/test/clang-tidy/checkers/readability/function-cognitive-complexity.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ void unittest_false() {
6565
//------------------------------ B1. Increments ------------------------------//
6666
//----------------------------------------------------------------------------//
6767
// Check that every thing listed in B1 of the specification does indeed //
68-
// recieve the base increment, and that not-body does not increase nesting //
68+
// receive the base increment, and that not-body does not increase nesting //
6969
//----------------------------------------------------------------------------//
7070

7171
// break does not increase cognitive complexity.
@@ -698,7 +698,7 @@ void unittest_b2_10() {
698698
//-------------------------- B3. Nesting increments --------------------------//
699699
//----------------------------------------------------------------------------//
700700
// Check that every thing listed in B3 of the specification does indeed //
701-
// recieve the penalty of the current nesting level //
701+
// receive the penalty of the current nesting level //
702702
//----------------------------------------------------------------------------//
703703

704704
void unittest_b3_00() {

clang/include/clang/Sema/Sema.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6988,7 +6988,7 @@ class Sema final : public SemaBase {
69886988
const ObjCInterfaceDecl *UnknownObjCClass = nullptr,
69896989
bool ObjCPropertyAccess = false,
69906990
bool AvoidPartialAvailabilityChecks = false,
6991-
ObjCInterfaceDecl *ClassReciever = nullptr,
6991+
ObjCInterfaceDecl *ClassReceiver = nullptr,
69926992
bool SkipTrailingRequiresClause = false);
69936993

69946994
/// Emit a note explaining that this function is deleted.

clang/include/clang/StaticAnalyzer/Checkers/Checkers.td

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,11 +172,11 @@ def CallAndMessageChecker
172172
"false", InAlpha>,
173173
CmdLineOption<
174174
Boolean, "NilReceiver",
175-
"Check whether the reciever in the message expression is nil",
175+
"Check whether the receiver in the message expression is nil",
176176
"true", Released>,
177177
CmdLineOption<
178178
Boolean, "UndefReceiver",
179-
"Check whether the reciever in the message expression is "
179+
"Check whether the receiver in the message expression is "
180180
"undefined",
181181
"true", Released>,
182182
CmdLineOption<

0 commit comments

Comments
 (0)