[Sema] Packed member warning: Use the typedef name for anonymous structures
authorAlex Lorenz <arphaman@gmail.com>
Wed, 5 Oct 2016 09:27:48 +0000 (09:27 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Wed, 5 Oct 2016 09:27:48 +0000 (09:27 +0000)
commit014181e7f41cdad4a7c6e593360fc610cce1d210
treebdf75ef8b8923625a0b25e4a9d15c614538a72ce
parent602e625622c1da7510c65b1d2744e8f20504d435
[Sema] Packed member warning: Use the typedef name for anonymous structures

This commit improves the packed member warning by showing the name of the
anonymous structure/union when it was defined within a typedef declaration.

rdar://28498901

Differential Revision: https://reviews.llvm.org/D25106

llvm-svn: 283304
clang/lib/Sema/SemaChecking.cpp
clang/test/Sema/address-packed.c