Changeset cf0941d for src/Common


Ignore:
Timestamp:
Jun 4, 2015, 11:08:06 PM (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:
44b5ca0
Parents:
c7ed6d0
Message:

adjust printing for AST dump, formatting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Common/utility.h

    rc7ed6d0 rcf0941d  
    99// Author           : Richard C. Bilson
    1010// Created On       : Mon May 18 07:44:20 2015
    11 // Last Modified By : Rob Schluntz
    12 // Last Modified On : Fri May 29 16:17:02 2015
    13 // Update Count     : 7
     11// Last Modified By : Peter A. Buhr
     12// Last Modified On : Thu Jun  4 21:29:57 2015
     13// Update Count     : 9
    1414//
    1515
     
    6060        for ( typename Container::const_iterator i = container.begin(); i != container.end(); ++i ) {
    6161                if ( *i ) {
    62                         os << std::string(indent,  ' ');
     62                        os << std::string( indent,  ' ' );
    6363                        (*i)->print( os, indent + 2 );
    6464                        os << std::endl;
     
    151151template< typename T >
    152152void replace( std::list< T > &org, typename std::list< T >::iterator pos, std::list< T > &with ) {
    153         // TIter should secretly be a typename std::list< T >::iterator
    154         //   ( g++ 3.2 issues a 'is implicitly a typename' warning if I make this explicit )
    155153        typename std::list< T >::iterator next = pos; advance( next, 1 );
    156154
Note: See TracChangeset for help on using the changeset viewer.