summaryrefslogtreecommitdiffstats
path: root/clang/tools/clang-cc/ASTConsumers.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Move ASTConsumers.h to include/clang/Frontend, and move the associated Eli Friedman2009-05-181-1032/+0
| | | | | | .cpp files to lib/Frontend. (As proposed on cfe-dev.) llvm-svn: 72060
* A couple of tweaks to make -ast-print produce code that's closer to Eli Friedman2009-05-171-13/+14
| | | | | | valid C code. llvm-svn: 71971
* Add a new -ast-dump-full option that traverses the translation unitDouglas Gregor2009-04-261-2/+20
| | | | | | | | declaration rather than printing through the HandleTopLevelDecl action. Using this, one can deserialize an entire PCH file and dump it. llvm-svn: 70108
* minor cleanups to ast-dump, use getBody(context).Chris Lattner2009-04-251-8/+8
| | | | llvm-svn: 70095
* Eliminate the three SmallVectors in ObjCImplDecl (for instanceDouglas Gregor2009-04-231-8/+19
| | | | | | | | | | | methods, class methods, and property implementations) and instead place all of these entities into the DeclContext. This eliminates more linear walks when looking for class or instance methods and should make PCH (de-)serialization of ObjCDecls trivial (and lazy). llvm-svn: 69849
* Remove the serialization code that predates precompiledDouglas Gregor2009-04-221-141/+0
| | | | | | | headers. Future approaches to (de-)serializing ASTs will be based on the PCH infrastructure. llvm-svn: 69828
* Add pch reader/writer support for most of DeclObjC.h. Very close to ↵Steve Naroff2009-04-211-2/+3
| | | | | | | | reading/writing all ObjC AST nodes that we will encounter in header files (still a few FIXME's). Once selector support is in place, we should be able to take this for a spin (and add test cases). llvm-svn: 69674
* FunctionDecl::getBody() is getting an ASTContext argument for use inDouglas Gregor2009-04-181-8/+10
| | | | | | | | lazy PCH deserialization. Propagate that argument wherever it needs to be. No functionality change, except that I've tightened up a few PCH tests in preparation. llvm-svn: 69406
* Add PCH support for ImplicitCastExprs. This is the first expressionDouglas Gregor2009-04-141-1/+8
| | | | | | | | | | kind PCH handles that has an expression as an operand, so most of this work is in the infrastructure to rebuild expression trees from the serialized representation. We now store expressions in post-order (e.g., Reverse Polish Notation), so that we can easily rebuild the appropriate expression tree. llvm-svn: 69101
* Propagate the ASTContext to various AST traversal and lookup functions.Douglas Gregor2009-04-091-19/+36
| | | | | | No functionality change (really). llvm-svn: 68726
* Apply a patch which adds 'OriginalParmVar' to the DeclContextPrinter by JonZhongxing Xu2009-04-051-1/+6
| | | | | | Simons. llvm-svn: 68436
* Push DeclGroup much farther throughout the compiler. Now the variousChris Lattner2009-03-291-6/+16
| | | | | | | | | | | | | | | | | | | | | | | | | 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
* reduce indentation, no functionality change.Chris Lattner2009-03-281-116/+122
| | | | llvm-svn: 67916
* push more ASTContext goodness out through interfaces that useChris Lattner2009-03-281-4/+4
| | | | | | TranslationUnit llvm-svn: 67913
* change HandleTranslationUnit to take an ASTContext instead of TranslationUnitChris Lattner2009-03-281-9/+8
| | | | llvm-svn: 67910
* hoist TranslationUnit some more.Chris Lattner2009-03-281-2/+2
| | | | llvm-svn: 67905
* eliminate some wrappers.Chris Lattner2009-03-281-2/+25
| | | | llvm-svn: 67904
* move serialization logic from TranslationUnit to ASTContext.Chris Lattner2009-03-281-2/+1
| | | | llvm-svn: 67902
* Move <root>/Driver into <root>/tools/clang-cc.Daniel Dunbar2009-03-241-0/+1074
Again, I tried to update cmake but it is untested. llvm-svn: 67605
OpenPOWER on IntegriCloud