From: Nico Weber Date: Fri, 29 Aug 2008 17:24:46 +0000 (+0000) Subject: fix a comment that was forgotten in r54071 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=91c027e2021366396696977af7fdc0e070bdd614;p=clang fix a comment that was forgotten in r54071 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55543 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/ASTConsumer.h b/include/clang/AST/ASTConsumer.h index 1ca17744de..2ba36b0a57 100644 --- a/include/clang/AST/ASTConsumer.h +++ b/include/clang/AST/ASTConsumer.h @@ -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