clang-1/AST
Ted Kremenek 2ff3e691ec Added method "HandleTopLevelDeclaration" to ASTConsumer. This will eventually
be the new hook that ASTStreamer calls to feed top-level Decls to
ASTConsumers.

The difference between "HandleTopLevelDeclaration" and "HandleTopLevelDecl" is
that "HandleTopLevelDecl" is currently called by ASTStreamer for every
top-level declaration, including those that appear within a Decl chain. Using
the new interface, ASTStreamer would only call HandleTopLevelDeclaration for
Decls that appear that the beginning of a Decl chain (i.e., a group of related
decls).

To preserve the behavior that all subclasses of ASTConsumer currently expect,
the default implementation of HandleTopLevelDeclaration simply calls
HandleTopLevelDecl, and for decl chains it calls HandleTopLevelDecl for each
Decl* in a chain of Decls.

The advantage of this interface is that some subclasses of ASTConsumer only
really want the Decl chain, and not each individual Decl passed to them. This
extra level of indirection allows subclasses to override the default behavior
if they so desire.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44444 91177308-0d34-0410-b5e6-96231b3b80d8
2007-11-29 23:05:17 +00:00
..
ASTConsumer.cpp Added method "HandleTopLevelDeclaration" to ASTConsumer. This will eventually 2007-11-29 23:05:17 +00:00
ASTContext.cpp Reverted changed to getTagDeclType() introduced in patch 44089: 2007-11-26 21:16:01 +00:00
Builtins.cpp Add more intrinsics. We can now correctly parse both Carbon.h and Cocoa.h without having to do -arch ppc. 2007-11-28 05:19:59 +00:00
CFG.cpp Fixed bug in CFG construction where we did not properly handle the GCC 2007-11-26 18:20:26 +00:00
Decl.cpp Add category method definitions incrementally, removing a FIXME (like we do for class implementations). 2007-11-12 22:05:31 +00:00
DeclSerialization.cpp Fixed bug in the serialization of FunctionDecls. We would incorrectly 2007-11-16 18:11:10 +00:00
Expr.cpp fix compilation error noticed by Nuno Lopes 2007-11-28 04:30:09 +00:00
ExprCXX.cpp Fixed DeclStmt::child_begin() to actually create an iterator that 2007-10-18 23:28:49 +00:00
Makefile Stage two of getting CFE top correct. 2007-07-11 17:01:13 +00:00
Stmt.cpp Keep track of whether the asm is volatile or not. 2007-11-23 23:12:25 +00:00
StmtDumper.cpp Now that we are passing back "free standing decls", make sure -ast-dump works like -ast-print. 2007-11-17 21:37:36 +00:00
StmtIterator.cpp Added support for StmtIterators to iterate over the size expressions 2007-10-29 21:38:03 +00:00
StmtPrinter.cpp Removed dependence on #including iostream. 2007-11-26 22:50:46 +00:00
StmtSerialization.cpp Added "isExact" field to FloatingLiteral. This flag indicates whether or not 2007-11-29 00:56:49 +00:00
StmtViz.cpp Added support to clang driver to view ASTs using GraphViz. This 2007-09-19 21:29:43 +00:00
Type.cpp handle __vector_size__ like vector_size 2007-11-27 07:28:18 +00:00
TypeSerialization.cpp Fixed bug when serializing QualTypes where we were serializing in the 2007-11-14 23:35:01 +00:00