mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Cosmetics.
This commit is contained in:
parent
c1740cc639
commit
198d443e71
2 changed files with 4 additions and 8 deletions
|
@ -266,8 +266,7 @@ public class AST2CPPTests extends AST2BaseTest {
|
||||||
assertNoProblemBindings(col);
|
assertNoProblemBindings(col);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected IASTTranslationUnit parseAndCheckBindings(String code) throws Exception
|
protected IASTTranslationUnit parseAndCheckBindings(String code) throws Exception {
|
||||||
{
|
|
||||||
IASTTranslationUnit tu = parse(code, ParserLanguage.CPP);
|
IASTTranslationUnit tu = parse(code, ParserLanguage.CPP);
|
||||||
CPPNameCollector col = new CPPNameCollector();
|
CPPNameCollector col = new CPPNameCollector();
|
||||||
tu.accept(col);
|
tu.accept(col);
|
||||||
|
@ -285,8 +284,7 @@ public class AST2CPPTests extends AST2BaseTest {
|
||||||
return new BindingAssertionHelper(code, true);
|
return new BindingAssertionHelper(code, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void testBug40422() throws Exception
|
public void testBug40422() throws Exception {
|
||||||
{
|
|
||||||
IASTTranslationUnit tu = parse("class A { int y; }; int A::* x = 0;", ParserLanguage.CPP); //$NON-NLS-1$
|
IASTTranslationUnit tu = parse("class A { int y; }; int A::* x = 0;", ParserLanguage.CPP); //$NON-NLS-1$
|
||||||
CPPNameCollector col = new CPPNameCollector();
|
CPPNameCollector col = new CPPNameCollector();
|
||||||
tu.accept(col);
|
tu.accept(col);
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
* http://www.eclipse.org/legal/epl-v10.html
|
* http://www.eclipse.org/legal/epl-v10.html
|
||||||
*
|
*
|
||||||
* Contributors:
|
* Contributors:
|
||||||
* Institute for Software - initial API and implementation
|
* Institute for Software - initial API and implementation
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
package org.eclipse.cdt.internal.ui.refactoring.utils;
|
package org.eclipse.cdt.internal.ui.refactoring.utils;
|
||||||
|
|
||||||
|
@ -36,9 +36,7 @@ import org.eclipse.cdt.core.model.ICElement;
|
||||||
import org.eclipse.cdt.internal.ui.editor.CEditor;
|
import org.eclipse.cdt.internal.ui.editor.CEditor;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A collection of helper methods to interact with the
|
* A collection of helper methods to interact with the workbench's IDocuments and IFiles
|
||||||
* workbench's IDocuments and IFiles
|
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
public class EclipseObjects {
|
public class EclipseObjects {
|
||||||
static public IWorkbenchPage getActivePage() {
|
static public IWorkbenchPage getActivePage() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue