Ignore:
Timestamp:
Jan 19, 2017, 11:04:27 AM (9 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
2175062
Parents:
5ebb2fbc (diff), 68e6031 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of plg.uwaterloo.ca:/u/cforall/software/cfa/cfa-cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/CodeGen/CodeGenerator.h

    r5ebb2fbc re9e4e9ee  
    1010// Created On       : Mon May 18 07:44:20 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Tue Dec 13 13:51:53 2016
    13 // Update Count     : 39
     12// Last Modified On : Tue Jan 17 16:55:40 2017
     13// Update Count     : 48
    1414//
    1515
     
    114114                void extension( Declaration *decl );
    115115          private:
    116 
    117116                Indenter indent;
    118117                int cur_indent;
     
    131130        template< class Iterator >
    132131        void CodeGenerator::genCommaList( Iterator begin, Iterator end ) {
    133                 if ( begin == end ) return;
    134 
     132          if ( begin == end ) return;
    135133                for ( ;; ) {
    136134                        (*begin++)->accept( *this );
    137                         if ( begin == end ) return;
    138                         output << ", ";
     135                  if ( begin == end ) break;
     136                        output << ", ";                                                         // separator
    139137                } // for
    140         }
     138        } // genCommaList
    141139
    142140        inline bool doSemicolon( Declaration* decl ) {
     
    145143                } // if
    146144                return true;
    147         }
     145        } // doSemicolon
    148146
    149147        /// returns C-compatible name of declaration
Note: See TracChangeset for help on using the changeset viewer.