1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-07 09:46:02 +02:00

Cosmetics.

This commit is contained in:
Sergey Prigogin 2013-12-18 12:27:03 -08:00
parent e0d1910ed4
commit bff4a3bf6c
2 changed files with 7 additions and 9 deletions

View file

@ -6,8 +6,8 @@
* http://www.eclipse.org/legal/epl-v10.html * http://www.eclipse.org/legal/epl-v10.html
* *
* Contributors: * Contributors:
* John Camelon (IBM) - Initial API and implementation * John Camelon (IBM) - Initial API and implementation
* Markus Schorn (Wind River Systems) * Markus Schorn (Wind River Systems)
*******************************************************************************/ *******************************************************************************/
package org.eclipse.cdt.core.dom.ast.cpp; package org.eclipse.cdt.core.dom.ast.cpp;
@ -18,7 +18,6 @@ import org.eclipse.cdt.core.dom.ast.IASTTypeIdExpression;
* @noimplement This interface is not intended to be implemented by clients. * @noimplement This interface is not intended to be implemented by clients.
*/ */
public interface ICPPASTTypeIdExpression extends IASTTypeIdExpression, ICPPASTExpression { public interface ICPPASTTypeIdExpression extends IASTTypeIdExpression, ICPPASTExpression {
public static final int op_typeid = IASTTypeIdExpression.op_typeid; public static final int op_typeid = IASTTypeIdExpression.op_typeid;
/** /**
@ -26,8 +25,7 @@ public interface ICPPASTTypeIdExpression extends IASTTypeIdExpression, ICPPASTEx
*/ */
@Deprecated @Deprecated
public static final int op_last = IASTTypeIdExpression.op_last; public static final int op_last = IASTTypeIdExpression.op_last;
/** /**
* @since 5.1 * @since 5.1
*/ */

View file

@ -1942,7 +1942,7 @@ public class GNUCPPSourceParser extends AbstractGNUSourceCodeParser {
return astUD; return astUD;
} }
if(LT(1) == IToken.tIDENTIFIER && LT(2) == IToken.tASSIGN){ if (LT(1) == IToken.tIDENTIFIER && LT(2) == IToken.tASSIGN){
return aliasDeclaration(offset); return aliasDeclaration(offset);
} }
@ -1959,7 +1959,7 @@ public class GNUCPPSourceParser extends AbstractGNUSourceCodeParser {
ICPPASTTypeId aliasedType = typeId(DeclarationOptions.TYPEID); ICPPASTTypeId aliasedType = typeId(DeclarationOptions.TYPEID);
if(LT(1) != IToken.tSEMI){ if (LT(1) != IToken.tSEMI){
throw backtrack; throw backtrack;
} }
int endOffset = consume().getEndOffset(); int endOffset = consume().getEndOffset();
@ -4223,7 +4223,7 @@ public class GNUCPPSourceParser extends AbstractGNUSourceCodeParser {
ICPPASTCompositeTypeSpecifier astClassSpecifier = nodeFactory.newCompositeTypeSpecifier(classKind, name); ICPPASTCompositeTypeSpecifier astClassSpecifier = nodeFactory.newCompositeTypeSpecifier(classKind, name);
// class virt specifier // class virt specifier
if(LT(1) == IToken.tIDENTIFIER) { if (LT(1) == IToken.tIDENTIFIER) {
classVirtSpecifier(astClassSpecifier); classVirtSpecifier(astClassSpecifier);
} }
@ -4301,7 +4301,7 @@ public class GNUCPPSourceParser extends AbstractGNUSourceCodeParser {
private void classVirtSpecifier(ICPPASTCompositeTypeSpecifier astClassSpecifier) throws EndOfFileException, BacktrackException { private void classVirtSpecifier(ICPPASTCompositeTypeSpecifier astClassSpecifier) throws EndOfFileException, BacktrackException {
IToken token = LA(); IToken token = LA();
char[] tokenImage = token.getCharImage(); char[] tokenImage = token.getCharImage();
if(token.getType() == IToken.tIDENTIFIER && Arrays.equals(Keywords.cFINAL, tokenImage)){ if (token.getType() == IToken.tIDENTIFIER && Arrays.equals(Keywords.cFINAL, tokenImage)){
consume(); consume();
astClassSpecifier.setFinal(true); astClassSpecifier.setFinal(true);
} }