Skip to content

Commit

Permalink
[Diagnostic] Fix a warning typo. NFC.
Browse files Browse the repository at this point in the history
s/aligment/alignment/



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@342068 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
Matt Davis authored and Matt Davis committed Sep 12, 2018
1 parent cbe41bd commit 057568a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions docs/DiagnosticsReference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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`|
Expand Down
2 changes: 1 addition & 1 deletion include/clang/Basic/DiagnosticSemaKinds.td
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,7 @@ def warn_pragma_pack_non_default_at_include : Warning<
"members in the included file">, InGroup<PragmaPackSuspiciousInclude>,
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<PragmaPack>;
def warn_pragma_pack_no_pop_eof : Warning<"unterminated "
"'#pragma pack (push, ...)' at end of file">, InGroup<PragmaPack>;
Expand Down
2 changes: 1 addition & 1 deletion test/Sema/Inputs/pragma-pack1.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion test/Sema/suspicious-pragma-pack.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 057568a

Please sign in to comment.