summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/attr-deprecated.c
Commit message (Collapse)AuthorAgeFilesLines
* Check for deprecated/unavailable/etc attributes on fields that areDouglas Gregor2011-06-291-0/+2
| | | | | | initialized via initializer lists. Fixes <rdar://problem/9694686>. llvm-svn: 134099
* Document Clang's support for attributes on individual enumerators andJohn McCall2010-11-081-0/+2
| | | | | | | tweak the documentation for deprecation-with-message. Provide __has_feature tests for both. rdar://problem/8605692 llvm-svn: 118435
* Parse attributes on enumerators and instantiate attributes on enum decls.John McCall2010-10-221-0/+11
| | | | llvm-svn: 117182
* Add support for differentiating between attributes ignored when handled andChandler Carruth2010-07-081-3/+1
| | | | | | | | unknown attributes that we discard. Add a diagnostic group for unknown attribute warnings to allow turning these off when we don't care. Also consolidates the tests for this case. llvm-svn: 107864
* 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
* Change our basic strategy for avoiding deprecation warnings when the decl useJohn McCall2009-11-041-0/+45
| | | | | | | | | | | | appears in a deprecated context. In the new strategy, we emit the warnings as usual unless we're currently parsing a declaration, where "declaration" is restricted to mean a decl group or a few special cases in Objective C. If we *are* parsing a declaration, we queue up the deprecation warnings until the declaration has been completely parsed, and then emit them only if the decl is not deprecated. We also standardize the bookkeeping for deprecation so as to avoid special cases. llvm-svn: 85998
* Implement rdar://6756623 - use of deprecated type in deprecated typedef ↵Chris Lattner2009-10-251-0/+6
| | | | | | should not warn llvm-svn: 85073
* When parsing a top level struct declaration, make sure to Chris Lattner2009-10-251-0/+6
| | | | | | | | | process decl attributes instead of dropping them on the floor. This allows us to diagnose cases like the testcase. Also don't diagnose deprecated stuff in ActOnTag: not all uses of tags may be 'uses', and SemaType does this now. llvm-svn: 85071
* Remove tabs, and whitespace cleanups.Mike Stump2009-09-091-1/+1
| | | | llvm-svn: 81346
* Rename clang to clang-cc.Daniel Dunbar2009-03-241-1/+1
| | | | | | Tests and drivers updated, still need to shuffle dirs. llvm-svn: 67602
* diagnose uses of deprecated typenames and tags.Chris Lattner2009-02-161-0/+2
| | | | | | We now pass all the deprecation tests in the objc.dg suite. llvm-svn: 64679
* add support for deprecated objc ivars.Chris Lattner2009-02-161-0/+1
| | | | llvm-svn: 64637
* Add support for deprecated members of RecordDecls (e.g. struct fields).Chris Lattner2009-02-161-0/+8
| | | | llvm-svn: 64634
* allow implementations of deprecated functions to use deprecated symbols.Chris Lattner2009-02-151-1/+1
| | | | llvm-svn: 64572
* new tests, it would be nice to not warn on the second one.Chris Lattner2009-02-141-0/+9
| | | | llvm-svn: 64549
* Start warning about unknown attributes.Anders Carlsson2009-02-131-1/+1
| | | | llvm-svn: 64447
* rename some attr tests for consistency.Chris Lattner2008-06-261-0/+25
llvm-svn: 52770
OpenPOWER on IntegriCloud