Changeset 55c97e4


Ignore:
Timestamp:
Apr 25, 2024, 3:43:52 PM (11 days ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
7042c60, e78966e
Parents:
314c9d8 (diff), a1fbad0 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • src/CodeGen/CodeGenerator.cpp

    r314c9d8 r55c97e4  
    167167        ast::Pass<CodeGenerator> subCG( acc, subOptions );
    168168        // Add the forall clause.
    169         // TODO: These probably should be removed by now and the assert used.
    170169        if ( !decl->type_params.empty() ) {
    171170                assertf( !options.genC, "FunctionDecl forall should not reach code generation." );
     
    174173                acc << ")" << std::endl;
    175174        }
     175        // The forall clause should be printed early as part of the preamble.
     176        output << acc.str();
     177        acc.str("");
    176178
    177179        acc << mangleName( decl );
  • src/Parser/parser.yy

    r314c9d8 r55c97e4  
    1010// Created On       : Sat Sep  1 20:22:55 2001
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Sat Mar 16 18:19:23 2024
    13 // Update Count     : 6617
     12// Last Modified On : Tue Apr 23 15:39:29 2024
     13// Update Count     : 6620
    1414//
    1515
     
    493493%type<decl> exception_declaration
    494494
    495 %type<decl> field_declaration_list_opt field_declaration field_declaring_list_opt field_declarator field_abstract_list_opt field_abstract
     495%type<decl> field_declaration_list_opt field_declaration field_declaring_list_opt field_declaring_list field_declarator field_abstract_list_opt field_abstract
    496496%type<expr> field field_name_list field_name fraction_constants_opt
    497497
     
    26822682        // empty
    26832683                { $$ = nullptr; }
    2684         | field_declarator
    2685         | field_declaring_list_opt ',' attribute_list_opt field_declarator
     2684        | field_declaring_list
     2685        ;
     2686
     2687field_declaring_list:
     2688        field_declarator
     2689        | field_declaring_list ',' attribute_list_opt field_declarator
    26862690                { $$ = $1->set_last( $4->addQualifiers( $3 ) ); }
    26872691        ;
Note: See TracChangeset for help on using the changeset viewer.