Change ASTConsumer::HandleTopLevelDecl to return true for the parser to continue

parsing or false to abort parsing.

llvm-svn: 144943
This commit is contained in:
Argyrios Kyrtzidis
2011-11-18 00:26:59 +00:00
parent effdbf55ac
commit 841dd8861a
11 changed files with 35 additions and 17 deletions

View File

@@ -59,10 +59,11 @@ namespace {
*M, *TD, Diags));
}
virtual void HandleTopLevelDecl(DeclGroupRef DG) {
virtual bool HandleTopLevelDecl(DeclGroupRef DG) {
// Make sure to emit all elements of a Decl.
for (DeclGroupRef::iterator I = DG.begin(), E = DG.end(); I != E; ++I)
Builder->EmitTopLevelDecl(*I);
return true;
}
/// HandleTagDeclDefinition - This callback is invoked each time a TagDecl