summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/attr-unused.c
Commit message (Collapse)AuthorAgeFilesLines
* Added the attribute name to the err_attribute_wrong_number_arguments ↵Aaron Ballman2013-07-231-1/+1
| | | | | | | | diagnostic for clarity; updated almost all of the affected test cases. Thanks to Fariborz Jahanian for the suggestion! llvm-svn: 186980
* Pretty up the wrong-number-of-arguments-for-attribute diagnostic byJohn McCall2011-03-021-1/+1
| | | | | | | using a custom plural form. Split out the range diagnostics as their own message. llvm-svn: 126840
* Move the "used but marked unused" warning behind a special warning flag for now.Anders Carlsson2010-10-241-1/+1
| | | | llvm-svn: 117219
* Warn if a variable marked with the "unused" attribute is used. Patch by ↵Anders Carlsson2010-10-221-3/+19
| | | | | | Darin Adler! llvm-svn: 117184
* Support __attribute__((unused)) on types. This suddenly started firingJohn McCall2010-03-311-1/+16
| | | | | | a lot for me on selfhosts, I dunno why. llvm-svn: 99981
* 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
* Rename clang to clang-cc.Daniel Dunbar2009-03-241-1/+1
| | | | | | Tests and drivers updated, still need to shuffle dirs. llvm-svn: 67602
* Improve attribute parsing & tests.Daniel Dunbar2008-10-191-0/+12
- Support noreturn on function-typed variables. - Extend isFunctionOrMethod to return true for K&R functions and provide hasFunctionProto to check if a decl has information about its arguments. This code needs some serious cleaning, but works. - Add/improve test cases for noreturn and unused. llvm-svn: 57778
OpenPOWER on IntegriCloud