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

Method misra_21_6

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

Source from the content-addressed store, hash-verified

3969 self.reportError(directive, 21, 5)
3970
3971 def misra_21_6(self, data):
3972 for token in data.tokenlist:
3973 if not isFunctionCall(token) or token.previous.function:
3974 continue
3975 standard_id = getStdLib(data.standards.c)
3976 funcname = token.previous.str
3977 if funcname in standard_id.get("stdio.h", []) or funcname in standard_id.get("wchar.h", []):
3978 self.reportError(token, 21, 6)
3979
3980 def misra_21_7(self, data):
3981 for token in data.tokenlist:

Callers

nothing calls this directly

Calls 4

reportErrorMethod · 0.95
getStdLibFunction · 0.85
isFunctionCallFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected