Reapply: [clang][diagnostics] Adding -Wpacked-non-pod to -Wall
authorZenong Zhang <slaterlatiao@gmail.com>
Thu, 25 May 2023 19:40:56 +0000 (12:40 -0700)
committerErich Keane <erich.keane@intel.com>
Thu, 25 May 2023 20:02:00 +0000 (13:02 -0700)
commit91689744477843a588f701fdc598ccff3cbbc8fb
tree1daedc5882c9fc5edb71c32589ccfab387063362
parent59ad9c3f38c285e988072d100931bcbfb24196fb
Reapply: [clang][diagnostics] Adding -Wpacked-non-pod to -Wall

Users will be informed when non-POD is not packed using -Wall. This
is also consistent with GCC.

Fixes PR#60832.

Differential Revision: https://reviews.llvm.org/D151162
clang/include/clang/Basic/DiagnosticGroups.td
clang/test/CodeGenCXX/warn-all-padded-packed-packed-non-pod.cpp [moved from clang/test/CodeGenCXX/warn-padded-packed.cpp with 93% similarity]
clang/test/Misc/warning-wall.c