]> granicus.if.org Git - clang/commit
Remove ScopedDecl, collapsing all of its functionality into Decl, so
authorDouglas Gregor <dgregor@apple.com>
Tue, 20 Jan 2009 01:17:11 +0000 (01:17 +0000)
committerDouglas Gregor <dgregor@apple.com>
Tue, 20 Jan 2009 01:17:11 +0000 (01:17 +0000)
commit4afa39deaa245592977136d367251ee2c173dd8d
treeb147c76b69b1dc48d42e3cc3080554515db96d94
parentf4f6f219423a67a969de7b3e0c28bcefdb3c0a10
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62562 91177308-0d34-0410-b5e6-96231b3b80d8
42 files changed:
Driver/ASTConsumers.cpp
Driver/RewriteBlocks.cpp
Driver/RewriteObjC.cpp
docs/InternalsManual.html
include/clang/AST/ASTConsumer.h
include/clang/AST/Decl.h
include/clang/AST/DeclBase.h
include/clang/AST/DeclCXX.h
include/clang/AST/DeclObjC.h
include/clang/AST/Stmt.h
include/clang/AST/StmtIterator.h
include/clang/Analysis/Support/BlkExprDeclBitVector.h
include/clang/Analysis/Visitors/CFGRecStmtDeclVisitor.h
lib/AST/ASTContext.cpp
lib/AST/CFG.cpp
lib/AST/Decl.cpp
lib/AST/DeclBase.cpp
lib/AST/DeclCXX.cpp
lib/AST/DeclObjC.cpp
lib/AST/DeclSerialization.cpp
lib/AST/StmtDumper.cpp
lib/AST/StmtIterator.cpp
lib/AST/StmtPrinter.cpp
lib/AST/StmtSerialization.cpp
lib/Analysis/GRExprEngine.cpp
lib/CodeGen/CGObjC.cpp
lib/CodeGen/CGObjCMac.cpp
lib/CodeGen/ModuleBuilder.cpp
lib/Sema/IdentifierResolver.cpp
lib/Sema/IdentifierResolver.h
lib/Sema/Sema.cpp
lib/Sema/Sema.h
lib/Sema/SemaDecl.cpp
lib/Sema/SemaDeclCXX.cpp
lib/Sema/SemaDeclObjC.cpp
lib/Sema/SemaExpr.cpp
lib/Sema/SemaExprCXX.cpp
lib/Sema/SemaLookup.cpp
lib/Sema/SemaOverload.cpp
lib/Sema/SemaStmt.cpp
test/Serialization/complex.c
test/Serialization/stmt_exprs.c