Cleanup ptr operators.

This commit is contained in:
Roberto Raggi
2009-11-10 15:30:16 +01:00
parent 1fb33e9fad
commit 4fc2ccf0c5
12 changed files with 49 additions and 54 deletions

View File

@@ -409,8 +409,9 @@ bool FindUsages::visit(ParameterDeclarationAST *ast)
for (SpecifierAST *attr = declarator->attributes; attr; attr = attr->next)
accept(attr);
for (PtrOperatorAST *ptr_op = declarator->ptr_operators; ptr_op; ptr_op = ptr_op->next)
accept(ptr_op);
for (PtrOperatorListAST *it = declarator->ptr_operators; 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);