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

Method misra_21_10

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

Source from the content-addressed store, hash-verified

3993 self.reportError(token, 21, 9)
3994
3995 def misra_21_10(self, data):
3996 directive = findInclude(data.directives, '<time.h>')
3997 if directive:
3998 self.reportError(directive, 21, 10)
3999
4000 for token in data.tokenlist:
4001 if (token.str == 'wcsftime') and token.next and token.next.str == '(':
4002 self.reportError(token, 21, 10)
4003
4004 def misra_21_11(self, data):
4005 directive = findInclude(data.directives, '<tgmath.h>')

Callers

nothing calls this directly

Calls 2

reportErrorMethod · 0.95
findIncludeFunction · 0.85

Tested by

no test coverage detected