Ignore:
Timestamp:
May 14, 2015, 1:44:55 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:
4bf5298
Parents:
d4778a6
Message:

add inline and attribute qualifiers, cfa.y comment formatting, fix error message in isIntegralType

File:
1 edited

Legend:

Unmodified
Added
Removed
  • translator/ControlStruct/ForExprMutator.cc

    rd4778a6 rc11e31c  
    55namespace ControlStruct {
    66    Statement *ForExprMutator::mutate( ForStmt *forStmt ) {
     7        // recurse down all nest for loops to hoist any initializer declarations to make them C89 (rather than C99)
    78        forStmt->set_body( forStmt->get_body()->acceptMutator( *this ) );
    89        if ( DeclStmt *decl = dynamic_cast< DeclStmt * > ( forStmt->get_initialization() ) ) {
    9             // create compound statement, move declaration outside, leave _for_ as-is
     10            // create compound statement, move initializer declaration outside, leave _for_ as-is
    1011            CompoundStmt *block = new CompoundStmt( std::list< Label >() );
    1112            std::list<Statement *> &stmts = block->get_kids();
     
    1718            return block;
    1819        } // if
    19         // ForStmt still needs to be fixed
    20         else
    21             return forStmt;
     20
     21        return forStmt;
    2222    }
    2323} // namespace ControlStruct
Note: See TracChangeset for help on using the changeset viewer.