forked from qt-creator/qt-creator
Removed unused method Parser::maybeFunctionCall()
This commit is contained in:
@@ -1999,44 +1999,6 @@ bool Parser::parseReturnStatement(StatementAST *&node)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Parser::maybeFunctionCall(SimpleDeclarationAST *simpleDecl) const
|
|
||||||
{
|
|
||||||
if (! simpleDecl)
|
|
||||||
return false;
|
|
||||||
else if (! simpleDecl->decl_specifier_seq)
|
|
||||||
return false;
|
|
||||||
else if (simpleDecl->decl_specifier_seq->next)
|
|
||||||
return false;
|
|
||||||
|
|
||||||
NamedTypeSpecifierAST *type_spec = simpleDecl->decl_specifier_seq->asNamedTypeSpecifier();
|
|
||||||
if (! type_spec)
|
|
||||||
return false;
|
|
||||||
|
|
||||||
DeclaratorListAST *first_declarator = simpleDecl->declarators;
|
|
||||||
if (! first_declarator)
|
|
||||||
return false;
|
|
||||||
else if (first_declarator->next)
|
|
||||||
return false;
|
|
||||||
|
|
||||||
DeclaratorAST *declarator = first_declarator->declarator;
|
|
||||||
if (! declarator)
|
|
||||||
return false;
|
|
||||||
else if (declarator->ptr_operators)
|
|
||||||
return false;
|
|
||||||
else if (declarator->postfix_declarators)
|
|
||||||
return false;
|
|
||||||
else if (declarator->initializer)
|
|
||||||
return false;
|
|
||||||
else if (! declarator->core_declarator)
|
|
||||||
return false;
|
|
||||||
|
|
||||||
NestedDeclaratorAST *nested_declarator = declarator->core_declarator->asNestedDeclarator();
|
|
||||||
if (! nested_declarator)
|
|
||||||
return false;
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool Parser::maybeSimpleExpression(SimpleDeclarationAST *simpleDecl) const
|
bool Parser::maybeSimpleExpression(SimpleDeclarationAST *simpleDecl) const
|
||||||
{
|
{
|
||||||
if (! simpleDecl->declarators) {
|
if (! simpleDecl->declarators) {
|
||||||
|
@@ -265,7 +265,6 @@ public:
|
|||||||
void match(int kind, unsigned *token);
|
void match(int kind, unsigned *token);
|
||||||
|
|
||||||
bool maybeAmbiguousStatement(DeclarationStatementAST *ast) const;
|
bool maybeAmbiguousStatement(DeclarationStatementAST *ast) const;
|
||||||
bool maybeFunctionCall(SimpleDeclarationAST *simpleDecl) const;
|
|
||||||
bool maybeSimpleExpression(SimpleDeclarationAST *simpleDecl) const;
|
bool maybeSimpleExpression(SimpleDeclarationAST *simpleDecl) const;
|
||||||
bool maybeForwardOrClassDeclaration(SpecifierAST *decl_specifier_seq) const;
|
bool maybeForwardOrClassDeclaration(SpecifierAST *decl_specifier_seq) const;
|
||||||
bool isPointerDeclaration(DeclarationStatementAST *ast) const;
|
bool isPointerDeclaration(DeclarationStatementAST *ast) const;
|
||||||
|
Reference in New Issue
Block a user