Ignore:
Timestamp:
May 17, 2015, 1:19:35 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:
0dd3a2f
Parents:
b87a5ed
Message:

licencing: second groups of files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • translator/Parser/StatementNode.cc

    rb87a5ed ra32b204  
    171171void StatementNode::print( std::ostream &os, int indent ) const {
    172172        if ( labels != 0 )
    173                 if (!labels->empty()) {
     173                if (! labels->empty()) {
    174174                        std::list<std::string>::const_iterator i;
    175175
    176176                        os << '\r' << string( indent, ' ');
    177                         for( i = labels->begin(); i != labels->end(); i++ )
     177                        for ( i = labels->begin(); i != labels->end(); i++ )
    178178                                os << *i << ":";
    179179                        os << endl;
    180180                }
    181181
    182         switch( type ) {
     182        switch ( type ) {
    183183          case Decl:
    184184                decl->print( os, indent );
     
    232232        buildList<Statement, StatementNode>( get_block(), branches );
    233233
    234         switch( type ) {
     234        switch ( type ) {
    235235          case Decl:
    236236                return new DeclStmt( labs, maybeBuild< Declaration >( decl ) );
     
    251251                        thenb = branches.front();
    252252                        branches.pop_front();
    253                         if ( !branches.empty() ) {
     253                        if ( ! branches.empty() ) {
    254254                                elseb = branches.front();
    255255                                branches.pop_front();
Note: See TracChangeset for help on using the changeset viewer.