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

Method misra_20_10

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

Source from the content-addressed store, hash-verified

3828 self.reportError(cond, 20, 9)
3829
3830 def misra_20_10(self, data):
3831 for directive in data.directives:
3832 d = Define(directive)
3833 if d.expansionList.find('#') >= 0:
3834 self.reportError(directive, 20, 10)
3835
3836 def misra_20_11(self, cfg):
3837 for directive in cfg.directives:

Callers

nothing calls this directly

Calls 3

reportErrorMethod · 0.95
DefineClass · 0.70
findMethod · 0.45

Tested by

no test coverage detected