diff options
Diffstat (limited to 'clang')
-rw-r--r-- | clang/include/clang/AST/ASTConsumer.h | 4 |
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 |