Handle ambiguous AST nodes.

(cherry picked from commit dbffec2cca)
This commit is contained in:
Roberto Raggi
2009-10-09 11:02:10 +02:00
committed by con
parent 75382ea76d
commit 29a0c6d2a4

View File

@@ -417,6 +417,24 @@ protected:
return false;
}
virtual bool visit(ExpressionOrDeclarationStatementAST *ast)
{
accept(ast->declaration);
return false;
}
virtual bool visit(FunctionDeclaratorAST *ast)
{
accept(ast->parameters);
for (SpecifierAST *spec = ast->cv_qualifier_seq; spec; spec = spec->next)
accept(spec);
accept(ast->exception_specification);
return false;
}
private:
QFutureInterface<Utils::FileSearchResult> *_future;
Identifier *_id; // ### remove me