aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Parse/Parser.h
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2007-11-29 23:05:20 +0000
committerSteve Naroff <snaroff@apple.com>2007-11-29 23:05:20 +0000
commit89307ffaf8acf4d6fdffd72b607ca4fbcfdffc9d (patch)
treebbf0f3ba5d789a183976c58fc486375e4d480bba /include/clang/Parse/Parser.h
parent2ff3e691ecc63a5d82d4023b46b5b47ce14ace53 (diff)
Yesterday, I simplified how we stream top-level decls.
After a discussion with Ted, we both came to the conclusion that adding a "HandleTopLevelDeclaration" hook to ASConsumer is far more elegant. The default implementation of HandleTopLevelDeclaration will be responsible for iterating over the ScopedDecl (which has a chain of the decls:-). TODO: Once Ted adds HandleTopLevelDeclaration, make sure TagDecls are chainged appropriately... git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44445 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Parse/Parser.h')
-rw-r--r--include/clang/Parse/Parser.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/clang/Parse/Parser.h b/include/clang/Parse/Parser.h
index 7b479e6620..65cdc274e6 100644
--- a/include/clang/Parse/Parser.h
+++ b/include/clang/Parse/Parser.h
@@ -76,7 +76,7 @@ public:
/// ParseTopLevelDecl - Parse one top-level declaration. Returns true if
/// the EOF was encountered.
- bool ParseTopLevelDecl();
+ bool ParseTopLevelDecl(DeclTy*& Result);
/// Finalize - Shut down the parser.
///