Inferno
0.2
|
00001 #ifndef SPLIT_INSTANCE_DECLARATIONS_HPP 00002 #define SPLIT_INSTANCE_DECLARATIONS_HPP 00003 00004 #include "sr/search_replace.hpp" 00005 00006 namespace Steps { 00007 00008 /** Where variables are declared in the statement body and are 00009 initialised, move the decl into the decls body and initialise 00010 using an assignment. */ 00011 class SplitInstanceDeclarations : public SearchReplace 00012 { 00013 public: 00014 SplitInstanceDeclarations(); 00015 }; 00016 00017 /** Where variables are declared in the statement body and are not 00018 initialised, move the decl into the decls body. */ 00019 class MoveInstanceDeclarations : public SearchReplace 00020 { 00021 public: 00022 MoveInstanceDeclarations(); 00023 }; 00024 00025 /** Where variables are declared in the decls collection and are 00026 initialised, move the init into the statement body and initialise 00027 using an assignment. */ 00028 class SplitInstanceDeclarations2 : public SearchReplace 00029 { 00030 public: 00031 SplitInstanceDeclarations2(); 00032 }; 00033 00034 }; // end namespace 00035 00036 #endif 00037