Changeset 84bb4d9


Ignore:
Timestamp:
Apr 27, 2016, 5:37:06 PM (6 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, ctor, deferred_resn, demangler, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, resolv-new, with_gc
Children:
a0fdbd5
Parents:
1ad1c99
Message:

change printing in ConstructorInit?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/Initializer.cc

    r1ad1c99 r84bb4d9  
    1010// Created On       : Mon May 18 07:44:20 2015
    1111// Last Modified By : Rob Schluntz
    12 // Last Modified On : Tue Apr 26 12:57:34 2016
     12// Last Modified On : Tue Apr 26 15:51:35 2016
    1313// Update Count     : 28
    1414//
     
    9393
    9494void ConstructorInit::print( std::ostream &os, int indent ) {
    95         os << std::endl << std::string(indent, ' ') << "Constructor initializer: ";
     95        os << std::endl << std::string(indent, ' ') << "Constructor initializer: " << std::endl;
    9696        if ( ctor ) {
    97                 os << " initially constructed with ";
    98                 ctor->print( os, indent+2 );
     97                os << std::string(indent+2, ' ');
     98                os << "initially constructed with ";
     99                ctor->print( os, indent+4 );
    99100        } // if
    100101
    101102        if ( dtor ) {
    102                 os << " destructed with ";
    103                 dtor->print( os, indent+2 );
     103                os << std::string(indent+2, ' ');
     104                os << "destructed with ";
     105                dtor->print( os, indent+4 );
    104106        }
    105107
    106108        if ( init ) {
    107                 os << " with fallback C-style initializer: ";
    108                 init->print( os, indent+2 );
     109                os << std::string(indent+2, ' ');
     110                os << "with fallback C-style initializer: ";
     111                init->print( os, indent+4 );
    109112        }
    110113}
Note: See TracChangeset for help on using the changeset viewer.