misra.py: updated 17.1 to catch non-compliant code in example suite
This commit is contained in:
parent
6ceb4b057b
commit
08ee5709ed
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue