mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-08 00:35:49 +02:00
Cosmetics.
This commit is contained in:
parent
710e358931
commit
ef82e2a7b2
4 changed files with 9 additions and 17 deletions
|
@ -13,21 +13,21 @@ package org.eclipse.cdt.core.parser.tests.rewrite.changegenerator.replace;
|
|||
|
||||
import junit.framework.Test;
|
||||
|
||||
import org.eclipse.cdt.core.dom.ast.ASTVisitor;
|
||||
import org.eclipse.cdt.core.dom.ast.IASTDeclarator;
|
||||
import org.eclipse.cdt.core.dom.ast.IASTParameterDeclaration;
|
||||
import org.eclipse.cdt.core.dom.ast.IASTPointerOperator;
|
||||
import org.eclipse.cdt.core.dom.ast.ASTVisitor;
|
||||
import org.eclipse.cdt.core.parser.tests.rewrite.changegenerator.ChangeGeneratorTest;
|
||||
import org.eclipse.cdt.internal.core.dom.parser.cpp.CPPASTFunctionDeclarator;
|
||||
import org.eclipse.cdt.internal.core.dom.parser.cpp.CPPASTPointer;
|
||||
import org.eclipse.cdt.internal.core.dom.rewrite.ASTModification;
|
||||
import org.eclipse.cdt.internal.core.dom.rewrite.ASTModificationStore;
|
||||
import org.eclipse.cdt.internal.core.dom.rewrite.ASTModification.ModificationKind;
|
||||
import org.eclipse.cdt.internal.core.dom.rewrite.ASTModificationStore;
|
||||
|
||||
public class PointerInParameterTest extends ChangeGeneratorTest {
|
||||
|
||||
public PointerInParameterTest() {
|
||||
super("Replace Pointer for Parameter"); //$NON-NLS-1$
|
||||
super("PointerInParameterTest"); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -13,24 +13,19 @@ package org.eclipse.cdt.core.parser.tests.rewrite.changegenerator.replace;
|
|||
|
||||
import junit.framework.Test;
|
||||
|
||||
import org.eclipse.cdt.core.dom.ast.IASTStatement;
|
||||
import org.eclipse.cdt.core.dom.ast.ASTVisitor;
|
||||
import org.eclipse.cdt.core.dom.ast.IASTStatement;
|
||||
import org.eclipse.cdt.core.dom.ast.cpp.ICPPASTForStatement;
|
||||
import org.eclipse.cdt.core.parser.tests.rewrite.changegenerator.ChangeGeneratorTest;
|
||||
import org.eclipse.cdt.internal.core.dom.parser.cpp.CPPNodeFactory;
|
||||
import org.eclipse.cdt.internal.core.dom.rewrite.ASTModification;
|
||||
import org.eclipse.cdt.internal.core.dom.rewrite.ASTModificationStore;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public class ReplaceForLoopBodyTest extends ChangeGeneratorTest {
|
||||
|
||||
private boolean forReplaced = false;
|
||||
private boolean forReplaced;
|
||||
|
||||
public ReplaceForLoopBodyTest(){
|
||||
super("Replace For-Loop"); //$NON-NLS-1$
|
||||
super("ReplaceForLoopBodyTest"); //$NON-NLS-1$
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -45,7 +40,6 @@ public class ReplaceForLoopBodyTest extends ChangeGeneratorTest {
|
|||
return new ReplaceForLoopBodyTest();
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
protected ASTVisitor createModificator(
|
||||
final ASTModificationStore modStore) {
|
||||
|
|
|
@ -65,8 +65,7 @@ public class ReplaceInsertStatementTest extends ChangeGeneratorTest {
|
|||
IASTLiteralExpression value = new CPPASTLiteralExpression(
|
||||
IASTLiteralExpression.lk_integer_constant, "42".toCharArray());
|
||||
IASTExpressionStatement insertStmt = new CPPASTExpressionStatement(
|
||||
new CPPASTBinaryExpression(
|
||||
IASTBinaryExpression.op_assign, id, value));
|
||||
new CPPASTBinaryExpression(IASTBinaryExpression.op_assign, id, value));
|
||||
|
||||
IASTIdExpression incId = new CPPASTIdExpression(
|
||||
new CPPASTName("i".toCharArray()));
|
||||
|
@ -88,5 +87,4 @@ public class ReplaceInsertStatementTest extends ChangeGeneratorTest {
|
|||
}
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -251,7 +251,7 @@ public class ExtractFunctionInputPage extends UserInputWizardPage {
|
|||
return;
|
||||
|
||||
if (methodName.isEmpty()) {
|
||||
methodName = StubUtility.suggestMethodName("someMethodName", null, //$NON-NLS-1$
|
||||
methodName = StubUtility.suggestMethodName("extracted", null, //$NON-NLS-1$
|
||||
refactoring.getTranslationUnit());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue