Misra: Harden isFunctionCall()
This commit is contained in:
parent
485f8c0820
commit
d44cc16b1c
|
@ -102,7 +102,7 @@ def isFunctionCall(expr):
|
||||||
return False
|
return False
|
||||||
if expr.astOperand1 != expr.previous:
|
if expr.astOperand1 != expr.previous:
|
||||||
return False
|
return False
|
||||||
if expr.astOperand1.str in ['sizeof', 'if', 'switch', 'while']:
|
if expr.astOperand1.str in KEYWORDS:
|
||||||
return False
|
return False
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue