ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsctordeferred_resndemanglerenumforall-pointer-decaygc_noraiijacob/cs343-translationjenkins-sandboxmemorynew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newstringwith_gc
Last change
on this file since d4778a6 was
48e99f2,
checked in by Rob Schluntz <rschlunt@…>, 10 years ago
|
fixed initialization of stack-allocated polymorphic variables; missing header file
|
-
Property mode set to
100644
|
File size:
734 bytes
|
Rev | Line | |
---|
[48e99f2] | 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 | |
---|
| 18 | namespace InitTweak { |
---|
| 19 | |
---|
| 20 | void tweak( std::list< Declaration * > translationUnit ); |
---|
| 21 | |
---|
| 22 | class RemoveInit : public Mutator { |
---|
| 23 | public: |
---|
| 24 | // RemoveInit(); |
---|
| 25 | virtual ObjectDecl *mutate(ObjectDecl *objDecl); |
---|
| 26 | virtual CompoundStmt *mutate(CompoundStmt *compoundStmt); |
---|
| 27 | protected: |
---|
| 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.