summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/attr-weak.c
Commit message (Collapse)AuthorAgeFilesLines
* [Sema] Add tests for weak functionsJonas Hahnfeld2018-05-251-0/+3
| | | | | | | | I found these checks to be missing, just add some simple cases. Differential Revision: https://reviews.llvm.org/D47200 llvm-svn: 333283
* Determine the attribute subject for diagnostics based on declarative ↵Aaron Ballman2017-11-261-2/+2
| | | | | | | | | | information in DeclNodes.td. This greatly reduces the number of enumerated values used for more complex diagnostics; these are now only required when the "attribute only applies to" diagnostic needs to be generated manually as part of semantic processing. This also clarifies some terminology used by the diagnostic (methods -> Objective-C methods, fields -> non-static data members, etc). Many of the tests needed to be updated in multiple places for the diagnostic wording tweaks. The first instance of the diagnostic for that attribute is fully specified and subsequent instances cut off the complete list (to make it easier if additional subjects are added in the future for the attribute). llvm-svn: 319002
* Check for internal weak decls after merging.Rafael Espindola2013-01-161-0/+6
| | | | | | | | This fixes pr14946. The problem was that the linkage computation was done too early, so things like "extern int a;" would be given external linkage, even if a previous declaration was static. llvm-svn: 172667
* Issue warning if weak_import attribute is added to an alreadyFariborz Jahanian2011-06-221-0/+4
| | | | | | declared variable and ignore it. // rdar://9538608 llvm-svn: 133654
* When checking the 'weak' and 'weakref' attributes, look for non-externalJohn McCall2011-02-081-2/+1
| | | | | | | linkage rather than the presence of the 'static' storage class specifier. Fixes rdar://problem/8814626. llvm-svn: 125126
* Change the wording of the bad-decl-for-attribute warning and errorJohn McCall2011-01-251-2/+2
| | | | | | to make it clear that we're talking about the declarations and not the types. llvm-svn: 124175
* Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'.Daniel Dunbar2009-12-151-1/+1
| | | | | | | | | - This is designed to make it obvious that %clang_cc1 is a "test variable" which is substituted. It is '%clang_cc1' instead of '%clang -cc1' because it can be useful to redefine what gets run as 'clang -cc1' (for example, to set a default target). llvm-svn: 91446
* Prep for new warning.Mike Stump2009-07-221-1/+1
| | | | llvm-svn: 76709
* Generate error on declaration containing 'static' and '__attribute__((weak))'Fariborz Jahanian2009-07-161-0/+2
| | | | | | Patch by Ryan Flynn llvm-svn: 75879
* Rename clang to clang-cc.Daniel Dunbar2009-03-241-1/+1
| | | | | | Tests and drivers updated, still need to shuffle dirs. llvm-svn: 67602
* Add Parse/Sema support for weak_import attribute.Daniel Dunbar2009-03-061-0/+13
- Also, diagnose weak applied to types. llvm-svn: 66259
OpenPOWER on IntegriCloud