diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-11-18 00:26:59 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-11-18 00:26:59 +0000 |
commit | 88c2596edc8eb475e20f6033de1ea01669695a0c (patch) | |
tree | 679107546ea3a40c67fda44db856d82616a08b6a /lib/AST/ASTConsumer.cpp | |
parent | b395c63b473bf1b3783bff371a993332e8c4c5e3 (diff) | |
download | clang-88c2596edc8eb475e20f6033de1ea01669695a0c.tar.gz |
Change ASTConsumer::HandleTopLevelDecl to return true for the parser to continue
parsing or false to abort parsing.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@144943 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/ASTConsumer.cpp')
-rw-r--r-- | lib/AST/ASTConsumer.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/AST/ASTConsumer.cpp b/lib/AST/ASTConsumer.cpp index 062f1103e9..1672bc8aed 100644 --- a/lib/AST/ASTConsumer.cpp +++ b/lib/AST/ASTConsumer.cpp @@ -15,7 +15,9 @@ #include "clang/AST/DeclGroup.h" using namespace clang; -void ASTConsumer::HandleTopLevelDecl(DeclGroupRef D) {} +bool ASTConsumer::HandleTopLevelDecl(DeclGroupRef D) { + return true; +} void ASTConsumer::HandleInterestingDecl(DeclGroupRef D) { HandleTopLevelDecl(D); |