misra.py: updated 17.1 to catch non-compliant code in example suite

This commit is contained in:
Daniel Marjamäki 2018-03-14 09:41:23 +01:00
parent 6ceb4b057b
commit 08ee5709ed
1 changed files with 2 additions and 0 deletions

View File

@ -920,6 +920,8 @@ def misra_17_1(data):
for token in data.tokenlist:
if isFunctionCall(token) and token.astOperand1.str in {'va_list', 'va_arg', 'va_start', 'va_end', 'va_copy'}:
reportError(token, 17, 1)
elif token.str == 'va_list':
reportError(token, 17, 1)
def misra_17_6(rawTokens):