r309562 - Document '-Wpragma-pack' in the release notes

Alex Lorenz via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 31 07:08:41 PDT 2017


Author: arphaman
Date: Mon Jul 31 07:08:41 2017
New Revision: 309562

URL: http://llvm.org/viewvc/llvm-project?rev=309562&view=rev
Log:
Document '-Wpragma-pack' in the release notes

Modified:
    cfe/trunk/docs/ReleaseNotes.rst

Modified: cfe/trunk/docs/ReleaseNotes.rst
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/docs/ReleaseNotes.rst?rev=309562&r1=309561&r2=309562&view=diff
==============================================================================
--- cfe/trunk/docs/ReleaseNotes.rst (original)
+++ cfe/trunk/docs/ReleaseNotes.rst Mon Jul 31 07:08:41 2017
@@ -52,7 +52,16 @@ Major New Features
 Improvements to Clang's diagnostics
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
--  ...
+- `-Wpragma-pack` is a new warning that warns in the following cases:
+  - When a translation unit is missing terminating `#pragma pack (pop)`
+    directives.
+  - When leaving an included file that changes the current alignment value,
+    i.e. when the alignment before `#include` is different to the alignment
+    after `#include`.
+  - `-Wpragma-pack-suspicious-include` (disabled by default) warns on an
+    `#include` when the included file contains structures or unions affected by
+    a non-default alignment that has been specified using a `#pragma pack`
+    directive prior to the `#include`.
 
 Non-comprehensive list of changes in this release
 -------------------------------------------------




More information about the cfe-commits mailing list