clang-1/lib/AST
Eli Friedman 2742496d75 Don't swap function decls, and add them to the scope as they are
encountered.  Mixing up the decls is unintuitive, and confuses the AST 
destruction code. Fixes PR2360.

Note that there is a need to look up the characteristics and 
declarations of a function associated with a particular name or decl, 
but the original swapping code doesn't solve it properly. 
http://lists.cs.uiuc.edu/pipermail/cfe-dev/2008-May/001644.html is one 
suggestion for how to fix that.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51584 91177308-0d34-0410-b5e6-96231b3b80d8
2008-05-27 05:07:37 +00:00
..
ASTConsumer.cpp Make a major restructuring of the clang tree: introduce a top-level 2008-03-15 23:59:48 +00:00
ASTContext.cpp Stop leaking the TUDecl. 2008-05-27 03:08:09 +00:00
Builtins.cpp Make a major restructuring of the clang tree: introduce a top-level 2008-03-15 23:59:48 +00:00
CFG.cpp Added CFGBlock::hasBinaryBranchTerminator(). 2008-05-16 16:06:00 +00:00
Decl.cpp Don't swap function decls, and add them to the scope as they are 2008-05-27 05:07:37 +00:00
DeclObjC.cpp fix free/delete mismatch problem in add/mergeProperties (found by valgrind) 2008-05-10 10:31:54 +00:00
DeclSerialization.cpp When serializing FunctionDecl, serialize out a reference to the previous declaration. 2008-05-20 03:33:58 +00:00
Expr.cpp Move getAccessedFieldNo out of lib/AST/Expr.cpp into 2008-05-22 00:50:06 +00:00
ExprCXX.cpp Several improvements from Doug Gregor related to default 2008-04-10 02:22:51 +00:00
Makefile Make a major restructuring of the clang tree: introduce a top-level 2008-03-15 23:59:48 +00:00
Stmt.cpp Always initialize NEXT_CATCH; fixes a Valgrind uninitialized read error 2008-05-25 04:34:57 +00:00
StmtDumper.cpp Minor tweak to -ast-dump for ivars. 2008-05-23 22:01:24 +00:00
StmtIterator.cpp PR2347: Fix crash iterating over VLAs; this started triggering because 2008-05-21 05:06:46 +00:00
StmtPrinter.cpp Implementation of __builtin_shufflevector, a portable builtin capable of 2008-05-14 19:38:39 +00:00
StmtSerialization.cpp Use pointer swizziling to unify in ObjCMessageExpr the receiver and classname "fields". This saves us a pointer. 2008-05-01 17:26:20 +00:00
StmtViz.cpp Make a major restructuring of the clang tree: introduce a top-level 2008-03-15 23:59:48 +00:00
TranslationUnit.cpp Fix the destruction "properly" in the sense that we actually destroy the 2008-05-21 05:33:10 +00:00
Type.cpp Add Destroy method to Types, making there destruction more harmonious with 2008-05-21 16:38:54 +00:00
TypeSerialization.cpp Pass the ASTContext object around when deserializing Decl and Stmt objects, so 2008-04-07 21:55:54 +00:00