summaryrefslogtreecommitdiff
path: root/test/SemaCXX/attr-weakref.cpp
Commit message (Collapse)AuthorAge
* Delay attribute checking until auto types are deducedNico Rieck2014-01-21
| | | | | | | | | Checking in ActOnVariableDeclarator computes and caches the linkage using the non-deduced auto type which defaults to external linkage. Depending on how the auto type is deduced linkage can change and conflict with the cached linkage, hitting asserts. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@199774 91177308-0d34-0410-b5e6-96231b3b80d8
* Switching the WeakRef attribute to using the new checkStringLiteralArgument ↵Aaron Ballman2013-09-13
| | | | | | helper function. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190719 91177308-0d34-0410-b5e6-96231b3b80d8
* Delay linkage checks when validating the weakref attribute.Rafael Espindola2013-01-16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172678 91177308-0d34-0410-b5e6-96231b3b80d8
* When checking the 'weak' and 'weakref' attributes, look for non-externalJohn McCall2011-02-08
| | | | | | | | | 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
* Fix PR8720 by printing an error message with a substring that the gcc ↵Rafael Espindola2010-12-07
| | | | | | testsuite searches for. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@121137 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support for the weakref attribute. We still produce "alias weak" as ↵Rafael Espindola2010-02-23
llvm-gcc does, but are more strict on what uses of weakref we accept. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@96992 91177308-0d34-0410-b5e6-96231b3b80d8