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 = {} scopeVars = {}
for var in data.variables: for var in data.variables:
if var.isArgument: if var.isArgument:
# TODO
continue continue
if not var.nameToken.scopeId in scopeVars: if not var.nameToken.scope in scopeVars:
scopeVars[var.nameToken.scope] = [] scopeVars[var.nameToken.scope] = []
scopeVars[var.nameToken.scope].append(var) scopeVars[var.nameToken.scope].append(var)