]> granicus.if.org Git - clang/commit
Implement semantic analysis for transparent unions. This is largely
authorDouglas Gregor <dgregor@apple.com>
Wed, 29 Apr 2009 22:16:16 +0000 (22:16 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 29 Apr 2009 22:16:16 +0000 (22:16 +0000)
commit0c74e8a4e8865ec9ebb8efc0af247a3c077236c4
treebcfbfd9c201c4ab859f040b2093b8b07203845a7
parentd302f90a942cc15fea805e540a7c8ee2ca0fe6a7
Implement semantic analysis for transparent unions. This is largely
based on a patch from Anders Johnsen. CodeGen support is incomplete,
in that we do not properly coerce to the first field's type.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70419 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/Attr.h
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/Sema.h
lib/Sema/SemaDeclAttr.cpp
lib/Sema/SemaExpr.cpp
lib/Sema/SemaOverload.cpp
test/Sema/transparent-union.c [new file with mode: 0644]