Ignore:
Timestamp:
Jul 15, 2016, 10:16:47 PM (8 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
873ffb7
Parents:
5ed9061
Message:

start code allowing structures to no fields

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/AggregateDecl.cc

    r5ed9061 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.