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

Method misra_21_8

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

Source from the content-addressed store, hash-verified

3983 self.reportError(token, 21, 7)
3984
3985 def misra_21_8(self, data):
3986 for token in data.tokenlist:
3987 if isFunctionCall(token, data.standards.c) and (token.astOperand1.str in ('abort', 'exit', 'getenv')):
3988 self.reportError(token, 21, 8)
3989
3990 def misra_21_9(self, data):
3991 for token in data.tokenlist:

Callers

nothing calls this directly

Calls 2

reportErrorMethod · 0.95
isFunctionCallFunction · 0.70

Tested by

no test coverage detected