Skip to content

Commit c3aef49

Browse files
committed
Fix typo
1 parent bb184fc commit c3aef49

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

clang/include/clang/Basic/DiagnosticSemaKinds.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8201,7 +8201,7 @@ def note_default_init_const_member : Note<
82018201
"member %0 declared 'const' here">;
82028202
def warn_default_init_const : Warning<
82038203
"default initialization of an object of type %0%select{| with const member}1"
8204-
"%select{| leaves the object unitialized and}2 is incompatible with C++">,
8204+
"%select{| leaves the object uninitialized and}2 is incompatible with C++">,
82058205
InGroup<DefaultConstInit>;
82068206
def err_default_init_const : Error<
82078207
"default initialization of an object of const type %0"

clang/lib/Sema/SemaInit.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6584,7 +6584,7 @@ void InitializationSequence::InitializeFrom(Sema &S,
65846584
}
65856585
}
65866586
// If the record has any members which are const (recursively checked),
6587-
// then we want to diagnose those as being unitialized if there is no
6587+
// then we want to diagnose those as being uninitialized if there is no
65886588
// initializer present.
65896589
if (!Initializer) {
65906590
if (const FieldDecl *FD = GetConstField(Rec)) {

clang/test/Sema/typedef-retain.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ typedef int a[5];
1717
void test3(void) {
1818
typedef const a b;
1919
b r; // expected-note {{variable 'r' declared const here}} \
20-
expected-warning {{default initialization of an object of type 'b' (aka 'const int[5]') leaves the object unitialized and is incompatible with C++}}
20+
expected-warning {{default initialization of an object of type 'b' (aka 'const int[5]') leaves the object uninitialized and is incompatible with C++}}
2121
r[0] = 10; // expected-error {{cannot assign to variable 'r' with const-qualified type 'b' (aka 'const int[5]')}}
2222
}
2323

clang/test/Sema/warn-default-const-init.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ struct V { int i; const struct A a; }; // c-note {{member 'a' declared 'const' h
1414
cxx-note {{default constructor of 'V' is implicitly deleted because field 'a' of const-qualified type 'const struct A' would not be initialized}}
1515

1616
void f() {
17-
struct S s1; // c-warning {{default initialization of an object of type 'struct S' with const member leaves the object unitialized and is incompatible with C++}} \
17+
struct S s1; // c-warning {{default initialization of an object of type 'struct S' with const member leaves the object uninitialized and is incompatible with C++}} \
1818
cxx-error {{call to implicitly-deleted default constructor of 'struct S'}}
1919
struct S s2 = { 0 };
2020
}
2121
void g() {
22-
struct T t1; // c-warning {{default initialization of an object of type 'struct T' with const member leaves the object unitialized and is incompatible with C++}} \
22+
struct T t1; // c-warning {{default initialization of an object of type 'struct T' with const member leaves the object uninitialized and is incompatible with C++}} \
2323
cxx-error {{call to implicitly-deleted default constructor of 'struct T'}}
2424
struct T t2 = { { 0 } };
2525
}
@@ -28,7 +28,7 @@ void h() {
2828
struct U u2 = { { 0 }, 0 };
2929
}
3030
void x() {
31-
struct V v1; // c-warning {{default initialization of an object of type 'struct V' with const member leaves the object unitialized and is incompatible with C++}} \
31+
struct V v1; // c-warning {{default initialization of an object of type 'struct V' with const member leaves the object uninitialized and is incompatible with C++}} \
3232
cxx-error {{call to implicitly-deleted default constructor of 'struct V'}}
3333
struct V v2 = { 0 };
3434
struct V v3 = { 0, { 0 } };
@@ -46,7 +46,7 @@ const struct S s; // c-warning {{default initialization of an object of type '
4646
cxx-error {{call to implicitly-deleted default constructor of 'const struct S'}}
4747

4848
void func() {
49-
const int a; // c-warning {{default initialization of an object of type 'const int' leaves the object unitialized and is incompatible with C++}} \
49+
const int a; // c-warning {{default initialization of an object of type 'const int' leaves the object uninitialized and is incompatible with C++}} \
5050
cxx-error {{default initialization of an object of const type 'const int'}}
5151
static const int b; // c-warning {{default initialization of an object of type 'const int' is incompatible with C++}} \
5252
cxx-error {{default initialization of an object of const type 'const int'}}

0 commit comments

Comments
 (0)