diff options
author | Alex Lorenz <arphaman@gmail.com> | 2017-07-18 17:23:51 +0000 |
---|---|---|
committer | Alex Lorenz <arphaman@gmail.com> | 2017-07-18 17:23:51 +0000 |
commit | ad273341a452a77c4db012893a60427cf817c5bf (patch) | |
tree | 59a1a68601c1bd8ea236f8dd71fa2d484f075c7d /llvm/lib/Object | |
parent | 254ad3de5cd433df78d44503f48c52102e17db7d (diff) | |
download | bcm5719-llvm-ad273341a452a77c4db012893a60427cf817c5bf.tar.gz bcm5719-llvm-ad273341a452a77c4db012893a60427cf817c5bf.zip |
Add a warning for missing '#pragma pack (pop)' and suspicious uses
of '#pragma pack' in included files
This commit adds a new -Wpragma-pack warning. It warns in the following cases:
- When a translation unit is missing terminating #pragma pack (pop) directives.
- When entering an included file if the current alignment value as determined
by '#pragma pack' directives is different from the default alignment value.
- When leaving an included file that changed the state of the current alignment
value.
rdar://10184173
Differential Revision: https://reviews.llvm.org/D35484
llvm-svn: 308327
Diffstat (limited to 'llvm/lib/Object')
0 files changed, 0 insertions, 0 deletions