Misra: Harden isFunctionCall()

This commit is contained in:
Daniel Marjamäki 2017-04-15 15:21:55 +02:00
parent 485f8c0820
commit d44cc16b1c
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ def isFunctionCall(expr):
return False
if expr.astOperand1 != expr.previous:
return False
if expr.astOperand1.str in ['sizeof', 'if', 'switch', 'while']:
if expr.astOperand1.str in KEYWORDS:
return False
return True