Ignore:
Timestamp:
Feb 20, 2019, 10:00:59 PM (5 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, persistent-indexer, pthread-emulation, qualifiedEnum
Children:
2d2df9f
Parents:
6dfed1f
Message:

bracket rows in matrix initialization

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/BasicTypes-gen.cc

    r6dfed1f r96df1329  
    368368        code << "\t#define BT BasicType::" << endl;
    369369        code << "\tstatic const BasicType::Kind commonTypes[BasicType::NUMBER_OF_BASIC_TYPES][BasicType::NUMBER_OF_BASIC_TYPES] = { // nearest common ancestor" << endl
    370              << "\t\t/*      ";
     370             << "\t\t/*\t\t ";
    371371        for ( int r = 0; r < NUMBER_OF_BASIC_TYPES; r += 1 ) { // titles
    372372                code << setw(24) << graph[r].abbrev;
    373373                if ( (r+1) % PER_ROW == 0 ) {
    374                         code << endl << "\t\t         ";
    375                 } else {
    376                         code << ' ';
    377                 }
     374                        code << endl << "\t\t\t\t ";
     375                } // if
    378376        } // for
    379377        code << "*/" << endl;
    380378        for ( int r = 0; r < NUMBER_OF_BASIC_TYPES; r += 1 ) { // costs
    381                 code << "\t\t/*" << setw(6) << graph[r].abbrev << "*/";
     379                code << "\t\t\t\t  {\n\t\t/*" << setw(6) << graph[r].abbrev << "*/";
    382380                for ( int c = 0; c < NUMBER_OF_BASIC_TYPES; c += 1 ) {
    383381                        string s = string{"BT "} + graph[commonTypeMatrix[r][c]].name;
    384382                        code << setw(23) << s << ",";
    385383                        if ( (c+1) % PER_ROW == 0 ) {
    386                                 code << endl << "\t\t          ";
    387                         } else {
    388                                 code << ' ';
    389                         }
     384                                code << endl << "\t\t\t\t  ";
     385                        } // if
    390386                } // for
    391                 code << endl;
     387                code << "}," << endl;
    392388        } // for
    393389        code << "\t};" << endl;
Note: See TracChangeset for help on using the changeset viewer.