]> granicus.if.org Git - clang/commit
[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)
commit1f404de8823b40772a3492f5292446356322c566
tree161a6b51513633b9dedfbed4b2ea50b0b4ef0241
parentf002f9ac813f04874a514814f94890e32a9ed57f
[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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@283304 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaChecking.cpp
test/Sema/address-packed.c