diff --git a/clang/include/clang/Basic/DiagnosticSemaKinds.td b/clang/include/clang/Basic/DiagnosticSemaKinds.td --- a/clang/include/clang/Basic/DiagnosticSemaKinds.td +++ b/clang/include/clang/Basic/DiagnosticSemaKinds.td @@ -11130,7 +11130,7 @@ "export declaration appears within anonymous namespace">; def note_anonymous_namespace : Note<"anonymous namespace begins here">; def ext_export_no_name_block : ExtWarn< - "ISO C++20 does not permit %select{an empty|a static_assert}0 declaration " + "ISO C++20 does not permit %select{an empty|a static assertion}0 declaration " "to appear in an export block">, InGroup; def ext_export_no_names : ExtWarn< "ISO C++20 does not permit a declaration that does not introduce any names " @@ -11139,7 +11139,7 @@ "declaration does not introduce any names to be exported">; def note_export : Note<"export block begins here">; def err_export_no_name : Error< - "%select{empty|static_assert|asm}0 declaration cannot be exported">; + "%select{empty|static assertion|asm}0 declaration cannot be exported">; def ext_export_using_directive : ExtWarn< "ISO C++20 does not permit using directive to be exported">, InGroup>; diff --git a/clang/test/CXX/expr/expr.prim/expr.prim.req/nested-requirement.cpp b/clang/test/CXX/expr/expr.prim/expr.prim.req/nested-requirement.cpp --- a/clang/test/CXX/expr/expr.prim/expr.prim.req/nested-requirement.cpp +++ b/clang/test/CXX/expr/expr.prim/expr.prim.req/nested-requirement.cpp @@ -44,4 +44,4 @@ requires a == 0; // expected-note{{because 'a == 0' would be invalid: constraint variable 'a' cannot be used in an evaluated context}} }; static_assert(C2); // expected-note{{because 'int' does not satisfy 'C2'}} expected-error{{static assertion failed}} -} \ No newline at end of file +} diff --git a/clang/test/CXX/module/module.interface/p3.cpp b/clang/test/CXX/module/module.interface/p3.cpp --- a/clang/test/CXX/module/module.interface/p3.cpp +++ b/clang/test/CXX/module/module.interface/p3.cpp @@ -11,7 +11,7 @@ export { // expected-note 3{{export block begins here}} ; // expected-error {{ISO C++20 does not permit an empty declaration to appear in an export block}} - static_assert(true); // expected-error {{ISO C++20 does not permit a static_assert declaration to appear in an export block}} + static_assert(true); // expected-error {{ISO C++20 does not permit a static assertion declaration to appear in an export block}} using namespace A; // expected-error {{ISO C++20 does not permit using directive to be exported}} } diff --git a/clang/test/CXX/temp/temp.constr/temp.constr.constr/partial-specializations.cpp b/clang/test/CXX/temp/temp.constr/temp.constr.constr/partial-specializations.cpp --- a/clang/test/CXX/temp/temp.constr/temp.constr.constr/partial-specializations.cpp +++ b/clang/test/CXX/temp/temp.constr/temp.constr.constr/partial-specializations.cpp @@ -81,4 +81,4 @@ // expected-note@-3{{during template argument deduction for variable template partial specialization 'v1' [with T = int]}} // expected-error@-4{{static assertion failed due to requirement 'v1'}} -} \ No newline at end of file +} diff --git a/clang/test/SemaCXX/cxx98-compat.cpp b/clang/test/SemaCXX/cxx98-compat.cpp --- a/clang/test/SemaCXX/cxx98-compat.cpp +++ b/clang/test/SemaCXX/cxx98-compat.cpp @@ -152,7 +152,7 @@ void no_except() noexcept; // expected-warning {{noexcept specifications are incompatible with C++98}} bool no_except_expr = noexcept(1 + 1); // expected-warning {{noexcept expressions are incompatible with C++98}} void *null = nullptr; // expected-warning {{'nullptr' is incompatible with C++98}} -static_assert(true, "!"); // expected-warning {{static assertion declarations are incompatible with C++98}} +static_assert(true, "!"); // expected-warning {{static_assert declarations are incompatible with C++98}} struct InhCtorBase { InhCtorBase(int); diff --git a/clang/test/SemaCXX/modules-ts.cppm b/clang/test/SemaCXX/modules-ts.cppm --- a/clang/test/SemaCXX/modules-ts.cppm +++ b/clang/test/SemaCXX/modules-ts.cppm @@ -54,7 +54,7 @@ ; // expected-warning {{ISO C++20 does not permit an empty declaration to appear in an export block}} } export { // expected-note {{begins here}} - static_assert(true); // expected-warning {{ISO C++20 does not permit a static_assert declaration to appear in an export block}} + static_assert(true); // expected-warning {{ISO C++20 does not permit a static assertion declaration to appear in an export block}} } int use_b = b;