]> granicus.if.org Git - clang/commit
Treat visibility on an enclosing namespace as a non-explicit source of
authorJohn McCall <rjmccall@apple.com>
Fri, 10 Dec 2010 02:59:44 +0000 (02:59 +0000)
committerJohn McCall <rjmccall@apple.com>
Fri, 10 Dec 2010 02:59:44 +0000 (02:59 +0000)
commit90f1450c109fbbd333001165bbd986061f7c4513
treeeecf97a3097543529850ba046c5b0440d645f668
parentf0d9d8b79389e398ea0c44cde9d7b9020e0ccb65
Treat visibility on an enclosing namespace as a non-explicit source of
visibility.  Fixes PR8713.

I've disabled a test which was testing that you can #pragma pop visibility
to get out of a namespace's visibility attribute.  We should probably just
diagnose that as an error unless it's instrumental to someone's system
headers.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@121459 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Sema/Sema.h
lib/AST/Decl.cpp
lib/Sema/SemaAttr.cpp
lib/Sema/SemaDeclCXX.cpp
test/CodeGenCXX/pragma-visibility.cpp
test/CodeGenCXX/visibility-inlines-hidden.cpp