]> granicus.if.org Git - clang/commit
When checking the 'weak' and 'weakref' attributes, look for non-external
authorJohn McCall <rjmccall@apple.com>
Tue, 8 Feb 2011 22:35:49 +0000 (22:35 +0000)
committerJohn McCall <rjmccall@apple.com>
Tue, 8 Feb 2011 22:35:49 +0000 (22:35 +0000)
commit332bb2a2e3cd0a5af85758847a8050ae8ceee5f3
tree8ee44ee669f5350c81c3b77244dd7b8bceba4a99
parentb19c76e857d21b722d0a207cb45b26d7cb20a73f
When checking the 'weak' and 'weakref' attributes, look for non-external
linkage rather than the presence of the 'static' storage class specifier.
Fixes rdar://problem/8814626.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125126 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaDeclAttr.cpp
test/Sema/attr-weak.c
test/SemaCXX/attr-weak.cpp [new file with mode: 0644]
test/SemaCXX/attr-weakref.cpp