mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
== & != have boolean expression type
This commit is contained in:
parent
5c33d3d918
commit
1b02dd9ecf
1 changed files with 2 additions and 0 deletions
|
@ -1683,6 +1683,8 @@ public class CPPVisitor {
|
||||||
case IASTBinaryExpression.op_greaterThan:
|
case IASTBinaryExpression.op_greaterThan:
|
||||||
case IASTBinaryExpression.op_logicalAnd:
|
case IASTBinaryExpression.op_logicalAnd:
|
||||||
case IASTBinaryExpression.op_logicalOr:
|
case IASTBinaryExpression.op_logicalOr:
|
||||||
|
case IASTBinaryExpression.op_equals:
|
||||||
|
case IASTBinaryExpression.op_notequals:
|
||||||
result = new CPPBasicType( ICPPBasicType.t_bool, 0 );
|
result = new CPPBasicType( ICPPBasicType.t_bool, 0 );
|
||||||
break;
|
break;
|
||||||
case IASTBinaryExpression.op_plus:
|
case IASTBinaryExpression.op_plus:
|
||||||
|
|
Loading…
Add table
Reference in a new issue