Skip to content

Commit 4c90d43

Browse files
Fix typos and spelling errors across codebase
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.
1 parent a247da4 commit 4c90d43

File tree

96 files changed

+148
-144
lines changed

Some content is hidden

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

96 files changed

+148
-144
lines changed

bolt/lib/Core/DebugNames.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ DWARF5AcceleratorTable::DWARF5AcceleratorTable(
5555
llvm::hash_value(llvm::StringRef(CStr)), StrOffset);
5656
if (!R.second)
5757
BC.errs()
58-
<< "BOLT-WARNING: [internal-dwarf-error]: collision occured on "
58+
<< "BOLT-WARNING: [internal-dwarf-error]: collision occurred on "
5959
<< CStr << " at offset : 0x" << Twine::utohexstr(StrOffset)
6060
<< ". Previous string offset is: 0x"
6161
<< Twine::utohexstr(R.first->second) << ".\n";
@@ -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
@@ -294,7 +294,7 @@ bool MakeSmartPtrCheck::replaceNew(DiagnosticBuilder &Diag,
294294
// Foo(Bar{1, 2}) => true
295295
// Foo(1) => false
296296
// Foo{1} => false
297-
auto HasListIntializedArgument = [](const CXXConstructExpr *CE) {
297+
auto HasListInitializedArgument = [](const CXXConstructExpr *CE) {
298298
for (const auto *Arg : CE->arguments()) {
299299
Arg = Arg->IgnoreImplicit();
300300

@@ -350,7 +350,7 @@ bool MakeSmartPtrCheck::replaceNew(DiagnosticBuilder &Diag,
350350
// std::make_smart_ptr<S2>(std::vector<int>({1}));
351351
// std::make_smart_ptr<S3>(S2{1, 2}, 3);
352352
if (const auto *CE = New->getConstructExpr()) {
353-
if (HasListIntializedArgument(CE))
353+
if (HasListInitializedArgument(CE))
354354
return false;
355355
}
356356
if (ArraySizeExpr.empty()) {
@@ -372,7 +372,7 @@ bool MakeSmartPtrCheck::replaceNew(DiagnosticBuilder &Diag,
372372
SourceRange InitRange;
373373
if (const auto *NewConstruct = New->getConstructExpr()) {
374374
if (NewConstruct->isStdInitListInitialization() ||
375-
HasListIntializedArgument(NewConstruct)) {
375+
HasListInitializedArgument(NewConstruct)) {
376376
// FIXME: Add fixes for direct initialization with the initializer-list
377377
// constructor. Similar to the above CallInit case, the type has to be
378378
// 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
@@ -1782,7 +1782,7 @@ void parseDocumentationParagraph(llvm::StringRef Text, markup::Paragraph &Out) {
17821782

17831783
void parseDocumentation(llvm::StringRef Input, markup::Document &Output) {
17841784
// A documentation string is treated as a sequence of paragraphs,
1785-
// where the paragraphs are seperated by at least one empty line
1785+
// where the paragraphs are separated by at least one empty line
17861786
// (meaning 2 consecutive newline characters).
17871787
// Possible leading empty lines (introduced by an odd number > 1 of
17881788
// 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/docs/ReleaseNotes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ Bug Fixes to C++ Support
320320
casts that are guaranteed to fail (#GH137518).
321321
- Fix bug rejecting partial specialization of variable templates with auto NTTPs (#GH118190).
322322
- Fix a crash if errors "member of anonymous [...] redeclares" and
323-
"intializing multiple members of union" coincide (#GH149985).
323+
"initializing multiple members of union" coincide (#GH149985).
324324
- Fix a crash when using ``explicit(bool)`` in pre-C++11 language modes. (#GH152729)
325325
- Fix the parsing of variadic member functions when the ellipis immediately follows a default argument.(#GH153445)
326326
- Fixed a bug that caused ``this`` captured by value in a lambda with a dependent explicit object parameter to not be

clang/include/clang/Sema/Sema.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6946,7 +6946,7 @@ class Sema final : public SemaBase {
69466946
const ObjCInterfaceDecl *UnknownObjCClass = nullptr,
69476947
bool ObjCPropertyAccess = false,
69486948
bool AvoidPartialAvailabilityChecks = false,
6949-
ObjCInterfaceDecl *ClassReciever = nullptr,
6949+
ObjCInterfaceDecl *ClassReceiver = nullptr,
69506950
bool SkipTrailingRequiresClause = false);
69516951

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

0 commit comments

Comments
 (0)