Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main.cc

    r490fb92e r3746f777  
    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
     
    341341
    342342                if( useNewAST) {
     343                        if (Stats::Counters::enabled) {
     344                                ast::pass_visitor_stats.avg = Stats::Counters::build<Stats::Counters::AverageCounter<double>>("Average Depth - New");
     345                                ast::pass_visitor_stats.max = Stats::Counters::build<Stats::Counters::MaxCounter<double>>("Max depth - New");
     346                        }
    343347                        auto transUnit = convert( move( translationUnit ) );
    344348                        PASS( "Resolve", ResolvExpr::resolve( transUnit ) );
     
    458462
    459463
    460 static const char optstring[] = ":c:ghlLmNnpdP:S:twW:D:";
     464static const char optstring[] = ":c:ghlLmNnpdOAP:S:twW:D:";
    461465
    462466enum { PreludeDir = 128 };
     
    485489
    486490static 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
     491        "diagnostic color: never, always, or auto.",            // -c
     492        "wait for gdb to attach",                                                       // -g
     493        "print help message",                                                           // -h
     494        "generate libcfa.c",                                                            // -l
     495        "generate line marks",                                                          // -L
     496        "do not replace main",                                                          // -m
     497        "do not generate line marks",                                           // -N
     498        "do not read prelude",                                                          // -n
    495499        "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
     500        "only print deterministic output",                  // -d
     501        "Use the old-ast",                                                                      // -O
     502        "Use the new-ast",                                                                      // -A
     503        "print",                                                                                        // -P
    500504        "<directory> prelude directory for debug/nodebug",      // no flag
    501505        "<option-list> enable profiling information:\n          counters,heap,time,all,none", // -S
    502         "building cfa standard lib",                          // -t
    503         "",                                                   // -w
    504         "",                                                   // -W
    505         "",                                                   // -D
     506        "building cfa standard lib",                                            // -t
     507        "",                                                                                                     // -w
     508        "",                                                                                                     // -W
     509        "",                                                                                                     // -D
    506510}; // description
    507511
Note: See TracChangeset for help on using the changeset viewer.