Commit 0ae2d96a authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Fixed the AST field names.

parent e5eb88a3
......@@ -103,7 +103,7 @@ bool CheckUndefinedSymbols::isType(const QByteArray &name) const
for (int i = _templateDeclarationStack.size() - 1; i != - 1; --i) {
TemplateDeclarationAST *templateDeclaration = _templateDeclarationStack.at(i);
for (DeclarationListAST *it = templateDeclaration->template_parameters; it; it = it->next) {
for (DeclarationListAST *it = templateDeclaration->template_parameter_list; it; it = it->next) {
DeclarationAST *templateParameter = it->value;
if (templateParameterName(templateParameter) == name)
......@@ -424,7 +424,7 @@ bool CheckUndefinedSymbols::visit(CastExpressionAST *ast)
{
if (ast->lparen_token && ast->type_id && ast->rparen_token && ast->expression) {
if (TypeIdAST *cast_type_id = ast->type_id->asTypeId()) {
SpecifierListAST *type_specifier = cast_type_id->type_specifier;
SpecifierListAST *type_specifier = cast_type_id->type_specifier_list;
if (! cast_type_id->declarator && type_specifier && ! type_specifier->next &&
type_specifier->value->asNamedTypeSpecifier() && ast->expression &&
ast->expression->asUnaryExpression()) {
......@@ -447,7 +447,7 @@ bool CheckUndefinedSymbols::visit(SizeofExpressionAST *ast)
{
if (ast->lparen_token && ast->expression && ast->rparen_token) {
if (TypeIdAST *type_id = ast->expression->asTypeId()) {
SpecifierListAST *type_specifier = type_id->type_specifier;
SpecifierListAST *type_specifier = type_id->type_specifier_list;
if (! type_id->declarator && type_specifier && ! type_specifier->next &&
type_specifier->value->asNamedTypeSpecifier()) {
// this sizeof expression is ambiguos, e.g.
......@@ -455,9 +455,9 @@ bool CheckUndefinedSymbols::visit(SizeofExpressionAST *ast)
// `a' can be a typeid or a nested-expression.
return false;
} else if (type_id->declarator
&& type_id->declarator->postfix_declarators
&& ! type_id->declarator->postfix_declarators->next
&& type_id->declarator->postfix_declarators->value->asArrayDeclarator() != 0) {
&& type_id->declarator->postfix_declarator_list
&& ! type_id->declarator->postfix_declarator_list->next
&& type_id->declarator->postfix_declarator_list->value->asArrayDeclarator() != 0) {
// this sizeof expression is ambiguos, e.g.
// sizeof(a[10])
// `a' can be a typeid or an expression.
......
......@@ -413,7 +413,7 @@ void Document::check(CheckMode mode)
return; // nothing to do.
if (TranslationUnitAST *ast = _translationUnit->ast()->asTranslationUnit()) {
for (DeclarationListAST *decl = ast->declarations; decl; decl = decl->next) {
for (DeclarationListAST *decl = ast->declaration_list; decl; decl = decl->next) {
semantic.check(decl->value, globals);
}
} else if (ExpressionAST *ast = _translationUnit->ast()->asExpression()) {
......
......@@ -288,7 +288,7 @@ void FindUsages::checkExpression(unsigned startToken, unsigned endToken)
bool FindUsages::visit(QualifiedNameAST *ast)
{
for (NestedNameSpecifierListAST *it = ast->nested_name_specifier; it; it = it->next) {
for (NestedNameSpecifierListAST *it = ast->nested_name_specifier_list; it; it = it->next) {
NestedNameSpecifierAST *nested_name_specifier = it->value;
if (NameAST *class_or_namespace_name = nested_name_specifier->class_or_namespace_name) {
......@@ -299,7 +299,7 @@ bool FindUsages::visit(QualifiedNameAST *ast)
template_id = class_or_namespace_name->asTemplateId();
if (template_id) {
for (TemplateArgumentListAST *arg_it = template_id->template_arguments; arg_it; arg_it = arg_it->next) {
for (TemplateArgumentListAST *arg_it = template_id->template_argument_list; arg_it; arg_it = arg_it->next) {
accept(arg_it->value);
}
}
......@@ -332,7 +332,7 @@ bool FindUsages::visit(QualifiedNameAST *ast)
if (template_id) {
identifier_token = template_id->identifier_token;
for (TemplateArgumentListAST *template_arguments = template_id->template_arguments;
for (TemplateArgumentListAST *template_arguments = template_id->template_argument_list;
template_arguments; template_arguments = template_arguments->next) {
accept(template_arguments->value);
}
......@@ -392,7 +392,7 @@ bool FindUsages::visit(TemplateIdAST *ast)
reportResult(ast->identifier_token, candidates);
}
for (TemplateArgumentListAST *template_arguments = ast->template_arguments;
for (TemplateArgumentListAST *template_arguments = ast->template_argument_list;
template_arguments; template_arguments = template_arguments->next) {
accept(template_arguments->value);
}
......@@ -402,23 +402,23 @@ bool FindUsages::visit(TemplateIdAST *ast)
bool FindUsages::visit(ParameterDeclarationAST *ast)
{
for (SpecifierListAST *it = ast->type_specifier; it; it = it->next)
for (SpecifierListAST *it = ast->type_specifier_list; it; it = it->next)
accept(it->value);
if (DeclaratorAST *declarator = ast->declarator) {
for (SpecifierListAST *it = declarator->attributes; it; it = it->next)
for (SpecifierListAST *it = declarator->attribute_list; it; it = it->next)
accept(it->value);
for (PtrOperatorListAST *it = declarator->ptr_operators; it; it = it->next)
for (PtrOperatorListAST *it = declarator->ptr_operator_list; it; it = it->next)
accept(it->value);
if (! _inSimpleDeclaration) // visit the core declarator only if we are not in simple-declaration.
accept(declarator->core_declarator);
for (PostfixDeclaratorListAST *it = declarator->postfix_declarators; it; it = it->next)
for (PostfixDeclaratorListAST *it = declarator->postfix_declarator_list; it; it = it->next)
accept(it->value);
for (SpecifierListAST *it = declarator->post_attributes; it; it = it->next)
for (SpecifierListAST *it = declarator->post_attribute_list; it; it = it->next)
accept(it->value);
accept(declarator->initializer);
......@@ -438,7 +438,7 @@ bool FindUsages::visit(FunctionDeclaratorAST *ast)
{
accept(ast->parameters);
for (SpecifierListAST *it = ast->cv_qualifier_seq; it; it = it->next)
for (SpecifierListAST *it = ast->cv_qualifier_list; it; it = it->next)
accept(it->value);
accept(ast->exception_specification);
......
......@@ -170,8 +170,8 @@ bool ResolveExpression::visit(NewExpressionAST *ast)
{
if (ast->new_type_id) {
Scope *scope = _context.expressionDocument()->globalSymbols();
FullySpecifiedType ty = sem.check(ast->new_type_id->type_specifier, scope);
ty = sem.check(ast->new_type_id->ptr_operators, ty, scope);
FullySpecifiedType ty = sem.check(ast->new_type_id->type_specifier_list, scope);
ty = sem.check(ast->new_type_id->ptr_operator_list, ty, scope);
FullySpecifiedType ptrTy(control()->pointerType(ty));
addResult(ptrTy);
}
......@@ -208,7 +208,7 @@ bool ResolveExpression::visit(PostfixExpressionAST *ast)
{
accept(ast->base_expression);
for (PostfixListAST *it = ast->postfix_expressions; it; it = it->next) {
for (PostfixListAST *it = ast->postfix_expression_list; it; it = it->next) {
accept(it->value);
}
......
......@@ -239,7 +239,7 @@ protected:
return;
else if (TemplateIdAST *template_id = name->asTemplateId()) {
for (TemplateArgumentListAST *it = template_id->template_arguments; it; it = it->next) {
for (TemplateArgumentListAST *it = template_id->template_argument_list; it; it = it->next) {
accept(it->value);
}
}
......@@ -276,7 +276,7 @@ protected:
virtual bool visit(TemplateIdAST *ast)
{
for (TemplateArgumentListAST *arg = ast->template_arguments; arg; arg = arg->next)
for (TemplateArgumentListAST *arg = ast->template_argument_list; arg; arg = arg->next)
accept(arg->value);
unsigned line, column;
......@@ -308,7 +308,7 @@ protected:
virtual bool visit(QualifiedNameAST *ast)
{
for (NestedNameSpecifierListAST *it = ast->nested_name_specifier; it; it = it->next)
for (NestedNameSpecifierListAST *it = ast->nested_name_specifier_list; it; it = it->next)
searchUsesInTemplateArguments(it->value->class_or_namespace_name);
searchUsesInTemplateArguments(ast->unqualified_name);
......@@ -318,7 +318,7 @@ protected:
virtual bool visit(PostfixExpressionAST *ast)
{
accept(ast->base_expression);
for (PostfixListAST *it = ast->postfix_expressions; it; it = it->next) {
for (PostfixListAST *it = ast->postfix_expression_list; it; it = it->next) {
PostfixAST *fx = it->value;
if (fx->asMemberAccess() != 0)
continue; // skip members
......@@ -366,7 +366,7 @@ protected:
{
accept(ast->parameters);
for (SpecifierListAST *it = ast->cv_qualifier_seq; it; it = it->next)
for (SpecifierListAST *it = ast->cv_qualifier_list; it; it = it->next)
accept(it->value);
accept(ast->exception_specification);
......@@ -439,7 +439,7 @@ public:
if (ast) {
if (ast->declarator) {
_visitFunctionDeclarator = true;
accept(ast->declarator->postfix_declarators);
accept(ast->declarator->postfix_declarator_list);
}
_visitFunctionDeclarator = false;
......
......@@ -1072,8 +1072,8 @@ bool CppCodeCompletion::completeConstructorOrFunction(const QList<TypeOfExpressi
if (doc->parse(Document::ParseDeclaration)) {
doc->check();
if (SimpleDeclarationAST *sd = doc->translationUnit()->ast()->asSimpleDeclaration()) {
if (sd->declarators->value->postfix_declarators
&& sd->declarators->value->postfix_declarators->value->asFunctionDeclarator()) {
if (sd->declarator_list && sd->declarator_list->value->postfix_declarator_list
&& sd->declarator_list->value->postfix_declarator_list->value->asFunctionDeclarator()) {
autocompleteSignature = true;
}
}
......
This diff is collapsed.
......@@ -286,7 +286,7 @@ public:
unsigned attribute_token;
unsigned first_lparen_token;
unsigned second_lparen_token;
AttributeListAST *attributes;
AttributeListAST *attribute_list;
unsigned first_rparen_token;
unsigned second_rparen_token;
......@@ -370,11 +370,11 @@ public:
class CPLUSPLUS_EXPORT DeclaratorAST: public AST
{
public:
SpecifierListAST *attributes;
PtrOperatorListAST *ptr_operators;
SpecifierListAST *attribute_list;
PtrOperatorListAST *ptr_operator_list;
CoreDeclaratorAST *core_declarator;
PostfixDeclaratorListAST *postfix_declarators;
SpecifierListAST *post_attributes;
PostfixDeclaratorListAST *postfix_declarator_list;
SpecifierListAST *post_attribute_list;
unsigned equals_token;
ExpressionAST *initializer;
......@@ -392,8 +392,8 @@ class CPLUSPLUS_EXPORT SimpleDeclarationAST: public DeclarationAST
{
public:
unsigned qt_invokable_token;
SpecifierListAST *decl_specifier_seq;
DeclaratorListAST *declarators;
SpecifierListAST *decl_specifier_list;
DeclaratorListAST *declarator_list;
unsigned semicolon_token;
public:
......@@ -557,12 +557,12 @@ class CPLUSPLUS_EXPORT ClassSpecifierAST: public SpecifierAST
{
public:
unsigned classkey_token;
SpecifierListAST *attributes;
SpecifierListAST *attribute_list;
NameAST *name;
unsigned colon_token;
BaseSpecifierListAST *base_clause_list;
unsigned lbrace_token;
DeclarationListAST *member_specifiers;
DeclarationListAST *member_specifier_list;
unsigned rbrace_token;
public: // annotations
......@@ -600,7 +600,7 @@ class CPLUSPLUS_EXPORT CompoundStatementAST: public StatementAST
{
public:
unsigned lbrace_token;
StatementListAST *statements;
StatementListAST *statement_list;
unsigned rbrace_token;
public: // annotations
......@@ -619,7 +619,7 @@ protected:
class CPLUSPLUS_EXPORT ConditionAST: public ExpressionAST
{
public:
SpecifierListAST *type_specifiers;
SpecifierListAST *type_specifier_list;
DeclaratorAST *declarator;
public:
......@@ -676,7 +676,7 @@ class CPLUSPLUS_EXPORT CtorInitializerAST: public AST
{
public:
unsigned colon_token;
MemInitializerListAST *member_initializers;
MemInitializerListAST *member_initializer_list;
public:
virtual CtorInitializerAST *asCtorInitializer() { return this; }
......@@ -741,7 +741,7 @@ public:
unsigned lparen_token;
ParameterDeclarationClauseAST *parameters;
unsigned rparen_token;
SpecifierListAST *cv_qualifier_seq;
SpecifierListAST *cv_qualifier_list;
ExceptionSpecificationAST *exception_specification;
ExpressionAST *as_cpp_initializer;
......@@ -852,7 +852,7 @@ public:
unsigned enum_token;
NameAST *name;
unsigned lbrace_token;
EnumeratorListAST *enumerators;
EnumeratorListAST *enumerator_list;
unsigned rbrace_token;
public:
......@@ -885,7 +885,7 @@ protected:
class CPLUSPLUS_EXPORT ExceptionDeclarationAST: public DeclarationAST
{
public:
SpecifierListAST *type_specifier;
SpecifierListAST *type_specifier_list;
DeclaratorAST *declarator;
unsigned dot_dot_dot_token;
......@@ -905,7 +905,7 @@ public:
unsigned throw_token;
unsigned lparen_token;
unsigned dot_dot_dot_token;
ExpressionListAST *type_ids;
ExpressionListAST *type_id_list;
unsigned rparen_token;
public:
......@@ -954,7 +954,7 @@ class CPLUSPLUS_EXPORT FunctionDefinitionAST: public DeclarationAST
{
public:
unsigned qt_invokable_token;
SpecifierListAST *decl_specifier_seq;
SpecifierListAST *decl_specifier_list;
DeclaratorAST *declarator;
CtorInitializerAST *ctor_initializer;
StatementAST *function_body;
......@@ -978,7 +978,7 @@ public:
unsigned foreach_token;
unsigned lparen_token;
// declaration
SpecifierListAST *type_specifiers;
SpecifierListAST *type_specifier_list;
DeclaratorAST *declarator;
// or an expression
ExpressionAST *initializer;
......@@ -1087,7 +1087,7 @@ class CPLUSPLUS_EXPORT LinkageBodyAST: public DeclarationAST
{
public:
unsigned lbrace_token;
DeclarationListAST *declarations;
DeclarationListAST *declaration_list;
unsigned rbrace_token;
public:
......@@ -1164,7 +1164,7 @@ class CPLUSPLUS_EXPORT QualifiedNameAST: public NameAST
{
public:
unsigned global_scope_token;
NestedNameSpecifierListAST *nested_name_specifier;
NestedNameSpecifierListAST *nested_name_specifier_list;
NameAST *unqualified_name;
public:
......@@ -1197,8 +1197,8 @@ class CPLUSPLUS_EXPORT ConversionFunctionIdAST: public NameAST
{
public:
unsigned operator_token;
SpecifierListAST *type_specifier;
PtrOperatorListAST *ptr_operators;
SpecifierListAST *type_specifier_list;
PtrOperatorListAST *ptr_operator_list;
public:
virtual ConversionFunctionIdAST *asConversionFunctionId() { return this; }
......@@ -1246,7 +1246,7 @@ class CPLUSPLUS_EXPORT TemplateIdAST: public NameAST
public:
unsigned identifier_token;
unsigned less_token;
TemplateArgumentListAST *template_arguments;
TemplateArgumentListAST *template_argument_list;
unsigned greater_token;
public:
......@@ -1264,7 +1264,7 @@ class CPLUSPLUS_EXPORT NamespaceAST: public DeclarationAST
public:
unsigned namespace_token;
unsigned identifier_token;
SpecifierListAST *attributes;
SpecifierListAST *attribute_list;
DeclarationAST *linkage_body;
public: // annotations
......@@ -1378,9 +1378,9 @@ protected:
class CPLUSPLUS_EXPORT NewTypeIdAST: public AST
{
public:
SpecifierListAST *type_specifier;
PtrOperatorListAST *ptr_operators;
NewArrayDeclaratorListAST *new_array_declarators;
SpecifierListAST *type_specifier_list;
PtrOperatorListAST *ptr_operator_list;
NewArrayDeclaratorListAST *new_array_declarator_list;
public:
virtual NewTypeIdAST *asNewTypeId() { return this; }
......@@ -1412,7 +1412,7 @@ protected:
class CPLUSPLUS_EXPORT ParameterDeclarationAST: public DeclarationAST
{
public:
SpecifierListAST *type_specifier;
SpecifierListAST *type_specifier_list;
DeclaratorAST *declarator;
unsigned equal_token;
ExpressionAST *expression;
......@@ -1433,7 +1433,7 @@ protected:
class CPLUSPLUS_EXPORT ParameterDeclarationClauseAST: public AST
{
public:
DeclarationListAST *parameter_declarations;
DeclarationListAST *parameter_declaration_list;
unsigned dot_dot_dot_token;
public:
......@@ -1558,7 +1558,7 @@ protected:
class CPLUSPLUS_EXPORT TypeConstructorCallAST: public ExpressionAST
{
public:
SpecifierListAST *type_specifier;
SpecifierListAST *type_specifier_list;
unsigned lparen_token;
ExpressionListAST *expression_list;
unsigned rparen_token;
......@@ -1577,7 +1577,7 @@ class CPLUSPLUS_EXPORT PostfixExpressionAST: public ExpressionAST
{
public:
ExpressionAST *base_expression;
PostfixListAST *postfix_expressions;
PostfixListAST *postfix_expression_list;
public:
virtual PostfixExpressionAST *asPostfixExpression() { return this; }
......@@ -1599,9 +1599,9 @@ class CPLUSPLUS_EXPORT PointerToMemberAST: public PtrOperatorAST
{
public:
unsigned global_scope_token;
NestedNameSpecifierListAST *nested_name_specifier;
NestedNameSpecifierListAST *nested_name_specifier_list;
unsigned star_token;
SpecifierListAST *cv_qualifier_seq;
SpecifierListAST *cv_qualifier_list;
public:
virtual PointerToMemberAST *asPointerToMember() { return this; }
......@@ -1617,7 +1617,7 @@ class CPLUSPLUS_EXPORT PointerAST: public PtrOperatorAST
{
public:
unsigned star_token;
SpecifierListAST *cv_qualifier_seq;
SpecifierListAST *cv_qualifier_list;
public:
virtual PointerAST *asPointer() { return this; }
......@@ -1834,7 +1834,7 @@ public:
unsigned export_token;
unsigned template_token;
unsigned less_token;
DeclarationListAST *template_parameters;
DeclarationListAST *template_parameter_list;
unsigned greater_token;
DeclarationAST *declaration;
......@@ -1867,7 +1867,7 @@ protected:
class CPLUSPLUS_EXPORT TranslationUnitAST: public AST
{
public:
DeclarationListAST *declarations;
DeclarationListAST *declaration_list;
public:
virtual TranslationUnitAST *asTranslationUnit() { return this; }
......@@ -1921,7 +1921,7 @@ protected:
class CPLUSPLUS_EXPORT TypeIdAST: public ExpressionAST
{
public:
SpecifierListAST *type_specifier;
SpecifierListAST *type_specifier_list;
DeclaratorAST *declarator;
public:
......@@ -1960,7 +1960,7 @@ class CPLUSPLUS_EXPORT TemplateTypeParameterAST: public DeclarationAST
public:
unsigned template_token;
unsigned less_token;
DeclarationListAST *template_parameters;
DeclarationListAST *template_parameter_list;
unsigned greater_token;
unsigned class_token;
NameAST *name;
......@@ -2063,7 +2063,7 @@ protected:
class CPLUSPLUS_EXPORT ObjCClassForwardDeclarationAST: public DeclarationAST
{
public:
SpecifierListAST *attributes;
SpecifierListAST *attribute_list;
unsigned class_token;
ObjCIdentifierListAST *identifier_list;
unsigned semicolon_token;
......@@ -2084,7 +2084,7 @@ protected:
class CPLUSPLUS_EXPORT ObjCClassDeclarationAST: public DeclarationAST
{
public:
SpecifierListAST *attributes;
SpecifierListAST *attribute_list;
unsigned interface_token;
unsigned implementation_token;
NameAST *class_name;
......@@ -2095,7 +2095,7 @@ public:
NameAST *superclass;
ObjCProtocolRefsAST *protocol_refs;
ObjCInstanceVariablesDeclarationAST *inst_vars_decl;
DeclarationListAST *member_declarations;
DeclarationListAST *member_declaration_list;
unsigned end_token;
public: // annotations
......@@ -2114,7 +2114,7 @@ protected:
class CPLUSPLUS_EXPORT ObjCProtocolForwardDeclarationAST: public DeclarationAST
{
public:
SpecifierListAST *attributes;
SpecifierListAST *attribute_list;
unsigned protocol_token;
ObjCIdentifierListAST *identifier_list;
unsigned semicolon_token;
......@@ -2135,11 +2135,11 @@ protected:
class CPLUSPLUS_EXPORT ObjCProtocolDeclarationAST: public DeclarationAST
{
public:
SpecifierListAST *attributes;
SpecifierListAST *attribute_list;
unsigned protocol_token;
NameAST *name;
ObjCProtocolRefsAST *protocol_refs;
DeclarationListAST *member_declarations;
DeclarationListAST *member_declaration_list;
unsigned end_token;
public: // annotations
......@@ -2302,7 +2302,7 @@ protected:
class CPLUSPLUS_EXPORT ObjCSelectorWithArgumentsAST: public ObjCSelectorAST
{
public:
ObjCSelectorArgumentListAST *selector_arguments;
ObjCSelectorArgumentListAST *selector_argument_list;
public:
virtual ObjCSelectorWithArgumentsAST *asObjCSelectorWithArguments() { return this; }
......@@ -2336,7 +2336,7 @@ class CPLUSPLUS_EXPORT ObjCInstanceVariablesDeclarationAST: public AST
{
public:
unsigned lbrace_token;
DeclarationListAST *instance_variables;
DeclarationListAST *instance_variable_list;
unsigned rbrace_token;
public:
......@@ -2384,10 +2384,10 @@ protected:
class CPLUSPLUS_EXPORT ObjCPropertyDeclarationAST: public DeclarationAST
{
public:
SpecifierListAST *attributes;
SpecifierListAST *attribute_list;
unsigned property_token;
unsigned lparen_token;
ObjCPropertyAttributeListAST *property_attributes;
ObjCPropertyAttributeListAST *property_attribute_list;
unsigned rparen_token;
DeclarationAST *simple_declaration;
......@@ -2405,7 +2405,7 @@ class CPLUSPLUS_EXPORT ObjCMessageArgumentDeclarationAST: public NameAST
{
public:
ObjCTypeNameAST* type_name;
SpecifierListAST *attributes;
SpecifierListAST *attribute_list;
unsigned param_name_token;
public: // annotations
......@@ -2427,9 +2427,9 @@ public:
unsigned method_type_token;
ObjCTypeNameAST *type_name;
ObjCSelectorAST *selector;
ObjCMessageArgumentDeclarationListAST *arguments;
ObjCMessageArgumentDeclarationListAST *argument_list;
unsigned dot_dot_dot_token;
SpecifierListAST *attributes;
SpecifierListAST *attribute_list;
public: // annotations
ObjCMethod *symbol;
......@@ -2482,7 +2482,7 @@ class CPLUSPLUS_EXPORT ObjCSynthesizedPropertiesDeclarationAST: public Declarati
{
public:
unsigned synthesized_token;
ObjCSynthesizedPropertyListAST *property_identifiers;
ObjCSynthesizedPropertyListAST *property_identifier_list;
unsigned semicolon_token;
public:
......@@ -2499,7 +2499,7 @@ class CPLUSPLUS_EXPORT ObjCDynamicPropertiesDeclarationAST: public DeclarationAS
{
public:
unsigned dynamic_token;
ObjCIdentifierListAST *property_identifiers;
ObjCIdentifierListAST *property_identifier_list;
unsigned semicolon_token;
public:
......@@ -2519,7 +2519,7 @@ public:
unsigned lparen_token;
// declaration
SpecifierListAST *type_specifiers;
SpecifierListAST *type_specifier_list;
DeclaratorAST *declarator;
// or an expression
ExpressionAST *initializer;
......
......@@ -42,7 +42,7 @@ void SimpleSpecifierAST::accept0(ASTVisitor *visitor)
void AttributeSpecifierAST::accept0(ASTVisitor *visitor)
{
if (visitor->visit(this)) {
accept(attributes, visitor);
accept(attribute_list, visitor);
}
visitor->endVisit(this);
}
......@@ -66,11 +66,11 @@ void TypeofSpecifierAST::accept0(ASTVisitor *visitor)
void DeclaratorAST::accept0(ASTVisitor *visitor)
{
if (visitor->visit(this)) {