ADT
aaron-thesis
arm-eh
ast-experimental
cleanup-dtors
ctor
deferred_resn
demangler
enum
forall-pointer-decay
gc_noraii
jacob/cs343-translation
jenkins-sandbox
memory
new-ast
new-ast-unique-expr
new-env
no_list
persistent-indexer
pthread-emulation
qualifiedEnum
resolv-new
string
stuck-waitfor-destruct
with_gc
|
Last change
on this file since b8508a2 was 48e99f2, checked in by Rob Schluntz <rschlunt@…>, 11 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 |
|
|---|
| 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.