Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/Declaration.h

    r3ed994e r42107b4  
    4545        Declaration( const std::string &name, Type::StorageClasses scs, LinkageSpec::Spec linkage );
    4646        Declaration( const Declaration &other );
    47         virtual ~Declaration();
    4847
    4948        const std::string &get_name() const { return name; }
     
    8483        Expression *asmName;
    8584        std::list< Attribute * > attributes;
    86         bool isDeleted = false;
    8785
    8886        DeclarationWithType( const std::string &name, Type::StorageClasses scs, LinkageSpec::Spec linkage, const std::list< Attribute * > & attributes, Type::FuncSpecifiers fs );
    8987        DeclarationWithType( const DeclarationWithType &other );
    90         virtual ~DeclarationWithType();
    91 
     88       
    9289        std::string get_mangleName() const { return mangleName; }
    9390        DeclarationWithType * set_mangleName( std::string newValue ) { mangleName = newValue; return this; }
     
    127124                                const std::list< Attribute * > attributes = std::list< Attribute * >(), Type::FuncSpecifiers fs = Type::FuncSpecifiers() );
    128125        ObjectDecl( const ObjectDecl &other );
    129         virtual ~ObjectDecl();
    130126
    131127        virtual Type * get_type() const override { return type; }
     
    157153                                  const std::list< Attribute * > attributes = std::list< Attribute * >(), Type::FuncSpecifiers fs = Type::FuncSpecifiers() );
    158154        FunctionDecl( const FunctionDecl &other );
    159         virtual ~FunctionDecl();
    160155
    161156        virtual Type * get_type() const override { return type; }
     
    185180        NamedTypeDecl( const std::string &name, Type::StorageClasses scs, Type *type );
    186181        NamedTypeDecl( const NamedTypeDecl &other );
    187         virtual ~NamedTypeDecl();
    188182
    189183        Type *get_base() const { return base; }
     
    220214        TypeDecl( const std::string &name, Type::StorageClasses scs, Type *type, Kind kind, bool sized, Type * init = nullptr );
    221215        TypeDecl( const TypeDecl &other );
    222         virtual ~TypeDecl();
    223216
    224217        Kind get_kind() const { return kind; }
     
    269262        AggregateDecl( const std::string &name, const std::list< Attribute * > & attributes = std::list< class Attribute * >(), LinkageSpec::Spec linkage = LinkageSpec::Cforall );
    270263        AggregateDecl( const AggregateDecl &other );
    271         virtual ~AggregateDecl();
    272 
     264       
    273265        std::list<Declaration*>& get_members() { return members; }
    274266        std::list<TypeDecl*>& get_parameters() { return parameters; }
     
    354346        AsmDecl( AsmStmt *stmt );
    355347        AsmDecl( const AsmDecl &other );
    356         virtual ~AsmDecl();
    357348
    358349        AsmStmt *get_stmt() { return stmt; }
     
    373364        StaticAssertDecl( Expression * condition, ConstantExpr * message );
    374365        StaticAssertDecl( const StaticAssertDecl & other );
    375         virtual ~StaticAssertDecl();
    376366
    377367        virtual StaticAssertDecl * clone() const override { return new StaticAssertDecl( *this ); }
Note: See TracChangeset for help on using the changeset viewer.