summaryrefslogtreecommitdiffstats
path: root/clang
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
commitfebdb0bc46c5aaf4930a5f5e4cfdb6158b0ec62c (patch)
treee0cb332583983bfa7256ca59ca223078459330e3 /clang
parentb1a635b30c221a070da1ecb564764183e3dfb76d (diff)
downloadbcm5719-llvm-febdb0bc46c5aaf4930a5f5e4cfdb6158b0ec62c.tar.gz
bcm5719-llvm-febdb0bc46c5aaf4930a5f5e4cfdb6158b0ec62c.zip
fix a comment that was forgotten in r54071
llvm-svn: 55543
Diffstat (limited to 'clang')
-rw-r--r--clang/include/clang/AST/ASTConsumer.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/include/clang/AST/ASTConsumer.h b/clang/include/clang/AST/ASTConsumer.h
index 1ca17744de7..2ba36b0a575 100644
--- a/clang/include/clang/AST/ASTConsumer.h
+++ b/clang/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
OpenPOWER on IntegriCloud