MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / misra_17_1

Method misra_17_1

addons/misra.py:3434–3440  ·  view source on GitHub ↗
(self, data)

Source from the content-addressed store, hash-verified

3432 self.reportError(token, 16, 7)
3433
3434 def misra_17_1(self, data):
3435 for token in data.tokenlist:
3436 if isFunctionCall(token, data.standards.c) and token.astOperand1.str in (
3437 'va_list', 'va_arg', 'va_start', 'va_end', 'va_copy'):
3438 self.reportError(token, 17, 1)
3439 elif token.str == 'va_list':
3440 self.reportError(token, 17, 1)
3441
3442 def misra_17_2(self, data):
3443 # find recursions..

Callers

nothing calls this directly

Calls 2

reportErrorMethod · 0.95
isFunctionCallFunction · 0.70

Tested by

no test coverage detected