/// the EOF was encountered.
bool ParseTopLevelDecl(DeclTy*& Result);
- /// Finalize - Shut down the parser.
- ///
- void Finalize();
-
private:
//===--------------------------------------------------------------------===//
// Low-Level token peeking and consumption methods.
return false;
}
-/// Finalize - Shut down the parser.
-///
-void Parser::Finalize() {
- ExitScope();
- assert(CurScope == 0 && "Scope imbalance!");
-}
-
/// ParseTranslationUnit:
/// translation-unit: [C99 6.9]
/// external-declaration
DeclTy *Res;
while (!ParseTopLevelDecl(Res))
/*parse them all*/;
-
- Finalize();
+
+ ExitScope();
+ assert(CurScope == 0 && "Scope imbalance!");
}
/// ParseExternalDeclaration:
/// of known functions used by the semantic analysis to do various
/// kinds of checking (e.g. checking format string errors in printf calls).
/// This list is populated upon the creation of a Sema object.
- IdentifierInfo* KnownFunctionIDs[ id_num_known_functions ];
+ IdentifierInfo* KnownFunctionIDs[id_num_known_functions];
/// SuperID - Identifier for "super" used for Objective-C checking.
IdentifierInfo* SuperID;
virtual DeclTy *ActOnTag(Scope *S, unsigned TagType, TagKind TK,
SourceLocation KWLoc, IdentifierInfo *Name,
SourceLocation NameLoc, AttributeList *Attr);
- virtual void ActOnDefs(Scope *S, SourceLocation DeclStart, IdentifierInfo
- *ClassName, llvm::SmallVectorImpl<DeclTy*> &Decls);
+ virtual void ActOnDefs(Scope *S, SourceLocation DeclStart,
+ IdentifierInfo *ClassName,
+ llvm::SmallVectorImpl<DeclTy*> &Decls);
virtual DeclTy *ActOnField(Scope *S, SourceLocation DeclStart,
Declarator &D, ExprTy *BitfieldWidth);