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. llvm-svn: 125126
Showing
- clang/include/clang/Basic/DiagnosticSemaKinds.td 2 additions, 2 deletionsclang/include/clang/Basic/DiagnosticSemaKinds.td
- clang/lib/Sema/SemaDeclAttr.cpp 40 additions, 21 deletionsclang/lib/Sema/SemaDeclAttr.cpp
- clang/test/Sema/attr-weak.c 1 addition, 2 deletionsclang/test/Sema/attr-weak.c
- clang/test/SemaCXX/attr-weak.cpp 29 additions, 0 deletionsclang/test/SemaCXX/attr-weak.cpp
- clang/test/SemaCXX/attr-weakref.cpp 3 additions, 3 deletionsclang/test/SemaCXX/attr-weakref.cpp
Loading
Please register or sign in to comment