cdt/cdt_6_0_x/org.eclipse.cdt.ui.tests/resources/refactoring/ExtractLocalVariableHistory.rts
equal
deleted
inserted
replaced
1 //!extract local variable from for loop |
|
2 //#org.eclipse.cdt.ui.tests.refactoring.RefactoringHistoryTest |
|
3 //@main.cpp |
|
4 void foo(){ |
|
5 for(int n = 5 + 2; n < 10; ++n); |
|
6 } |
|
7 |
|
8 //= |
|
9 void foo(){ |
|
10 int i = 5 + 2; |
|
11 for(int n = i; n < 10; ++n); |
|
12 } |
|
13 |
|
14 //@refScript.xml |
|
15 <?xml version="1.0" encoding="UTF-8"?> |
|
16 <session version="1.0"> |
|
17 <refactoring comment="Extract 5 + 2" description="Extract Local Variable Refactoring" |
|
18 fileName="file:$$projectPath$$/main.cpp" flags="4" |
|
19 id="org.eclipse.cdt.internal.ui.refactoring.extractlocalvariable.ExtractLocalVariableRefactoring" |
|
20 name="i" project="RegressionTestProject" selection="25,5"/> |
|
21 </session> |
|