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

Removed few deprecated *_last constants.

Change-Id: I62de6fbb05d2b707147e851126d486c1e943e120
This commit is contained in:
Sergey Prigogin 2016-03-14 18:23:10 -07:00 committed by Gerrit Code Review @ Eclipse.org
parent 5423c9437b
commit b50f68c053
15 changed files with 3 additions and 108 deletions

View file

@ -111,11 +111,4 @@ public interface IASTDeclSpecifier extends IASTNode {
*/
@Deprecated
public void setAlignmentSpecifiers(IASTAlignmentSpecifier[] alignmentSpecifiers);
/**
* @deprecated All constants must be defined in this interface.
* @noreference This field is not intended to be referenced by clients.
*/
@Deprecated
public static final int sc_last = sc_register;
}

View file

@ -38,13 +38,6 @@ public interface IASTLiteralExpression extends IASTExpression {
*/
public static final int lk_string_literal = 3;
/**
* @deprecated All possible values must be defined in {@link IASTLiteralExpression}.
* @noreference This field is not intended to be referenced by clients.
*/
@Deprecated
public static final int lk_last = lk_string_literal;
/**
* {@code lk_this} represents the '{@code this}' keyword for C++ only.
* @since 5.1

View file

@ -253,11 +253,4 @@ public interface IASTSimpleDeclSpecifier extends IASTDeclSpecifier {
* @since 5.2
*/
public void setDeclTypeExpression(IASTExpression expression);
/**
* @deprecated All constants must be defined in this interface
* @noreference This field is not intended to be referenced by clients.
*/
@Deprecated
public static final int t_last = t_double; // used only in subclasses
}

View file

@ -165,22 +165,14 @@ public interface IASTTypeIdExpression extends IASTExpression {
public static final int op_is_trivially_copyable = 24;
/**
* @deprecated constants should be declared here, to avoid using the same constant in different
* interfaces.
* @noreference This field is not intended to be referenced by clients.
*/
@Deprecated
public static final int op_last = op_alignof;
/**
* Get the operator for the expression.
* Returns the operator for the expression.
*
* @return int
*/
public int getOperator();
/**
* Set the operator for the expression.
* Sets the operator for the expression.
* @param value int
*/
public void setOperator(int value);

View file

@ -131,13 +131,6 @@ public interface IASTUnaryExpression extends IASTExpression {
*/
public static final int op_labelReference = 18;
/**
* @deprecated All constants must be defined in this interface.
* @noreference This field is not intended to be referenced by clients.
*/
@Deprecated
public static final int op_last = op_alignOf;
/**
* {@code OPERAND} represents the relationship between an {@code IASTUnaryExpression} and
* it's nested {@code IASTExpression}.

View file

@ -20,7 +20,6 @@ import org.eclipse.cdt.core.dom.ast.IASTSimpleDeclSpecifier;
* @noimplement This interface is not intended to be implemented by clients.
*/
public interface ICASTSimpleDeclSpecifier extends IASTSimpleDeclSpecifier, ICASTDeclSpecifier {
/**
* @since 5.1
*/
@ -39,11 +38,4 @@ public interface ICASTSimpleDeclSpecifier extends IASTSimpleDeclSpecifier, ICAST
*/
@Deprecated
public static final int t_Bool = t_bool;
/**
* @deprecated All constants must be defined in {@link IASTSimpleDeclSpecifier}.
* @noreference This field is not intended to be referenced by clients.
*/
@Deprecated
public static final int t_last = t_Bool;
}

View file

@ -34,8 +34,7 @@ public interface ICPPASTCompositeTypeSpecifier extends IASTCompositeTypeSpecifie
public static final int k_last = k_class;
/**
* <code>VISIBILITY_LABEL</code> is used to express the relationship for a
* visibility label "declaration".
* <code>VISIBILITY_LABEL</code> is used to express the relationship for a visibility label "declaration".
*/
public static final ASTNodeProperty VISIBILITY_LABEL = new ASTNodeProperty(
"ICPPASTCompositeTypeSpecifier.VISIBILITY_LABEL - Visibility label \"declaration\""); //$NON-NLS-1$

View file

@ -108,11 +108,4 @@ public interface ICPPASTDeclSpecifier extends IASTDeclSpecifier, IASTAttributeOw
*/
@Override
public ICPPASTDeclSpecifier copy(CopyStyle style);
/**
* @deprecated All constants must be defined in {@link IASTDeclSpecifier}.
* @noreference This field is not intended to be referenced by clients.
*/
@Deprecated
public static final int sc_last = sc_mutable;
}

View file

@ -31,11 +31,4 @@ public interface ICPPASTSimpleDeclSpecifier extends IASTSimpleDeclSpecifier, ICP
*/
@Override
public ICPPASTSimpleDeclSpecifier copy(CopyStyle style);
/**
* @deprecated all constants must be defined in {@link IASTSimpleDeclSpecifier}.
* @noreference This field is not intended to be referenced by clients.
*/
@Deprecated
public static final int t_last = t_wchar_t;
}

View file

@ -134,11 +134,6 @@ public interface ICPPASTSimpleTypeConstructorExpression extends ICPPASTExpressio
* @noreference This field is not intended to be referenced by clients.
*/
@Deprecated public static final int t_unsigned = 11;
/**
* @deprecated Not used.
* @noreference This field is not intended to be referenced by clients.
*/
@Deprecated public static final int t_last = t_unsigned;
/**
* @deprecated Replaced by {@link #getDeclSpecifier()}.

View file

@ -20,13 +20,6 @@ import org.eclipse.cdt.core.dom.ast.IASTTypeIdExpression;
public interface ICPPASTTypeIdExpression extends IASTTypeIdExpression, ICPPASTExpression {
public static final int op_typeid = IASTTypeIdExpression.op_typeid;
/**
* @deprecated all constants should be declared in {@link IASTTypeIdExpression}
* @noreference This field is not intended to be referenced by clients.
*/
@Deprecated
public static final int op_last = IASTTypeIdExpression.op_last;
/**
* @since 5.1
*/

View file

@ -30,13 +30,6 @@ public interface ICPPASTUnaryExpression extends IASTUnaryExpression, ICPPASTExpr
*/
public static final int op_typeid = IASTUnaryExpression.op_typeid;
/**
* @deprecated All constants to be defined in {@link IASTUnaryExpression}
* @noreference This field is not intended to be referenced by clients.
*/
@Deprecated
public static final int op_last = IASTUnaryExpression.op_last;
/**
* @since 5.1
*/

View file

@ -19,7 +19,6 @@ import org.eclipse.cdt.core.dom.ast.IASTTypeIdExpression;
*/
@Deprecated
public interface IGNUASTTypeIdExpression extends IASTTypeIdExpression {
/**
* <code>op_typeof</code> is used for typeof( typeId ) type expressions.
*/
@ -30,12 +29,6 @@ public interface IGNUASTTypeIdExpression extends IASTTypeIdExpression {
* expressions.
*/
public static final int op_alignof = IASTTypeIdExpression.op_alignof;
/**
* @deprecated all constants must be declared in {@link IASTTypeIdExpression}
*/
@Deprecated
public static final int op_last = IASTTypeIdExpression.op_last;
/**
* @since 5.1

View file

@ -21,18 +21,6 @@ import org.eclipse.cdt.core.dom.ast.c.ICASTSimpleDeclSpecifier;
*/
@Deprecated
public interface IGCCASTSimpleDeclSpecifier extends ICASTSimpleDeclSpecifier {
/**
* @deprecated Replaced by {@link IASTSimpleDeclSpecifier#t_typeof}.
*/
@Deprecated
public static final int t_typeof = ICASTSimpleDeclSpecifier.t_last + 1;
/**
* @deprecated All constants must be defined in {@link IASTSimpleDeclSpecifier}.
*/
@Deprecated
public static final int t_last = t_typeof;
/**
* @deprecated Replaced by {@link IASTSimpleDeclSpecifier#DECLTYPE_EXPRESSION}.
*/

View file

@ -12,7 +12,6 @@ package org.eclipse.cdt.core.dom.ast.gnu.cpp;
import org.eclipse.cdt.core.dom.ast.ASTNodeProperty;
import org.eclipse.cdt.core.dom.ast.IASTExpression;
import org.eclipse.cdt.core.dom.ast.IASTSimpleDeclSpecifier;
import org.eclipse.cdt.core.dom.ast.cpp.ICPPASTSimpleDeclSpecifier;
/**
@ -39,17 +38,10 @@ public interface IGPPASTSimpleDeclSpecifier extends IGPPASTDeclSpecifier, ICPPAS
@Override
public IGPPASTSimpleDeclSpecifier copy();
/**
* @deprecated All constants must be defined in {@link IASTSimpleDeclSpecifier}.
*/
@Deprecated
public static final int t_last = t_typeof;
/**
* @deprecated Replaced by {@link ICPPASTSimpleDeclSpecifier#DECLTYPE_EXPRESSION}.
*/
@Deprecated
public static final ASTNodeProperty TYPEOF_EXPRESSION = new ASTNodeProperty(
"IGPPASTSimpleDeclSpecifier.TYPEOF_EXPRESSION - typeof() Expression"); //$NON-NLS-1$
}