]> granicus.if.org Git - clang/commit
Add a new 'type_visibility' attribute to allow users to
authorJohn McCall <rjmccall@apple.com>
Wed, 20 Feb 2013 01:54:26 +0000 (01:54 +0000)
committerJohn McCall <rjmccall@apple.com>
Wed, 20 Feb 2013 01:54:26 +0000 (01:54 +0000)
commitd4c3d66be70ae2d0bd828329022dc428cc277a1c
treeb980077d0866c29bcf09476b73c6a1d234727872
parent975d52c759a0da21461668bac840bb5d21061d1b
Add a new 'type_visibility' attribute to allow users to
control the visibility of a type for the purposes of RTTI
and template argument restrictions independently of how
visibility propagates to its non-type member declarations.

Also fix r175326 to not ignore template argument visibility
on a template explicit instantiation when a member has
an explicit attribute but the instantiation does not.

The type_visibility work is rdar://11880378

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@175587 91177308-0d34-0410-b5e6-96231b3b80d8
13 files changed:
include/clang/AST/Decl.h
include/clang/Basic/Attr.td
include/clang/Basic/DiagnosticSemaKinds.td
include/clang/Sema/Sema.h
lib/AST/Decl.cpp
lib/CodeGen/CGVTables.cpp
lib/CodeGen/CodeGenModule.cpp
lib/Sema/SemaAttr.cpp
lib/Sema/SemaDecl.cpp
lib/Sema/SemaDeclAttr.cpp
test/CodeGenCXX/type_visibility.cpp [new file with mode: 0644]
test/CodeGenCXX/visibility.cpp
test/Sema/attr-visibility.c