misra.py: support for and C99 keywords in isBoolExpression (#1268)

This commit is contained in:
Konrad Grochowski 2018-05-29 06:50:32 +02:00 committed by Daniel Marjamäki
parent 53c53db312
commit d46baad462
1 changed files with 1 additions and 1 deletions

View File

@ -291,7 +291,7 @@ def isBoolExpression(expr):
return False
if expr.valueType and (expr.valueType.type == 'bool' or expr.valueType.bits == 1):
return True
return expr.str in ['!', '==', '!=', '<', '<=', '>', '>=', '&&', '||', '0', '1']
return expr.str in ['!', '==', '!=', '<', '<=', '>', '>=', '&&', '||', '0', '1', 'true', 'false']
def isConstantExpression(expr):