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 c11e31c was
d9a0e76,
checked in by Peter A. Buhr <pabuhr@…>, 10 years ago
|
remove Parser.old, add -XCFA to driver, copy ptrdiff_t from stddef.h in preclude, remove casts from initialization constants, adjust formatting
|
-
Property mode set to
100644
|
File size:
883 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 ) { |
---|
| 23 | ChooseMutator chmut; |
---|
| 24 | ForExprMutator formut; |
---|
| 25 | CaseRangeMutator ranges; // has to run after ChooseMutator |
---|
| 26 | LabelFixer lfix; |
---|
| 27 | //ExceptMutator exc; |
---|
| 28 | LabelTypeChecker lbl; |
---|
| 29 | |
---|
| 30 | mutateAll( translationUnit, formut ); |
---|
| 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.