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

Method misra_7_1

addons/misra.py:2049–2053  ·  view source on GitHub ↗
(self, rawTokens)

Source from the content-addressed store, hash-verified

2047
2048
2049 def misra_7_1(self, rawTokens):
2050 compiled = re.compile(r'^0[0-7]+$')
2051 for tok in rawTokens:
2052 if compiled.match(tok.str):
2053 self.reportError(tok, 7, 1)
2054
2055 def misra_7_2(self, data):
2056 for token in data.tokenlist:

Callers

nothing calls this directly

Calls 3

reportErrorMethod · 0.95
compileMethod · 0.80
matchMethod · 0.45

Tested by

no test coverage detected