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

Method misra_21_7

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

Source from the content-addressed store, hash-verified

3978 self.reportError(token, 21, 6)
3979
3980 def misra_21_7(self, data):
3981 for token in data.tokenlist:
3982 if isFunctionCall(token, data.standards.c) and (token.astOperand1.str in ('atof', 'atoi', 'atol', 'atoll')):
3983 self.reportError(token, 21, 7)
3984
3985 def misra_21_8(self, data):
3986 for token in data.tokenlist:

Callers

nothing calls this directly

Calls 2

reportErrorMethod · 0.95
isFunctionCallFunction · 0.70

Tested by

no test coverage detected