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 b1a6d6b was
b1a6d6b,
checked in by Rob Schluntz <rschlunt@…>, 9 years ago
|
removed duplicate adapters, switch to c99 for initializer declarations
|
-
Property mode set to
100644
|
File size:
892 bytes
|
Rev | Line | |
---|
[51b7345] | 1 | #include <algorithm> |
---|
| 2 | #include <iostream> |
---|
| 3 | #include <cassert> |
---|
| 4 | #include <list> |
---|
| 5 | |
---|
| 6 | #include "Mutate.h" |
---|
| 7 | #include "ChooseMutator.h" |
---|
| 8 | #include "LabelFixer.h" |
---|
| 9 | #include "MLEMutator.h" |
---|
| 10 | #include "CaseRangeMutator.h" |
---|
| 11 | #include "ForExprMutator.h" |
---|
| 12 | #include "LabelTypeChecker.h" |
---|
| 13 | //#include "ExceptMutator.h" |
---|
| 14 | |
---|
| 15 | #include "utility.h" |
---|
| 16 | |
---|
| 17 | #include "SynTree/Visitor.h" |
---|
| 18 | |
---|
| 19 | using namespace std; |
---|
| 20 | |
---|
| 21 | namespace ControlStruct { |
---|
[d9a0e76] | 22 | void mutate( std::list< Declaration * > translationUnit ) { |
---|
[b1a6d6b] | 23 | // ForExprMutator formut; |
---|
| 24 | LabelFixer lfix; |
---|
[d9a0e76] | 25 | ChooseMutator chmut; |
---|
| 26 | CaseRangeMutator ranges; // has to run after ChooseMutator |
---|
| 27 | //ExceptMutator exc; |
---|
[b1a6d6b] | 28 | // LabelTypeChecker lbl; |
---|
[d9a0e76] | 29 | |
---|
[b1a6d6b] | 30 | // mutateAll( translationUnit, formut ); |
---|
[d9a0e76] | 31 | acceptAll( translationUnit, lfix ); |
---|
| 32 | mutateAll( translationUnit, chmut ); |
---|
| 33 | mutateAll( translationUnit, ranges ); |
---|
| 34 | //mutateAll( translationUnit, exc ); |
---|
| 35 | //acceptAll( translationUnit, lbl ); |
---|
| 36 | } |
---|
[51b7345] | 37 | } // namespace CodeGen |
---|
Note: See
TracBrowser
for help on using the repository browser.