1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +02:00

Removed warnings.

This commit is contained in:
John Camelon 2005-03-14 21:18:46 +00:00
parent 402cb165c3
commit 85d1c00390
7 changed files with 15 additions and 15 deletions

View file

@ -369,19 +369,19 @@ public class ASTSignatureUtil {
case ICPPASTCompositeTypeSpecifier.k_class:
if (needSpace) { result.append(SPACE); needSpace=false; } result.append(Keywords.CLASS); needSpace=true;
break;
case ICPPASTCompositeTypeSpecifier.k_struct:
case IASTCompositeTypeSpecifier.k_struct:
if (needSpace) { result.append(SPACE); needSpace=false; } result.append(Keywords.STRUCT); needSpace=true;
break;
case ICPPASTCompositeTypeSpecifier.k_union:
case IASTCompositeTypeSpecifier.k_union:
if (needSpace) { result.append(SPACE); needSpace=false; } result.append(Keywords.UNION); needSpace=true;
break;
}
} else if (declSpec instanceof ICASTCompositeTypeSpecifier) {
switch(((ICASTCompositeTypeSpecifier)declSpec).getKey()) {
case ICASTCompositeTypeSpecifier.k_struct:
case IASTCompositeTypeSpecifier.k_struct:
if (needSpace) { result.append(SPACE); needSpace=false; } result.append(Keywords.STRUCT); needSpace=true;
break;
case ICASTCompositeTypeSpecifier.k_union:
case IASTCompositeTypeSpecifier.k_union:
if (needSpace) { result.append(SPACE); needSpace=false; } result.append(Keywords.UNION); needSpace=true;
break;
}

View file

@ -139,8 +139,8 @@ public class CASTCompositeTypeSpecifier extends CASTBaseDeclSpecifier implements
/* (non-Javadoc)
* @see org.eclipse.cdt.core.dom.ast.IASTNameOwner#getRoleForName(org.eclipse.cdt.core.dom.ast.IASTName)
*/
public int getRoleForName(IASTName name) {
if( name == this.name )
public int getRoleForName(IASTName n) {
if( n == this.name )
return r_declaration;
return r_unclear;
}

View file

@ -146,8 +146,8 @@ public class CASTDeclarator extends CASTNode implements IASTDeclarator {
/* (non-Javadoc)
* @see org.eclipse.cdt.core.dom.ast.IASTNameOwner#getRoleForName(org.eclipse.cdt.core.dom.ast.IASTName)
*/
public int getRoleForName(IASTName name) {
if( name == this.name )
public int getRoleForName(IASTName n ) {
if( n == this.name )
{
IASTNode getParent = getParent();
if( getParent instanceof IASTDeclaration )

View file

@ -65,8 +65,8 @@ public class CASTElaboratedTypeSpecifier extends CASTBaseDeclSpecifier implement
/* (non-Javadoc)
* @see org.eclipse.cdt.core.dom.ast.IASTNameOwner#getRoleForName(org.eclipse.cdt.core.dom.ast.IASTName)
*/
public int getRoleForName(IASTName name) {
if( this.name == name )
public int getRoleForName(IASTName n ) {
if( this.name == n )
return r_declaration;
return r_unclear;
}

View file

@ -107,8 +107,8 @@ public class CASTEnumerationSpecifier extends CASTBaseDeclSpecifier implements
/* (non-Javadoc)
* @see org.eclipse.cdt.core.dom.ast.IASTNameOwner#getRoleForName(org.eclipse.cdt.core.dom.ast.IASTName)
*/
public int getRoleForName(IASTName name) {
if( this.name == name )
public int getRoleForName(IASTName n ) {
if( this.name == n )
return r_declaration;
return r_unclear;
}

View file

@ -82,8 +82,8 @@ public class CASTFieldReference extends CASTNode implements IASTFieldReference {
/* (non-Javadoc)
* @see org.eclipse.cdt.core.dom.ast.IASTNameOwner#getRoleForName(org.eclipse.cdt.core.dom.ast.IASTName)
*/
public int getRoleForName(IASTName name) {
if( name == this.name )
public int getRoleForName(IASTName n ) {
if( n == this.name )
return r_reference;
return r_unclear;
}

View file

@ -4556,7 +4556,7 @@ public class GNUCPPSourceParser extends AbstractGNUSourceCodeParser {
typeIdExpression.setOperator(op);
typeIdExpression.setTypeId(typeId);
typeId.setParent(typeIdExpression);
typeId.setPropertyInParent(ICPPASTTypeIdExpression.TYPE_ID);
typeId.setPropertyInParent(IASTTypeIdExpression.TYPE_ID);
return typeIdExpression;
}