]> granicus.if.org Git - clang/commitdiff
fix a comment that was forgotten in r54071
authorNico Weber <nicolasweber@gmx.de>
Fri, 29 Aug 2008 17:24:46 +0000 (17:24 +0000)
committerNico Weber <nicolasweber@gmx.de>
Fri, 29 Aug 2008 17:24:46 +0000 (17:24 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55543 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/ASTConsumer.h

index 1ca17744de7d87f66921ef72d238a895ba39d984..2ba36b0a5751603fa7a8ee6a16c162b7aeb5b84b 100644 (file)
@@ -35,7 +35,9 @@ public:
   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