mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Remove warnings.
This commit is contained in:
parent
783624b37e
commit
6537609bed
4 changed files with 7 additions and 9 deletions
|
@ -1,3 +1,6 @@
|
||||||
|
2004-03-28 John Camelon
|
||||||
|
Remove warnings.
|
||||||
|
|
||||||
2004-03-26 Andrew Niefer
|
2004-03-26 Andrew Niefer
|
||||||
- handle template template parameters
|
- handle template template parameters
|
||||||
|
|
||||||
|
|
|
@ -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.ASTNotImplementedException;
|
||||||
import org.eclipse.cdt.core.parser.ast.IASTNode;
|
import org.eclipse.cdt.core.parser.ast.IASTNode;
|
||||||
import org.eclipse.cdt.core.parser.ast.IASTTypedefDeclaration;
|
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.ast.SymbolIterator;
|
||||||
import org.eclipse.cdt.internal.core.parser.pst.IContainerSymbol;
|
import org.eclipse.cdt.internal.core.parser.pst.IContainerSymbol;
|
||||||
import org.eclipse.cdt.internal.core.parser.pst.IExtensibleSymbol;
|
import org.eclipse.cdt.internal.core.parser.pst.IExtensibleSymbol;
|
||||||
|
@ -53,7 +52,7 @@ public class ASTNode implements IASTNode {
|
||||||
if( context != null ){
|
if( context != null ){
|
||||||
ISymbol sym = null;
|
ISymbol sym = null;
|
||||||
if( context instanceof IASTTypedefDeclaration ){
|
if( context instanceof IASTTypedefDeclaration ){
|
||||||
ISymbol typedef = (ISymbol) ((ISymbolOwner)context).getSymbol();
|
ISymbol typedef = ((ISymbolOwner)context).getSymbol();
|
||||||
TypeInfo info = typedef.getTypeInfo().getFinalType();
|
TypeInfo info = typedef.getTypeInfo().getFinalType();
|
||||||
sym = info.getTypeSymbol();
|
sym = info.getTypeSymbol();
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -752,7 +752,7 @@ public class CompleteParseASTFactory extends BaseASTFactory implements IASTFacto
|
||||||
{
|
{
|
||||||
exp = (ASTExpression) iter.next();
|
exp = (ASTExpression) iter.next();
|
||||||
|
|
||||||
TypeInfo info = exp.getResultType().getResult();;
|
TypeInfo info = exp.getResultType().getResult();
|
||||||
|
|
||||||
list.add( info );
|
list.add( info );
|
||||||
}
|
}
|
||||||
|
@ -832,7 +832,7 @@ public class CompleteParseASTFactory extends BaseASTFactory implements IASTFacto
|
||||||
handleProblem( IProblem.SEMANTIC_NAME_NOT_PROVIDED, null );
|
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
|
//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 );
|
classSymbol.addParent( symbol, isVirtual, visibility, parentClassName.getFirstToken().getOffset(), references );
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,10 +11,8 @@
|
||||||
package org.eclipse.cdt.internal.core.parser.ast.quick;
|
package org.eclipse.cdt.internal.core.parser.ast.quick;
|
||||||
|
|
||||||
import org.eclipse.cdt.core.parser.ISourceElementRequestor;
|
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.IASTScope;
|
||||||
import org.eclipse.cdt.core.parser.ast.IASTTemplateSpecialization;
|
import org.eclipse.cdt.core.parser.ast.IASTTemplateSpecialization;
|
||||||
import org.eclipse.cdt.internal.core.parser.ast.Offsets;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author jcamelon
|
* @author jcamelon
|
||||||
|
@ -22,9 +20,7 @@ import org.eclipse.cdt.internal.core.parser.ast.Offsets;
|
||||||
*/
|
*/
|
||||||
public class ASTTemplateSpecialization extends ASTTemplateDeclaration implements IASTTemplateSpecialization
|
public class ASTTemplateSpecialization extends ASTTemplateDeclaration implements IASTTemplateSpecialization
|
||||||
{
|
{
|
||||||
private Offsets offsets = new Offsets();
|
/**
|
||||||
private IASTDeclaration ownedDeclaration;
|
|
||||||
/**
|
|
||||||
* @param scope
|
* @param scope
|
||||||
*/
|
*/
|
||||||
public ASTTemplateSpecialization(IASTScope scope, int startingOffset, int startingLine )
|
public ASTTemplateSpecialization(IASTScope scope, int startingOffset, int startingLine )
|
||||||
|
|
Loading…
Add table
Reference in a new issue