diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-02-15 22:43:40 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-02-15 22:43:40 +0000 |
| commit | 4bf74fdd907432d3ff9c6db5f24515a710882449 (patch) | |
| tree | cddfc837c2f7f3b05bb3640fa2e18e8686744c00 /clang/lib/Sema/SemaDecl.cpp | |
| parent | 8510b902fb74c40f906acdfaa6c65d2f3a934cb8 (diff) | |
| download | bcm5719-llvm-4bf74fdd907432d3ff9c6db5f24515a710882449.tar.gz bcm5719-llvm-4bf74fdd907432d3ff9c6db5f24515a710882449.zip | |
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.
llvm-svn: 64612
Diffstat (limited to 'clang/lib/Sema/SemaDecl.cpp')
| -rw-r--r-- | clang/lib/Sema/SemaDecl.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp index 37e1f54f7f0..a80507ae4e6 100644 --- a/clang/lib/Sema/SemaDecl.cpp +++ b/clang/lib/Sema/SemaDecl.cpp @@ -28,7 +28,6 @@ #include "llvm/ADT/STLExtras.h" #include <algorithm> #include <functional> - using namespace clang; /// \brief If the identifier refers to a type name within this scope, @@ -78,8 +77,8 @@ DeclContext *Sema::getContainingDC(DeclContext *DC) { if (MD->isOutOfLineDefinition()) return MD->getLexicalDeclContext(); - // A C++ inline method is parsed *after* the topmost class it was declared in - // is fully parsed (it's "complete"). + // A C++ inline method is parsed *after* the topmost class it was declared + // in is fully parsed (it's "complete"). // The parsing of a C++ inline method happens at the declaration context of // the topmost (non-nested) class it is lexically declared in. assert(isa<CXXRecordDecl>(MD->getParent()) && "C++ method not in Record."); |

