[cfe-commits] r55543 - /cfe/trunk/include/clang/AST/ASTConsumer.h

Nico Weber nicolasweber at gmx.de
Fri Aug 29 10:24:46 PDT 2008


Author: nico
Date: Fri Aug 29 12:24:46 2008
New Revision: 55543

URL: http://llvm.org/viewvc/llvm-project?rev=55543&view=rev
Log:
fix a comment that was forgotten in r54071

Modified:
    cfe/trunk/include/clang/AST/ASTConsumer.h

Modified: cfe/trunk/include/clang/AST/ASTConsumer.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/ASTConsumer.h?rev=55543&r1=55542&r2=55543&view=diff

==============================================================================
--- cfe/trunk/include/clang/AST/ASTConsumer.h (original)
+++ cfe/trunk/include/clang/AST/ASTConsumer.h Fri Aug 29 12:24:46 2008
@@ -35,7 +35,9 @@
   virtual void InitializeTU(TranslationUnit& TU);
   
   /// HandleTopLevelDecl - Handle the specified top-level declaration.  This is
-  ///  called by HandleTopLevelDeclaration to process every top-level Decl*.
+  ///  called by the parser to process every top-level Decl*. Note that D can
+  ///  be the head of a chain of Decls (e.g. for `int a, b` the chain will have
+  ///  two elements). Use ScopedDecl::getNextDeclarator() to walk the chain.
   virtual void HandleTopLevelDecl(Decl *D) {}
   
   /// HandleTranslationUnit - This method is called when the ASTs for entire





More information about the cfe-commits mailing list