Ignore:
Timestamp:
May 17, 2015, 1:19:35 PM (9 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, string, with_gc
Children:
0dd3a2f
Parents:
b87a5ed
Message:

licencing: second groups of files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • translator/GenPoly/GenPoly.cc

    rb87a5ed ra32b204  
    2626isPolyVal( Type *type, const TyVarMap &tyVars, bool considerAllTyVars )
    2727{
    28   if( TypeInstType *typeInst = dynamic_cast< TypeInstType* >( type ) ) {
    29     if( tyVars.find( typeInst->get_name() ) != tyVars.end() ) {
     28  if ( TypeInstType *typeInst = dynamic_cast< TypeInstType* >( type ) ) {
     29    if ( tyVars.find( typeInst->get_name() ) != tyVars.end() ) {
    3030      return true;
    3131    }
     
    4141{
    4242  bool needsAdapter = false;
    43   if( !adaptee->get_returnVals().empty() && isPolyVal( adaptee->get_returnVals().front()->get_type(), tyVars, considerAllTyVars ) ) {
     43  if ( ! adaptee->get_returnVals().empty() && isPolyVal( adaptee->get_returnVals().front()->get_type(), tyVars, considerAllTyVars ) ) {
    4444    needsAdapter = true;
    4545  }
    46   for( std::list< DeclarationWithType* >::const_iterator innerArg = adaptee->get_parameters().begin(); !needsAdapter && innerArg != adaptee->get_parameters().end(); ++innerArg ) {
    47     if( isPolyVal( (*innerArg)->get_type(), tyVars, considerAllTyVars ) ) {
     46  for ( std::list< DeclarationWithType* >::const_iterator innerArg = adaptee->get_parameters().begin(); ! needsAdapter && innerArg != adaptee->get_parameters().end(); ++innerArg ) {
     47    if ( isPolyVal( (*innerArg)->get_type(), tyVars, considerAllTyVars ) ) {
    4848      needsAdapter = true;
    4949    }
     
    5656printTyVarMap( std::ostream &os, const TyVarMap &tyVarMap )
    5757{
    58   for( TyVarMap::const_iterator i = tyVarMap.begin(); i != tyVarMap.end(); ++i ) {
     58  for ( TyVarMap::const_iterator i = tyVarMap.begin(); i != tyVarMap.end(); ++i ) {
    5959    os << i->first << " (" << i->second << ") ";
    6060  }
Note: See TracChangeset for help on using the changeset viewer.