diff options
-rw-r--r-- | clang/docs/ReleaseNotes.rst | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/clang/docs/ReleaseNotes.rst b/clang/docs/ReleaseNotes.rst index 9ac545ddd11..f10af7279c5 100644 --- a/clang/docs/ReleaseNotes.rst +++ b/clang/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 ------------------------------------------------- |