Changeset 7b937575 for src/main.cc


Ignore:
Timestamp:
May 4, 2016, 11:34:11 PM (8 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
4acc87f, cb4c607
Parents:
7937abf
Message:

pass source file-name without suffix to cfa-cpp

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main.cc

    r7937abf r7b937575  
    1010// Created On       : Fri May 15 23:12:02 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Wed Jan 27 22:20:20 2016
    13 // Update Count     : 199
     12// Last Modified On : Wed May  4 23:32:59 2016
     13// Update Count     : 203
    1414//
    1515
     
    9797        std::ostream *output = &std::cout;
    9898        int long_index;
    99         std::list< Declaration* > translationUnit;
     99        std::list< Declaration * > translationUnit;
     100        const char *filename = NULL;;
    100101
    101102        opterr = 0;                                                                                     // prevent getopt from printing error messages
    102103       
    103104        int c;
    104         while ( (c = getopt_long( argc, argv, "abefglnpqrstvyzD:", long_opts, &long_index )) != -1 ) {
     105        while ( (c = getopt_long( argc, argv, "abefglnpqrstvyzD:F:", long_opts, &long_index )) != -1 ) {
    105106                switch ( c ) {
    106107                  case Ast:
     
    162163                        break;
    163164                  case 'D':                                                                             // ignore -Dxxx
     165                        break;
     166                  case 'F':                                                                             // source file-name without suffix
     167                        filename = optarg;
    164168                        break;
    165169                  case '?':
Note: See TracChangeset for help on using the changeset viewer.