source: translator/ControlStruct/Mutate.cc @ b1a6d6b

aaron-thesisarm-ehcleanup-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@…>, 8 years ago

removed duplicate adapters, switch to c99 for initializer declarations

  • Property mode set to 100644
File size: 892 bytes
Line 
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
19using namespace std;
20
21namespace ControlStruct {
22    void mutate( std::list< Declaration * > translationUnit ) {
23        // ForExprMutator formut;
24        LabelFixer lfix;
25        ChooseMutator chmut;
26        CaseRangeMutator ranges;  // has to run after ChooseMutator
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    }
37} // namespace CodeGen
Note: See TracBrowser for help on using the repository browser.