forked from qt-creator/qt-creator
Removed the ExpressionListAST node.
Done with Erik Verbruggen
This commit is contained in:
@@ -380,15 +380,8 @@ bool CheckUndefinedSymbols::visit(BaseSpecifierAST *base)
|
||||
resolvedBaseClassName = true;
|
||||
}
|
||||
|
||||
if (! resolvedBaseClassName) {
|
||||
const char *token = "after `:'";
|
||||
|
||||
if (base->comma_token)
|
||||
token = "after `,'";
|
||||
|
||||
translationUnit()->warning(nameAST->firstToken(),
|
||||
"expected class-name %s token", token);
|
||||
}
|
||||
if (! resolvedBaseClassName)
|
||||
translationUnit()->warning(nameAST->firstToken(), "expected class-name");
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
@@ -118,12 +118,6 @@ void ResolveExpression::addResult(const Result &r)
|
||||
QList<Scope *> ResolveExpression::visibleScopes(const Result &result) const
|
||||
{ return _context.visibleScopes(result); }
|
||||
|
||||
bool ResolveExpression::visit(ExpressionListAST *)
|
||||
{
|
||||
// nothing to do.
|
||||
return false;
|
||||
}
|
||||
|
||||
bool ResolveExpression::visit(BinaryExpressionAST *ast)
|
||||
{
|
||||
accept(ast->left_expression);
|
||||
|
||||
@@ -72,7 +72,6 @@ protected:
|
||||
|
||||
using ASTVisitor::visit;
|
||||
|
||||
virtual bool visit(ExpressionListAST *ast);
|
||||
virtual bool visit(BinaryExpressionAST *ast);
|
||||
virtual bool visit(CastExpressionAST *ast);
|
||||
virtual bool visit(ConditionAST *ast);
|
||||
|
||||
Reference in New Issue
Block a user