diff --git a/docs/DiagnosticsReference.rst b/docs/DiagnosticsReference.rst index 734a45902484..94502f9c49ec 100644 --- a/docs/DiagnosticsReference.rst +++ b/docs/DiagnosticsReference.rst @@ -8637,9 +8637,9 @@ Also controls `-Wpragma-pack-suspicious-include`_. **Diagnostic text:** -+---------------------------------------------------------------------------------------------------------------+ -|:warning:`warning:` |nbsp| :diagtext:`the current #pragma pack aligment value is modified in the included file`| -+---------------------------------------------------------------------------------------------------------------+ ++----------------------------------------------------------------------------------------------------------------+ +|:warning:`warning:` |nbsp| :diagtext:`the current #pragma pack alignment value is modified in the included file`| ++----------------------------------------------------------------------------------------------------------------+ +---------------------------------------------------------------------------------------------+ |:warning:`warning:` |nbsp| :diagtext:`unterminated '#pragma pack (push, ...)' at end of file`| diff --git a/include/clang/Basic/DiagnosticSemaKinds.td b/include/clang/Basic/DiagnosticSemaKinds.td index 3d66b7a353ec..0aa8b2a5d453 100644 --- a/include/clang/Basic/DiagnosticSemaKinds.td +++ b/include/clang/Basic/DiagnosticSemaKinds.td @@ -774,7 +774,7 @@ def warn_pragma_pack_non_default_at_include : Warning< "members in the included file">, InGroup, DefaultIgnore; def warn_pragma_pack_modified_after_include : Warning< - "the current #pragma pack aligment value is modified in the included " + "the current #pragma pack alignment value is modified in the included " "file">, InGroup; def warn_pragma_pack_no_pop_eof : Warning<"unterminated " "'#pragma pack (push, ...)' at end of file">, InGroup; diff --git a/test/Sema/Inputs/pragma-pack1.h b/test/Sema/Inputs/pragma-pack1.h index abbf8a8609f1..3fd299e642a1 100644 --- a/test/Sema/Inputs/pragma-pack1.h +++ b/test/Sema/Inputs/pragma-pack1.h @@ -16,7 +16,7 @@ struct ReceivesPragma { }; #include "pragma-pack2.h" #ifdef SET_SECOND_HEADER -// expected-warning@-3 {{the current #pragma pack aligment value is modified in the included file}} +// expected-warning@-3 {{the current #pragma pack alignment value is modified in the included file}} #endif #ifdef PUSH_POP_FIRST_HEADER diff --git a/test/Sema/suspicious-pragma-pack.c b/test/Sema/suspicious-pragma-pack.c index d7c5faf06910..1acf63b46892 100644 --- a/test/Sema/suspicious-pragma-pack.c +++ b/test/Sema/suspicious-pragma-pack.c @@ -38,7 +38,7 @@ #include "pragma-pack1.h" #ifdef WARN_MODIFIED_HEADER -// expected-warning@-3 {{the current #pragma pack aligment value is modified in the included file}} +// expected-warning@-3 {{the current #pragma pack alignment value is modified in the included file}} #endif #ifdef PUSH_SET_HERE