]> granicus.if.org Git - clang/commit
Rework the visibility computation algorithm in preparation
authorJohn McCall <rjmccall@apple.com>
Sat, 16 Feb 2013 00:17:33 +0000 (00:17 +0000)
committerJohn McCall <rjmccall@apple.com>
Sat, 16 Feb 2013 00:17:33 +0000 (00:17 +0000)
commit5a758de93fa2a28a84eb0d918a31d9522472990c
tree2016980e67909d016f06a75e570da1751d91326a
parenta6e0a0db0afcbdcd5b7c939869a39754332ad040
Rework the visibility computation algorithm in preparation
for distinguishing type vs. value visibility.

The changes to the visibility of explicit specializations
are intentional.  The change to the "ugly" test case is
a consequence of a sensible implementation, and I am happy
to argue that this is better behavior.  Other changes may
or may not be intended;  it is quite difficult to divine
intent from some of the code I altered.

I've left behind a comment which I hope explains the
philosophy behind visibility computation.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@175326 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/Decl.h
include/clang/AST/DeclTemplate.h
include/clang/AST/TemplateBase.h
lib/AST/Decl.cpp
test/CodeGenCXX/visibility.cpp