Changeset 8e9cbb2 for src/ResolvExpr


Ignore:
Timestamp:
Jul 4, 2016, 9:24: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, 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:
7fe4cc3e
Parents:
0a2c1f1
Message:

add more code to handle gcc extension and test program, second attempt

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/AlternativeFinder.cc

    r0a2c1f1 r8e9cbb2  
    1010// Created On       : Sat May 16 23:52:08 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Mon Jun 13 16:13:54 2016
    13 // Update Count     : 25
     12// Last Modified On : Mon Jul  4 17:02:51 2016
     13// Update Count     : 29
    1414//
    1515
     
    227227                        std::cerr << "there are " << alternatives.size() << " alternatives after elimination" << std::endl;
    228228                )
     229
     230                // Central location to handle gcc extension keyword for all expression types.
     231                for ( Alternative &iter: alternatives ) {
     232                        iter.expr->set_extension( expr->get_extension() );
     233                } // for
    229234        }
    230235
     
    772777                for ( std::list< DeclarationWithType* >::iterator i = declList.begin(); i != declList.end(); ++i ) {
    773778                        VariableExpr newExpr( *i, nameExpr->get_argName() );
    774                         newExpr.set_extension( nameExpr->get_extension() );
    775779                        alternatives.push_back( Alternative( newExpr.clone(), env, Cost() ) );
    776780                        PRINT(
Note: See TracChangeset for help on using the changeset viewer.