// // 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. // // FixInit.h -- // // Author : Rob Schluntz // Created On : Wed Jan 13 16:29:30 2016 // Last Modified By : Rob Schluntz // Last Modified On : Mon May 09 12:08:11 2016 // Update Count : 5 // #ifndef FIX_INIT_H #define FIX_INIT_H #include #include #include "SynTree/SynTree.h" #include "SynTree/Declaration.h" #include "SynTree/Mutator.h" namespace InitTweak { /// replace constructor initializers with expression statements /// and unwrap basic C-style initializers void fix( std::list< Declaration * > & translationUnit ); /// True if stmt is a call statement where the function called is intrinsic and takes one parameter. /// Intended to be used for default ctor/dtor calls, but might have use elsewhere. /// Currently has assertions that make it less than fully general. bool isInstrinsicSingleArgCallStmt( Statement * expr ); } // namespace #endif // GENPOLY_POLYMUTATOR_H // Local Variables: // // tab-width: 4 // // mode: c++ // // compile-command: "make install" // // End: //