// // Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo // // The contents of this file are covered under the licence agreement in the // file "LICENCE" distributed with Cforall. // // GenInit.h -- // // Author : Rodolfo G. Esteves // Created On : Mon May 18 07:44:20 2015 // Last Modified By : Peter A. Buhr // Last Modified On : Sat Jul 22 09:31:19 2017 // Update Count : 4 // #pragma once #include // for list #include // for string #include "SynTree/SynTree.h" // for Visitor Nodes namespace InitTweak { /// Adds return value temporaries and wraps Initializers in ConstructorInit nodes void genInit( std::list< Declaration * > & translationUnit ); /// generates a single ctor/dtor statement using objDecl as the 'this' parameter and arg as the optional argument ImplicitCtorDtorStmt * genCtorDtor( const std::string & fname, ObjectDecl * objDecl, Expression * arg = nullptr ); /// creates an appropriate ConstructorInit node which contains a constructor, destructor, and C-initializer ConstructorInit * genCtorInit( ObjectDecl * objDecl ); } // namespace // Local Variables: // // tab-width: 4 // // mode: c++ // // compile-command: "make install" // // End: //