1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Remove warnings.

This commit is contained in:
John Camelon 2004-03-28 23:00:41 +00:00
parent 783624b37e
commit 6537609bed
4 changed files with 7 additions and 9 deletions

View file

@ -1,3 +1,6 @@
2004-03-28 John Camelon
Remove warnings.
2004-03-26 Andrew Niefer
- handle template template parameters

View file

@ -18,7 +18,6 @@ import org.eclipse.cdt.core.parser.ParserMode;
import org.eclipse.cdt.core.parser.ast.ASTNotImplementedException;
import org.eclipse.cdt.core.parser.ast.IASTNode;
import org.eclipse.cdt.core.parser.ast.IASTTypedefDeclaration;
import org.eclipse.cdt.core.parser.ast.IASTNode.ILookupResult;
import org.eclipse.cdt.internal.core.parser.ast.SymbolIterator;
import org.eclipse.cdt.internal.core.parser.pst.IContainerSymbol;
import org.eclipse.cdt.internal.core.parser.pst.IExtensibleSymbol;
@ -53,7 +52,7 @@ public class ASTNode implements IASTNode {
if( context != null ){
ISymbol sym = null;
if( context instanceof IASTTypedefDeclaration ){
ISymbol typedef = (ISymbol) ((ISymbolOwner)context).getSymbol();
ISymbol typedef = ((ISymbolOwner)context).getSymbol();
TypeInfo info = typedef.getTypeInfo().getFinalType();
sym = info.getTypeSymbol();
} else {

View file

@ -752,7 +752,7 @@ public class CompleteParseASTFactory extends BaseASTFactory implements IASTFacto
{
exp = (ASTExpression) iter.next();
TypeInfo info = exp.getResultType().getResult();;
TypeInfo info = exp.getResultType().getResult();
list.add( info );
}
@ -832,7 +832,7 @@ public class CompleteParseASTFactory extends BaseASTFactory implements IASTFacto
handleProblem( IProblem.SEMANTIC_NAME_NOT_PROVIDED, null );
//Its possible that the parent is not an IContainerSymbol if its a template parameter or some kinds of template instances
ISymbol symbol = (ISymbol) lookupQualifiedName( classSymbol, parentClassName, references, true );
ISymbol symbol = lookupQualifiedName( classSymbol, parentClassName, references, true );
classSymbol.addParent( symbol, isVirtual, visibility, parentClassName.getFirstToken().getOffset(), references );
}

View file

@ -11,10 +11,8 @@
package org.eclipse.cdt.internal.core.parser.ast.quick;
import org.eclipse.cdt.core.parser.ISourceElementRequestor;
import org.eclipse.cdt.core.parser.ast.IASTDeclaration;
import org.eclipse.cdt.core.parser.ast.IASTScope;
import org.eclipse.cdt.core.parser.ast.IASTTemplateSpecialization;
import org.eclipse.cdt.internal.core.parser.ast.Offsets;
/**
* @author jcamelon
@ -22,9 +20,7 @@ import org.eclipse.cdt.internal.core.parser.ast.Offsets;
*/
public class ASTTemplateSpecialization extends ASTTemplateDeclaration implements IASTTemplateSpecialization
{
private Offsets offsets = new Offsets();
private IASTDeclaration ownedDeclaration;
/**
/**
* @param scope
*/
public ASTTemplateSpecialization(IASTScope scope, int startingOffset, int startingLine )