Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main.cc

    r490fb92e r3e9de01  
    99// Author           : Peter Buhr and Rob Schluntz
    1010// Created On       : Fri May 15 23:12:02 2015
    11 // Last Modified By : Andrew Beach
    12 // Last Modified On : Tue May 19 12:03:00 2020
    13 // Update Count     : 634
     11// Last Modified By : Peter A. Buhr
     12// Last Modified On : Thu Oct  8 18:17:46 2020
     13// Update Count     : 637
    1414//
    1515
     
    343343                        auto transUnit = convert( move( translationUnit ) );
    344344                        PASS( "Resolve", ResolvExpr::resolve( transUnit ) );
    345                         if ( exprp ) {
    346                                 translationUnit = convert( move( transUnit ) );
    347                                 dump( translationUnit );
    348                                 return EXIT_SUCCESS;
    349                         } // if
    350 
    351                         PASS( "Fix Init", InitTweak::fix(transUnit, buildingLibrary()));
    352345                        translationUnit = convert( move( transUnit ) );
    353346                } else {
    354347                        PASS( "Resolve", ResolvExpr::resolve( translationUnit ) );
    355                         if ( exprp ) {
    356                                 dump( translationUnit );
    357                                 return EXIT_SUCCESS;
    358                         }
    359 
    360                         PASS( "Fix Init", InitTweak::fix( translationUnit, buildingLibrary() ) );
    361348                }
    362349
     350                if ( exprp ) {
     351                        dump( translationUnit );
     352                        return EXIT_SUCCESS;
     353                } // if
     354
    363355                // fix ObjectDecl - replaces ConstructorInit nodes
     356                PASS( "Fix Init", InitTweak::fix( translationUnit, buildingLibrary() ) );
    364357                if ( ctorinitp ) {
    365358                        dump ( translationUnit );
     
    458451
    459452
    460 static const char optstring[] = ":c:ghlLmNnpdP:S:twW:D:";
     453static const char optstring[] = ":c:ghlLmNnpdOAP:S:twW:D:";
    461454
    462455enum { PreludeDir = 128 };
     
    485478
    486479static const char * description[] = {
    487         "diagnostic color: never, always, or auto.",          // -c
    488         "wait for gdb to attach",                             // -g
    489         "print help message",                                 // -h
    490         "generate libcfa.c",                                  // -l
    491         "generate line marks",                                // -L
    492         "do not replace main",                                // -m
    493         "do not generate line marks",                         // -N
    494         "do not read prelude",                                // -n
     480        "diagnostic color: never, always, or auto.",            // -c
     481        "wait for gdb to attach",                                                       // -g
     482        "print help message",                                                           // -h
     483        "generate libcfa.c",                                                            // -l
     484        "generate line marks",                                                          // -L
     485        "do not replace main",                                                          // -m
     486        "do not generate line marks",                                           // -N
     487        "do not read prelude",                                                          // -n
    495488        "generate prototypes for prelude functions",            // -p
    496         "don't print output that isn't deterministic",        // -d
    497         "Use the old-ast",                                    // -O
    498         "Use the new-ast",                                    // -A
    499         "print",                                              // -P
     489        "only print deterministic output",                  // -d
     490        "Use the old-ast",                                                                      // -O
     491        "Use the new-ast",                                                                      // -A
     492        "print",                                                                                        // -P
    500493        "<directory> prelude directory for debug/nodebug",      // no flag
    501494        "<option-list> enable profiling information:\n          counters,heap,time,all,none", // -S
    502         "building cfa standard lib",                          // -t
    503         "",                                                   // -w
    504         "",                                                   // -W
    505         "",                                                   // -D
     495        "building cfa standard lib",                                            // -t
     496        "",                                                                                                     // -w
     497        "",                                                                                                     // -W
     498        "",                                                                                                     // -D
    506499}; // description
    507500
Note: See TracChangeset for help on using the changeset viewer.