misra.py: minor update

This commit is contained in:
Daniel Marjamäki 2018-03-12 15:47:06 +01:00
parent 77318d0e14
commit a705391054
1 changed files with 1 additions and 1 deletions

View File

@ -698,7 +698,7 @@ def misra_14_4(data):
for token in data.tokenlist: for token in data.tokenlist:
if token.str != '(': if token.str != '(':
continue continue
if not token.astOperand1 or not (token.astOperand1.str in {'if', 'while'}): if not token.astOperand1 or not (token.astOperand1.str in ['if', 'while']):
continue continue
if not isBoolExpression(token.astOperand2): if not isBoolExpression(token.astOperand2):
reportError(token, 14, 4) reportError(token, 14, 4)