mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-29 11:55:40 +02:00
Support case-ranges in the expression writer, related to bug 211882.
This commit is contained in:
parent
81a7a466e9
commit
0a0ac2396e
1 changed files with 3 additions and 0 deletions
|
@ -82,6 +82,7 @@ public class ExpressionWriter extends NodeWriter{
|
||||||
private static final String MAX_OP = " >? "; //$NON-NLS-1$
|
private static final String MAX_OP = " >? "; //$NON-NLS-1$
|
||||||
private static final String PMARROW_OP = "->*"; //$NON-NLS-1$
|
private static final String PMARROW_OP = "->*"; //$NON-NLS-1$
|
||||||
private static final String PMDOT_OP = ".*"; //$NON-NLS-1$
|
private static final String PMDOT_OP = ".*"; //$NON-NLS-1$
|
||||||
|
private static final String ELLIPSES = "..."; //$NON-NLS-1$
|
||||||
private static final String NOT_EQUALS_OP = " != "; //$NON-NLS-1$
|
private static final String NOT_EQUALS_OP = " != "; //$NON-NLS-1$
|
||||||
private static final String EQUALS_OP = " == "; //$NON-NLS-1$
|
private static final String EQUALS_OP = " == "; //$NON-NLS-1$
|
||||||
private static final String BINARY_OR_ASSIGN = " |= "; //$NON-NLS-1$
|
private static final String BINARY_OR_ASSIGN = " |= "; //$NON-NLS-1$
|
||||||
|
@ -222,6 +223,8 @@ public class ExpressionWriter extends NodeWriter{
|
||||||
return MAX_OP;
|
return MAX_OP;
|
||||||
case IGPPASTBinaryExpression.op_min:
|
case IGPPASTBinaryExpression.op_min:
|
||||||
return MIN_OP;
|
return MIN_OP;
|
||||||
|
case IASTBinaryExpression.op_ellipses:
|
||||||
|
return ELLIPSES;
|
||||||
default:
|
default:
|
||||||
System.err.println("Unknown unaryExpressionType: " + operator); //$NON-NLS-1$
|
System.err.println("Unknown unaryExpressionType: " + operator); //$NON-NLS-1$
|
||||||
throw new IllegalArgumentException("Unknown unaryExpressionType: " + operator); //$NON-NLS-1$
|
throw new IllegalArgumentException("Unknown unaryExpressionType: " + operator); //$NON-NLS-1$
|
||||||
|
|
Loading…
Add table
Reference in a new issue