Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/AggregateDecl.cc

    r4040425 r5d125e4  
    1010// Created On       : Sun May 17 23:56:39 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Wed Mar  2 17:28:00 2016
    13 // Update Count     : 7
     12// Last Modified On : Wed Jul 13 18:03:30 2016
     13// Update Count     : 10
    1414//
    1515
     
    1919
    2020
    21 AggregateDecl::AggregateDecl( const std::string &name ) : Parent( name, DeclarationNode::NoStorageClass, LinkageSpec::Cforall ) {
     21AggregateDecl::AggregateDecl( const std::string &name ) : Parent( name, DeclarationNode::NoStorageClass, LinkageSpec::Cforall ), body( false ) {
    2222}
    2323
     
    2525        cloneAll( other.members, members );
    2626        cloneAll( other.parameters, parameters );
     27        body = other.body;
    2728}
    2829
     
    3738
    3839        os << typeString() << " " << get_name();
     40        os << string( indent+2, ' ' ) << "with body " << has_body() << endl;
     41
    3942        if ( ! parameters.empty() ) {
    4043                os << endl << string( indent+2, ' ' ) << "with parameters" << endl;
     
    5255
    5356        os << typeString() << " " << get_name();
     57        os << string( indent+2, ' ' ) << "with body " << has_body() << endl;
     58
    5459        if ( ! parameters.empty() ) {
    5560                os << endl << string( indent+2, ' ' ) << "with parameters" << endl;
Note: See TracChangeset for help on using the changeset viewer.