Changeset 9243a501 for src


Ignore:
Timestamp:
May 4, 2016, 12:17:25 PM (8 years ago)
Author:
Rob Schluntz <rschlunt@…>
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, with_gc
Children:
7cc6bd6, bb8ea30
Parents:
60089f4
Message:

fixed printing in MemberExpr?, FunctionDecl?, ObjectDecl?, etc.

Location:
src/SynTree
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/Expression.cc

    r60089f4 r9243a501  
    1010// Created On       : Mon May 18 07:44:20 2015
    1111// Last Modified By : Rob Schluntz
    12 // Last Modified On : Tue Apr 26 12:52:40 2016
     12// Last Modified On : Wed May 04 12:14:09 2016
    1313// Update Count     : 40
    1414//
     
    321321
    322322        Expression *agg = get_aggregate();
    323         os << std::string( indent, ' ' ) << "from aggregate: ";
     323        os << ", from aggregate: ";
    324324        if (agg != 0) {
    325                 os << std::string( indent+2, ' ' );
    326325                agg->print(os, indent + 2);
    327326        }
     
    359358        os << std::string( indent, ' ' ) << "from aggregate: " << std::endl;
    360359        if (agg != 0) {
    361                 os << std::string( indent+2, ' ' );
    362360                agg->print(os, indent + 2);
    363361        }
  • src/SynTree/FunctionDecl.cc

    r60089f4 r9243a501  
    55// file "LICENCE" distributed with Cforall.
    66//
    7 // FunctionDecl.cc -- 
     7// FunctionDecl.cc --
    88//
    99// Author           : Richard C. Bilson
    1010// Created On       : Mon May 18 07:44:20 2015
    11 // Last Modified By : Peter A. Buhr
    12 // Last Modified On : Mon Jul 13 18:11:44 2015
     11// Last Modified By : Rob Schluntz
     12// Last Modified On : Tue May 03 15:37:43 2016
    1313// Update Count     : 19
    1414//
     
    5252        using std::endl;
    5353        using std::string;
    54        
     54
    5555        if ( get_name() != "" ) {
    5656                os << get_name() << ": ";
     
    8787        if ( statements ) {
    8888                os << string( indent + 2, ' ' ) << "with body " << endl;
     89                os << string( indent + 4, ' ' );
    8990                statements->print( os, indent + 4 );
    9091        } // if
     
    9495        using std::endl;
    9596        using std::string;
    96        
     97
    9798        if ( get_name() != "" ) {
    9899                os << get_name() << ": ";
  • src/SynTree/ObjectDecl.cc

    r60089f4 r9243a501  
    1010// Created On       : Mon May 18 07:44:20 2015
    1111// Last Modified By : Rob Schluntz
    12 // Last Modified On : Tue Apr 26 12:53:13 2016
     12// Last Modified On : Wed May 04 12:11:56 2016
    1313// Update Count     : 30
    1414//
     
    5656
    5757        if ( init ) {
     58                os << std::string(indent, ' ');
    5859                os << " with initializer ";
    5960                init->print( os, indent );
     
    6162
    6263        if ( bitfieldWidth ) {
     64                os << std::string(indent, ' ');
    6365                os << " with bitfield width ";
    6466                bitfieldWidth->print( os );
Note: See TracChangeset for help on using the changeset viewer.