source: translator/InitTweak/RemoveInit.h @ 48e99f2

aaron-thesisarm-ehcleanup-dtorsctordeferred_resndemanglergc_noraiijacob/cs343-translationjenkins-sandboxmemorynew-astnew-ast-unique-exprnew-envno_listpersistent-indexerresolv-newstringwith_gc
Last change on this file since 48e99f2 was 48e99f2, checked in by Rob Schluntz <rschlunt@…>, 7 years ago

fixed initialization of stack-allocated polymorphic variables; missing header file

  • Property mode set to 100644
File size: 734 bytes
Line 
1/*
2 * This file is part of the Cforall project
3 *
4 * $Id: PolyMutator.h,v 1.8 2005/08/29 20:14:13 rcbilson Exp $
5 *
6 */
7
8#ifndef REMOVE_INIT_H
9#define REMOVE_INIT_H
10
11#include <string>
12#include <list>
13
14#include "SynTree/SynTree.h"
15#include "SynTree/Declaration.h"
16#include "SynTree/Mutator.h"
17
18namespace InitTweak {
19
20void tweak( std::list< Declaration * > translationUnit );
21
22class RemoveInit : public Mutator {
23public:
24  // RemoveInit();
25  virtual ObjectDecl *mutate(ObjectDecl *objDecl);
26  virtual CompoundStmt *mutate(CompoundStmt *compoundStmt);
27protected:
28  std::list< Statement* > stmtsToAddAfter;
29  void mutateStatementList( std::list< Statement* > &statements );
30};
31
32} // namespace
33
34#endif /* #ifndef GENPOLY_POLYMUTATOR_H */
Note: See TracBrowser for help on using the repository browser.