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

@@ -371,7 +371,7 @@ class CPLUSPLUS_EXPORT DeclaratorAST: public AST
{
public:
SpecifierAST *attributes;
PtrOperatorAST *ptr_operators;
PtrOperatorListAST *ptr_operators;
CoreDeclaratorAST *core_declarator;
PostfixDeclaratorListAST *postfix_declarators;
SpecifierAST *post_attributes;
@@ -1198,7 +1198,7 @@ class CPLUSPLUS_EXPORT ConversionFunctionIdAST: public NameAST
public:
unsigned operator_token;
SpecifierAST *type_specifier;
PtrOperatorAST *ptr_operators;
PtrOperatorListAST *ptr_operators;
public:
virtual ConversionFunctionIdAST *asConversionFunctionId() { return this; }
@@ -1379,7 +1379,7 @@ class CPLUSPLUS_EXPORT NewTypeIdAST: public AST
{
public:
SpecifierAST *type_specifier;
PtrOperatorAST *ptr_operators;
PtrOperatorListAST *ptr_operators;
NewArrayDeclaratorListAST *new_array_declarators;
public:
@@ -1591,12 +1591,8 @@ protected:
class CPLUSPLUS_EXPORT PtrOperatorAST: public AST
{
public:
PtrOperatorAST *next;
public:
virtual PtrOperatorAST *asPtrOperator() { return this; }
};
class CPLUSPLUS_EXPORT PointerToMemberAST: public PtrOperatorAST