Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/AggregateDecl.cc

    rc0aa336 r4a9ccc3  
    1010// Created On       : Sun May 17 23:56:39 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Mon Feb  6 15:31:23 2017
    13 // Update Count     : 17
     12// Last Modified On : Wed Jul 13 18:03:30 2016
     13// Update Count     : 10
    1414//
    1515
    1616#include "Declaration.h"
    17 #include "Attribute.h"
    1817#include "Type.h"
    1918#include "Common/utility.h"
    2019
    2120
    22 AggregateDecl::AggregateDecl( const std::string &name, const std::list< Attribute * > & attributes ) : Parent( name, DeclarationNode::NoStorageClass, LinkageSpec::Cforall ), body( false ), attributes( attributes ) {
     21AggregateDecl::AggregateDecl( const std::string &name ) : Parent( name, DeclarationNode::NoStorageClass, LinkageSpec::Cforall ), body( false ) {
    2322}
    2423
     
    2625        cloneAll( other.members, members );
    2726        cloneAll( other.parameters, parameters );
    28         cloneAll( other.attributes, attributes );
    2927        body = other.body;
    3028}
    3129
    3230AggregateDecl::~AggregateDecl() {
    33         deleteAll( attributes );
     31        deleteAll( members );
    3432        deleteAll( parameters );
    35         deleteAll( members );
    3633}
    3734
     
    5047                os << endl << string( indent+2, ' ' ) << "with members" << endl;
    5148                printAll( members, os, indent+4 );
    52         } // if
    53         if ( ! attributes.empty() ) {
    54                 os << endl << string( indent+2, ' ' ) << "with attributes" << endl;
    55                 printAll( attributes, os, indent+4 );
    5649        } // if
    5750}
Note: See TracChangeset for help on using the changeset viewer.