mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-04 23:05:47 +02:00
Code formatting.
This commit is contained in:
parent
b81800cca4
commit
540907f410
1 changed files with 20 additions and 20 deletions
|
@ -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()
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Reference in a new issue