Misra: Fix rule 5.3

This commit is contained in:
Daniel Marjamäki 2017-04-17 13:32:48 +02:00
parent 9305394abd
commit ce9f121ce6
1 changed files with 2 additions and 1 deletions

View File

@ -277,8 +277,9 @@ def misra_5_3(data):
scopeVars = {}
for var in data.variables:
if var.isArgument:
# TODO
continue
if not var.nameToken.scopeId in scopeVars:
if not var.nameToken.scope in scopeVars:
scopeVars[var.nameToken.scope] = []
scopeVars[var.nameToken.scope].append(var)