summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/ASTConsumer.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Push DeclGroup much farther throughout the compiler. Now the variousChris Lattner2009-03-291-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | productions (except the already broken ObjC cases like @class X,Y;) in the parser that can produce more than one Decl return a DeclGroup instead of a Decl, etc. This allows elimination of the Decl::NextDeclarator field, and exposes various clients that should look at all decls in a group, but which were only looking at one (such as the dumper, printer, etc). These have been fixed. Still TODO: 1) there are some FIXME's in the code about potentially using DeclGroup for better location info. 2) ParseObjCAtDirectives should return a DeclGroup due to @class etc. 3) I'm not sure what is going on with StmtIterator.cpp, or if it can be radically simplified now. 4) I put a truly horrible hack in ParseTemplate.cpp. I plan to bring up #3/4 on the mailing list, but don't plan to tackle #1/2 in the short term. llvm-svn: 68002
* push more ASTContext goodness out through interfaces that useChris Lattner2009-03-281-1/+0
| | | | | | TranslationUnit llvm-svn: 67913
* eliminate ASTConsumer::InitializeTU, all clients areChris Lattner2009-03-281-5/+0
| | | | | | happy with just ASTContext, they don't need a TU. llvm-svn: 67894
* Remove unused ASTConsumer::HandleTopLevelDeclarationDaniel Dunbar2008-07-251-10/+0
| | | | llvm-svn: 54071
* Added "InitializeTU" to ASTConsumer. This is used by Sema::ParseAST to pass aTed Kremenek2008-05-311-0/+6
| | | | | | | | | | | TranslationUnit object instead of an ASTContext. By default it calls Initialize(ASTConstext& Context) (to match with the current interface used by most ASTConsumers). Modified the ObjC-Rewriter to use InitializeTU, and to tell the TranslationUnit to not free its Decls. This is a workaround for: <rdar://problem/5966749> llvm-svn: 51825
* Make a major restructuring of the clang tree: introduce a top-levelChris Lattner2008-03-151-0/+28
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