diff --git a/core/org.eclipse.cdt.core.tests/ChangeLog b/core/org.eclipse.cdt.core.tests/ChangeLog index bb65c144e02..e7629f6896a 100644 --- a/core/org.eclipse.cdt.core.tests/ChangeLog +++ b/core/org.eclipse.cdt.core.tests/ChangeLog @@ -1,3 +1,6 @@ +2004-03-03 John Camelon + Updated tests to deal with IASTUsingDeclaration interface changes. + 2004-03-02 Sean Evoy Added tests to verify that the tool command canbe set through the IConfiguration interface in the testConfigurations() method, and diff --git a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/CompleteParseASTTest.java b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/CompleteParseASTTest.java index a8caf327867..21895a1811a 100644 --- a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/CompleteParseASTTest.java +++ b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/CompleteParseASTTest.java @@ -196,11 +196,11 @@ public class CompleteParseASTTest extends CompleteParseBaseTest assertEquals( directive.getNamespaceDefinition(), namespaceB ); assertEquals( directive.getNamespaceName(), "A::B" ); IASTUsingDeclaration declaration = (IASTUsingDeclaration)declarations.next(); - assertEquals( declaration.getUsingType(), variableX ); + assertEquals( declaration.getUsingTypes().next(), variableX ); declaration = (IASTUsingDeclaration)declarations.next(); - assertEquals( declaration.getUsingType(), classC ); + assertEquals( declaration.getUsingTypes().next(), classC ); declaration = (IASTUsingDeclaration)declarations.next(); - assertEquals( declaration.getUsingType(), fieldY ); + assertEquals( declaration.getUsingTypes().next(), fieldY ); assertEquals( callback.getReferences().size(), 12 ); } diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/parser/Enum.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/parser/Enum.java index a4302365dca..6faaa66db9b 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/parser/Enum.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/parser/Enum.java @@ -25,7 +25,7 @@ public class Enum /** * @return */ - public int getEnumValue() + protected int getEnumValue() { return enumValue; } diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/parser/IFilenameProvider.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/parser/IFilenameProvider.java new file mode 100644 index 00000000000..f94777eb88b --- /dev/null +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/parser/IFilenameProvider.java @@ -0,0 +1,20 @@ +/******************************************************************************* + * Copyright (c) 2003 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Common Public License v0.5 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/cpl-v05.html + * + * Contributors: + * IBM Corp. - Rational Software - initial implementation + ******************************************************************************/ +package org.eclipse.cdt.core.parser; + +/** + * @author jcamelon + */ +public interface IFilenameProvider { + + public char [] getCurrentFilename(); + +} diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/parser/IProblem.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/parser/IProblem.java index f2cfa11ae44..1e1de85e324 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/parser/IProblem.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/parser/IProblem.java @@ -13,8 +13,11 @@ package org.eclipse.cdt.core.parser; import java.util.Map; /** - * Description of a C/C++ problem, as detected by the translation or some of the underlying - * technology reusing it. + * @author jcamelon + * + * Description of a C/C++ parse/compilation problem, as detected by the parser or some of the underlying + * clients of the parser. + * * A problem provides access to: *