]> granicus.if.org Git - clang/commit
Refactor the deprecated and unavailable checks into a new
authorChris Lattner <sabre@nondot.org>
Sun, 15 Feb 2009 22:43:40 +0000 (22:43 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 15 Feb 2009 22:43:40 +0000 (22:43 +0000)
commit76a642ff4fce7a0648c79a1f01324a8c3880e251
tree49205207a366e1972e9e3a77f39d3f2fbe376e12
parentb6d74a158a9c002e3c0fcbda8ad8d0ccbb2e5088
Refactor the deprecated and unavailable checks into a new
DiagnoseUseOfDeprecatedDecl method.  This ensures that they
are treated consistently.  This gets us 'unavailable' support
on a few new types of decls, and makes sure we consistently
silence deprecated when the caller is also deprecated.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64612 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/DeclBase.h
lib/Sema/Sema.h
lib/Sema/SemaDecl.cpp
lib/Sema/SemaExpr.cpp
lib/Sema/SemaExprObjC.cpp