From: Alex Lorenz Date: Mon, 31 Jul 2017 14:08:41 +0000 (+0000) Subject: Document '-Wpragma-pack' in the release notes X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=da3928ab2e5fa6a0568542c070836a382f4a62ed;p=clang Document '-Wpragma-pack' in the release notes git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@309562 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/docs/ReleaseNotes.rst b/docs/ReleaseNotes.rst index 9ac545ddd1..f10af7279c 100644 --- a/docs/ReleaseNotes.rst +++ b/docs/ReleaseNotes.rst @@ -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 -------------------------------------------------