]> granicus.if.org Git - clang/commitdiff
Document '-Wpragma-pack' in the release notes
authorAlex Lorenz <arphaman@gmail.com>
Mon, 31 Jul 2017 14:08:41 +0000 (14:08 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Mon, 31 Jul 2017 14:08:41 +0000 (14:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@309562 91177308-0d34-0410-b5e6-96231b3b80d8

docs/ReleaseNotes.rst

index 9ac545ddd111a92003dd503d012785aadc667e7e..f10af7279c56dd438ce32f1db07eb9b48b497895 100644 (file)
@@ -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
 -------------------------------------------------