misra.py: support for and C99 keywords in isBoolExpression (#1268)
This commit is contained in:
parent
53c53db312
commit
d46baad462
|
@ -291,7 +291,7 @@ def isBoolExpression(expr):
|
||||||
return False
|
return False
|
||||||
if expr.valueType and (expr.valueType.type == 'bool' or expr.valueType.bits == 1):
|
if expr.valueType and (expr.valueType.type == 'bool' or expr.valueType.bits == 1):
|
||||||
return True
|
return True
|
||||||
return expr.str in ['!', '==', '!=', '<', '<=', '>', '>=', '&&', '||', '0', '1']
|
return expr.str in ['!', '==', '!=', '<', '<=', '>', '>=', '&&', '||', '0', '1', 'true', 'false']
|
||||||
|
|
||||||
|
|
||||||
def isConstantExpression(expr):
|
def isConstantExpression(expr):
|
||||||
|
|
Loading…
Reference in New Issue