Changeset 365c8dcb for src/InitTweak


Ignore:
Timestamp:
Apr 14, 2022, 3:00:28 PM (4 years ago)
Author:
JiadaL <j82liang@…>
Branches:
ADT, ast-experimental, enum, master, pthread-emulation, qualifiedEnum
Children:
bfd5512
Parents:
30d91e4 (diff), 4ec9513 (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' into enum

Location:
src/InitTweak
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/InitTweak/GenInit.cc

    r30d91e4 r365c8dcb  
    402402                                        retVal->location, "?{}", retVal, stmt->expr );
    403403                                assertf( ctorStmt,
    404                                         "ReturnFixer: genCtorDtor returned nllptr: %s / %s",
     404                                        "ReturnFixer: genCtorDtor returned nullptr: %s / %s",
    405405                                        toString( retVal ).c_str(),
    406406                                        toString( stmt->expr ).c_str() );
    407                                         stmtsToAddBefore.push_back( ctorStmt );
     407                                stmtsToAddBefore.push_back( ctorStmt );
    408408
    409409                                // Return the retVal object.
     
    421421        void genInit( ast::TranslationUnit & transUnit ) {
    422422                ast::Pass<HoistArrayDimension_NoResolve_New>::run( transUnit );
     423                ast::Pass<ReturnFixer_New>::run( transUnit );
     424        }
     425
     426        void fixReturnStatements( ast::TranslationUnit & transUnit ) {
    423427                ast::Pass<ReturnFixer_New>::run( transUnit );
    424428        }
  • src/InitTweak/GenInit.h

    r30d91e4 r365c8dcb  
    1010// Created On       : Mon May 18 07:44:20 2015
    1111// Last Modified By : Andrew Beach
    12 // Last Modified On : Fri Oct 22 16:08:00 2021
    13 // Update Count     : 6
     12// Last Modified On : Fri Mar 18 14:22:00 2022
     13// Update Count     : 7
    1414//
    1515
     
    3131        /// Converts return statements into copy constructor calls on the hidden return variable
    3232        void fixReturnStatements( std::list< Declaration * > & translationUnit );
     33        void fixReturnStatements( ast::TranslationUnit & translationUnit );
    3334
    3435        /// generates a single ctor/dtor statement using objDecl as the 'this' parameter and arg as the optional argument
Note: See TracChangeset for help on using the changeset viewer.