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

Method misra_13_6

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

Source from the content-addressed store, hash-verified

3045 self.reportError(token, 13, 5)
3046
3047 def misra_13_6(self, data):
3048 for token in data.tokenlist:
3049 if token.str == 'sizeof' and countSideEffectsRecursive(token.next) > 0:
3050 self.reportError(token, 13, 6)
3051
3052 def misra_14_1(self, data):
3053 for token in data.tokenlist:

Callers

nothing calls this directly

Calls 2

reportErrorMethod · 0.95

Tested by

no test coverage detected