From 6e6ad602e578dd178453d0008fe47ef13f629e24 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Tue, 20 Jan 2009 01:17:11 +0000 Subject: Remove ScopedDecl, collapsing all of its functionality into Decl, so that every declaration lives inside a DeclContext. Moved several things that don't have names but were ScopedDecls (and, therefore, NamedDecls) to inherit from Decl rather than NamedDecl, including ObjCImplementationDecl and LinkageSpecDecl. Now, we don't store empty DeclarationNames for these things, nor do we try to insert them into DeclContext's lookup structure. The serialization tests are temporarily disabled. We'll re-enable them once we've sorted out the remaining ownership/serialiazation issues between DeclContexts and TranslationUnion, DeclGroups, etc. llvm-svn: 62562 --- clang/lib/Sema/IdentifierResolver.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'clang/lib/Sema/IdentifierResolver.h') diff --git a/clang/lib/Sema/IdentifierResolver.h b/clang/lib/Sema/IdentifierResolver.h index c29fffb36d2..a44323e1b0d 100644 --- a/clang/lib/Sema/IdentifierResolver.h +++ b/clang/lib/Sema/IdentifierResolver.h @@ -29,8 +29,8 @@ namespace clang { class IdentifierResolver { /// LookupContext - A wrapper for DeclContext. DeclContext is only part of - /// ScopedDecls, LookupContext can be used with all decls (assumes - /// translation unit context for non ScopedDecls). + /// Decls, LookupContext can be used with all decls (assumes + /// translation unit context for non Decls). class LookupContext { const DeclContext *Ctx; @@ -42,7 +42,7 @@ class IdentifierResolver { return reinterpret_cast(-1); } - /// getContext - Returns translation unit context for non ScopedDecls and + /// getContext - Returns translation unit context for non Decls and /// for EnumConstantDecls returns the parent context of their EnumDecl. static DeclContext *getContext(Decl *D); -- cgit v1.2.3