Ignore:
Timestamp:
Jun 3, 2019, 10:54:01 AM (5 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
0e315a5, dafe9e1
Parents:
043a5b6 (diff), 8d70648 (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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Convert.cpp

    r043a5b6 ra935892  
    1010// Created On       : Thu May 09 15::37::05 2019
    1111// Last Modified By : Andrew Beach
    12 // Last Modified On : Wed May 29 11:05:00 2019
    13 // Update Count     : 8
     12// Last Modified On : Wed May 29 17:05:00 2019
     13// Update Count     : 9
    1414//
    1515
     
    7777                std::list< T * > acceptL( const U & container ) {
    7878                        std::list< T * > ret;
    79                         for (auto ptr : container ) {
     79                        for ( auto ptr : container ) {
    8080                                ret.emplace_back( accept1( ptr ) );
    8181                        }
     
    168168                        LinkageSpec::Spec( node->linkage.val ),
    169169                        get<FunctionType>().accept1( node->type ),
    170                         get<CompoundStmt>().accept1( node->stmts ),
     170                        {},
    171171                        get<Attribute>().acceptL( node->attributes ),
    172172                        Type::FuncSpecifiers( node->funcSpec.val )
    173173                );
     174                cache.emplace( node, decl );
     175                decl->statements = get<CompoundStmt>().accept1( node->stmts );
    174176                decl->withExprs = get<Expression>().acceptL( node->withExprs );
    175177                if ( dereferenceOperator == node ) {
     
    14461448                        old->name,
    14471449                        GET_ACCEPT_1(type, FunctionType),
    1448                         GET_ACCEPT_1(statements, CompoundStmt),
     1450                        {},
    14491451                        { old->storageClasses.val },
    14501452                        { old->linkage.val },
     
    14531455                };
    14541456                cache.emplace( old, decl );
     1457                decl->withExprs = GET_ACCEPT_V(withExprs, Expr);
     1458                decl->stmts = GET_ACCEPT_1(statements, CompoundStmt);
    14551459                decl->scopeLevel = old->scopeLevel;
    14561460                decl->mangleName = old->mangleName;
Note: See TracChangeset for help on using the changeset viewer.