Improved parsing of ambiguous statements.

Done with Erik Verbruggen
This commit is contained in:
Roberto Raggi
2009-10-19 17:47:49 +02:00
parent aa89317731
commit fe2c9cc16d
3 changed files with 165 additions and 19 deletions

View File

@@ -264,8 +264,11 @@ public:
void match(int kind, unsigned *token);
bool maybeAmbiguousStatement(DeclarationStatementAST *ast) const;
bool maybeFunctionCall(SimpleDeclarationAST *simpleDecl) const;
bool maybeSimpleExpression(SimpleDeclarationAST *simpleDecl) const;
bool maybeForwardOrClassDeclaration(SpecifierAST *decl_specifier_seq) const;
bool isPointerDeclaration(DeclarationStatementAST *ast) const;
private:
bool switchTemplateArguments(bool templateArguments);