Changeset a08ba92 for translator/ControlStruct/CaseRangeMutator.h
- Timestamp:
- May 19, 2015, 4:58:14 PM (9 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, string, with_gc
- Children:
- 843054c2
- Parents:
- 01aeade
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
translator/ControlStruct/CaseRangeMutator.h
r01aeade ra08ba92 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // XXX.cc--7 // CaseRangeMutator.h -- 8 8 // 9 9 // Author : Richard C. Bilson 10 10 // Created On : Mon May 18 07:44:20 2015 11 // Last Modified By : 12 // Last Modified On : 13 // Update Count : 011 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Tue May 19 15:22:51 2015 13 // Update Count : 3 14 14 // 15 15 16 #ifndef CASERNG_MUTATOR_H 16 17 #define CASERNG_MUTATOR_H … … 21 22 22 23 namespace ControlStruct { 23 24 25 CaseRangeMutator() {}24 class CaseRangeMutator : public Mutator { 25 public: 26 CaseRangeMutator() {} 26 27 27 virtual Statement *mutate( ChooseStmt * );28 virtual Statement *mutate( SwitchStmt * );29 virtual Statement *mutate( FallthruStmt * );30 virtual Statement *mutate( CaseStmt * );31 32 void fillRange( Expression *lo, Expression *hi );28 virtual Statement *mutate( ChooseStmt * ); 29 virtual Statement *mutate( SwitchStmt * ); 30 virtual Statement *mutate( FallthruStmt * ); 31 virtual Statement *mutate( CaseStmt * ); 32 private: 33 void fillRange( Expression *lo, Expression *hi ); 33 34 34 Expression *currentCondition; 35 std::list< Expression * > newCaseLabels; 36 }; 37 35 Expression *currentCondition; 36 std::list< Expression * > newCaseLabels; 37 }; 38 38 } // namespace ControlStruct 39 39 40 40 #endif // CASERNG_MUTATOR_H 41 41 42 /*43 Local Variables:44 mode: c++45 End:46 */47 42 // Local Variables: // 48 43 // tab-width: 4 //
Note: See TracChangeset
for help on using the changeset viewer.