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

Method misra_8_11

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

Source from the content-addressed store, hash-verified

2345 self.reportError(func.tokenDef, 8, 10)
2346
2347 def misra_8_11(self, data):
2348 for var in data.variables:
2349 if var.isExtern and simpleMatch(var.nameToken.next, '[ ]') and var.nameToken.scope.type == 'Global':
2350 self.reportError(var.nameToken, 8, 11)
2351
2352 def misra_8_12(self, data):
2353 for scope in data.scopes:

Callers

nothing calls this directly

Calls 2

reportErrorMethod · 0.95
simpleMatchFunction · 0.70

Tested by

no test coverage detected