llvm-project/clang/lib/AST
Douglas Gregor 4feb36de04 Remove DeclGroupOwningRef, since we intend for declarations to be owned
by DeclContexts (always) rather than by statements. 

DeclContext currently goes out of its way to avoid destroying any
Decls that might be owned by a DeclGroupOwningRef. However, in an
error-recovery situation, a failure in a declaration statement can
cause all of the decls in a DeclGroupOwningRef to be destroyed after
they've already be added into the DeclContext. Hence, DeclContext is
left with already-destroyed declarations, and bad things happen. This
problem was causing failures that showed up as assertions on x86 Linux
in test/Parser/objc-forcollection-neg-2.m.

llvm-svn: 64474
2009-02-13 19:06:18 +00:00
..
APValue.cpp Support evaluation of vector constant expressions, and codegen of same. 2009-01-18 03:20:47 +00:00
ASTConsumer.cpp Remove unused ASTConsumer::HandleTopLevelDeclaration 2008-07-25 22:39:30 +00:00
ASTContext.cpp Initial implementation of arbitrary fixed-width integer types. 2009-02-13 02:31:07 +00:00
Builtins.cpp Fix for PR3350: add special-casing for "references" to va_lists in 2009-01-20 07:46:22 +00:00
CFG.cpp Remove DeclGroupOwningRef, since we intend for declarations to be owned 2009-02-13 19:06:18 +00:00
CMakeLists.txt Basic representation of C++ class templates, from Andrew Sutton. 2009-02-04 19:02:06 +00:00
Decl.cpp Fix the symptom of the regression, by having the CXXConditionDeclExpr not destroy its Decl. 2009-02-05 15:12:41 +00:00
DeclBase.cpp Basic representation of C++ class templates, from Andrew Sutton. 2009-02-04 19:02:06 +00:00
DeclCXX.cpp Basic representation of C++ class templates, from Andrew Sutton. 2009-02-04 19:02:06 +00:00
DeclGroup.cpp Remove DeclGroupOwningRef, since we intend for declarations to be owned 2009-02-13 19:06:18 +00:00
DeclObjC.cpp Remove many references to ASTContext::getAllocator(), replacing them with calls to the recently added placement new (which uses ASTContext's allocator for memory). Also added ASTContext::Deallocate(). 2009-01-27 21:25:57 +00:00
DeclSerialization.cpp Refactor FieldDecls to be ValueDecls instead of NamedDecls. 2009-02-10 20:06:48 +00:00
DeclTemplate.cpp Allow the use of default template arguments when forming a class 2009-02-11 18:16:40 +00:00
DeclarationName.cpp Semantic analysis, ASTs, and unqualified name lookup support for C++ 2009-02-03 19:21:40 +00:00
Expr.cpp Fix va_arg bug noticed by Eli, __builtin_va_arg is not an l-value 2009-02-12 09:21:08 +00:00
ExprCXX.cpp Overhaul of Stmt allocation: 2009-02-07 01:47:29 +00:00
ExprConstant.cpp Teach the constant evaluator about C++ const integral variables. 2009-02-08 15:51:17 +00:00
InheritViz.cpp [LLVM up] Update for raw_fd_ostream change. This fixes a FIXME that 2008-11-13 05:09:21 +00:00
Makefile Make a major restructuring of the clang tree: introduce a top-level 2008-03-15 23:59:48 +00:00
ParentMap.cpp Dead stores checker: Fix <rdar://problem/6506065> by being more selective when say that a store is dead even though the computed value is used in the enclosing expression. 2009-01-20 00:47:45 +00:00
Stmt.cpp Remove DeclGroupOwningRef, since we intend for declarations to be owned 2009-02-13 19:06:18 +00:00
StmtDumper.cpp Semantic analysis, ASTs, and unqualified name lookup support for C++ 2009-02-03 19:21:40 +00:00
StmtIterator.cpp Remove ScopedDecl, collapsing all of its functionality into Decl, so 2009-01-20 01:17:11 +00:00
StmtPrinter.cpp Add private extern to pretty printer(s). 2009-02-10 23:49:50 +00:00
StmtSerialization.cpp Remove DeclGroupOwningRef, since we intend for declarations to be owned 2009-02-13 19:06:18 +00:00
StmtViz.cpp Migrate DeclStmt over to using a DeclGroup instead of a pointer to a ScopedDecl*. 2008-10-07 23:09:49 +00:00
TranslationUnit.cpp Remove the TopLevelDecls from TranslationUnit, since all of those decls are owned by the ASTContext's TranslationUnitDecl. There are definitely some leaking Decls now that I'll tackle tomorrow 2009-01-20 04:25:11 +00:00
Type.cpp Initial implementation of arbitrary fixed-width integer types. 2009-02-13 02:31:07 +00:00
TypeSerialization.cpp Start processing template-ids as types when the template-name refers 2009-02-09 18:46:07 +00:00