summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/DeclSerialization.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Use the ASTContext allocator when creating deserialized Decl objects.Sam Bishop2008-04-111-15/+25
| | | | llvm-svn: 49530
* Add support for C++ default arguments, and rework Parse-Sema Chris Lattner2008-04-081-2/+3
| | | | | | | | interaction for function parameters, fixing PR2046. Patch by Doug Gregor! llvm-svn: 49369
* Pass the ASTContext object around when deserializing Decl and Stmt objects, soSam Bishop2008-04-071-60/+63
| | | | | | they can be created using the same allocator as in the "from source code" case. llvm-svn: 49353
* This patch contains these changes:Chris Lattner2008-04-061-3/+3
| | | | | | | | | | -Renamed ContextDecl -> DeclContext -Removed DeclContext pointer from FieldDecl -EnumDecl inherits from DeclContext, instead of TagDecl Patch by Argiris Kirtzidis! llvm-svn: 49261
* Rename ScopedDecl::getContext() -> getContextDecl(). Two motivations:Steve Naroff2008-04-041-1/+1
| | | | | | | #1: To be consistent with FieldDecl::getContextDecl(), which serves the same purpose. #2: From my perspective, getContext() is too general (and used by several other classes for different purposes). llvm-svn: 49224
* Introduce ContextDecl, patch by Argiris Kirtzidis!Chris Lattner2008-04-041-10/+14
| | | | | | | | | | | -Added ContextDecl (no TranslationUnitDecl) -ScopedDecl class has a ContextDecl member -FieldDecl class has a ContextDecl member, so that a Field or a ObjCIvar can be traced back to their RecordDecl/ObjCInterfaceDecl easily -FunctionDecl, ObjCMethodDecl, TagDecl, ObjCInterfaceDecl inherit from ContextDecl. With TagDecl as ContextDecl, enum constants have a EnumDecl as their context. -Moved Decl class to a "DeclBase.h" along with ContextDecl class -CurContext is handled by Sema llvm-svn: 49208
* switch the rest of the C decl classes to do their Chris Lattner2008-03-161-1/+1
| | | | | | allocation through ASTContext. llvm-svn: 48403
* Make a major restructuring of the clang tree: introduce a top-levelChris Lattner2008-03-151-0/+463
lib dir and move all the libraries into it. This follows the main llvm tree, and allows the libraries to be built in parallel. The top level now enforces that all the libs are built before Driver, but we don't care what order the libs are built in. This speeds up parallel builds, particularly incremental ones. llvm-svn: 48402
OpenPOWER on IntegriCloud