Changes in src/CodeGen/CodeGenerator.h [907eccb:44a81853]
- File:
-
- 1 edited
-
src/CodeGen/CodeGenerator.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/CodeGen/CodeGenerator.h
r907eccb r44a81853 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Tue Dec 13 13:51:53 201613 // Update Count : 3912 // Last Modified On : Tue Jan 17 16:55:40 2017 13 // Update Count : 48 14 14 // 15 15 … … 114 114 void extension( Declaration *decl ); 115 115 private: 116 117 116 Indenter indent; 118 117 int cur_indent; … … 131 130 template< class Iterator > 132 131 void CodeGenerator::genCommaList( Iterator begin, Iterator end ) { 133 if ( begin == end ) return; 134 132 if ( begin == end ) return; 135 133 for ( ;; ) { 136 134 (*begin++)->accept( *this ); 137 if ( begin == end ) return;138 output << ", "; 135 if ( begin == end ) break; 136 output << ", "; // separator 139 137 } // for 140 } 138 } // genCommaList 141 139 142 140 inline bool doSemicolon( Declaration* decl ) { … … 145 143 } // if 146 144 return true; 147 } 145 } // doSemicolon 148 146 149 147 /// returns C-compatible name of declaration
Note:
See TracChangeset
for help on using the changeset viewer.