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
        with_gc
      
      
        
          | 
            Last change
 on this file since fe3b61b was             d9a0e76, checked in by Peter A. Buhr <pabuhr@…>, 11 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
           | 
        
      
      
| 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 | 
 | 
|---|
| 19 | using namespace std;
 | 
|---|
| 20 | 
 | 
|---|
| 21 | namespace ControlStruct {
 | 
|---|
| 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 |     }
 | 
|---|
| 37 | } // namespace CodeGen
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.