aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2008-08-29 17:24:46 +0000
committerNico Weber <nicolasweber@gmx.de>2008-08-29 17:24:46 +0000
commit91c027e2021366396696977af7fdc0e070bdd614 (patch)
treea88803dc823934bad078b991a9185925c74bf1dc
parent491be73282d5483c2f799289ed90cc0011fde4bd (diff)
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
-rw-r--r--include/clang/AST/ASTConsumer.h4
1 files changed, 3 insertions, 1 deletions
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