Ignore:
Timestamp:
Jun 4, 2015, 11:35:13 AM (9 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, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, string, with_gc
Children:
9a8930f
Parents:
30651b0
Message:

enable AM_MAINTAINER_MODE, add operator ?{}, formatting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/ExpressionNode.cc

    r30651b0 ra61fea9a  
    1010// Created On       : Sat May 16 13:17:07 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Sat May 16 13:19:35 2015
    13 // Update Count     : 2
     12// Last Modified On : Wed Jun  3 11:28:56 2015
     13// Update Count     : 7
    1414//
    1515
     
    633633                ExpressionNode *exp;
    634634
    635                 if (( decl = dynamic_cast<DeclarationNode *>( init_)) != 0)
     635                if (( decl = dynamic_cast<DeclarationNode *>(init_) ) != 0)
    636636                        init = new StatementNode( decl );
    637637                else if (( exp = dynamic_cast<ExpressionNode *>( init_)) != 0)
     
    659659
    660660void ForCtlExprNode::print( std::ostream &os, int indent ) const{
    661         os << string( indent,' ') << "For Control Expression -- : " << endl;
    662 
    663         os << "\r" << string( indent + 2,' ') << "initialization: ";
    664         if ( init != 0)
    665                 init->print( os, indent + 4);
    666 
    667         os << "\n\r" << string( indent + 2,' ') << "condition: ";
    668         if ( condition != 0)
    669                 condition->print( os, indent + 4);
    670         os << "\n\r" << string( indent + 2,' ') << "increment: ";
    671         if ( change != 0)
    672                 change->print( os, indent + 4);
     661        os << string( indent,' ') << "For Control Expression -- :" << endl;
     662
     663        os << string( indent + 2,' ' ) << "initialization:" << endl;
     664        if ( init != 0 )
     665                init->printList( os, indent + 4 );
     666
     667        os << string( indent + 2, ' ' ) << "condition: " << endl;
     668        if ( condition != 0 )
     669                condition->print( os, indent + 4 );
     670        os << string( indent + 2,' ' ) << "increment: " << endl;
     671        if ( change != 0 )
     672                change->print( os, indent + 4 );
    673673}
    674674
Note: See TracChangeset for help on using the changeset viewer.