Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/CodeGen/CodeGenerator.cc

    r593370c r7c2a7b6  
    203203
    204204        void CodeGenerator::handleAggregate( AggregateDecl * aggDecl, const std::string & kind ) {
     205                genAttributes( aggDecl->get_attributes() );
     206
    205207                if( ! aggDecl->get_parameters().empty() && ! genC ) {
    206208                        // assertf( ! genC, "Aggregate type parameters should not reach code generation." );
     
    211213                }
    212214
    213                 output << kind;
    214                 genAttributes( aggDecl->get_attributes() );
    215                 output << aggDecl->get_name();
     215                output << kind << aggDecl->get_name();
    216216
    217217                if ( aggDecl->has_body() ) {
     
    298298                        output << " }";
    299299                }
    300         }
    301 
    302         void CodeGenerator::postvisit( StaticAssertDecl * assertDecl ) {
    303                 output << "_Static_assert(";
    304                 assertDecl->condition->accept( *visitor );
    305                 output << ", ";
    306                 assertDecl->message->accept( *visitor );
    307                 output << ")";
    308300        }
    309301
Note: See TracChangeset for help on using the changeset viewer.