From 057568a28a41c6ecf5e70aa8ebf42d672e435a26 Mon Sep 17 00:00:00 2001 From: Matt Davis Date: Wed, 12 Sep 2018 18:27:21 +0000 Subject: [PATCH] [Diagnostic] Fix a warning typo. NFC. s/aligment/alignment/ git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@342068 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/DiagnosticsReference.rst | 6 +++--- include/clang/Basic/DiagnosticSemaKinds.td | 2 +- test/Sema/Inputs/pragma-pack1.h | 2 +- test/Sema/suspicious-pragma-pack.c | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/DiagnosticsReference.rst b/docs/DiagnosticsReference.rst index 734a459024..94502f9c49 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 3d66b7a353..0aa8b2a5d4 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 abbf8a8609..3fd299e642 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 d7c5faf069..1acf63b468 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 -- 2.50.1