1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-04 23:05:47 +02:00

Code formatting.

This commit is contained in:
Sergey Prigogin 2009-02-23 02:29:53 +00:00
parent b81800cca4
commit 540907f410

View file

@ -23,7 +23,6 @@ import org.eclipse.cdt.internal.core.index.IIndexType;
* Integral c++ type. * Integral c++ type.
*/ */
public class CPPBasicType implements ICPPBasicType { public class CPPBasicType implements ICPPBasicType {
protected int qualifierBits = 0; protected int qualifierBits = 0;
protected int type; protected int type;
protected IASTExpression expression = null; protected IASTExpression expression = null;
@ -32,8 +31,8 @@ public class CPPBasicType implements ICPPBasicType {
type = t; type = t;
qualifierBits = bits; qualifierBits = bits;
if (type == IBasicType.t_unspecified) { if (type == IBasicType.t_unspecified &&
if ((qualifierBits & (IS_LONG | IS_SHORT | IS_SIGNED | IS_UNSIGNED)) != 0) (qualifierBits & (IS_LONG | IS_SHORT | IS_SIGNED | IS_UNSIGNED)) != 0) {
type = IBasicType.t_int; type = IBasicType.t_int;
} }
} }
@ -67,6 +66,7 @@ public class CPPBasicType implements ICPPBasicType {
} }
return (type == t.type && qualifierBits == t.qualifierBits); return (type == t.type && qualifierBits == t.qualifierBits);
} }
/* (non-Javadoc) /* (non-Javadoc)
* @see org.eclipse.cdt.core.dom.ast.IBasicType#getType() * @see org.eclipse.cdt.core.dom.ast.IBasicType#getType()
*/ */