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

Method misra_20_11

addons/misra.py:3836–3842  ·  view source on GitHub ↗
(self, cfg)

Source from the content-addressed store, hash-verified

3834 self.reportError(directive, 20, 10)
3835
3836 def misra_20_11(self, cfg):
3837 for directive in cfg.directives:
3838 d = Define(directive)
3839 for arg in d.args:
3840 res = re.search(r'[^#]#[ ]*%s[ ]*##' % arg, ' ' + d.expansionList)
3841 if res:
3842 self.reportError(directive, 20, 11)
3843
3844 def misra_20_12(self, cfg):
3845 def _is_hash_hash_op(expansion_list, arg):

Callers

nothing calls this directly

Calls 2

reportErrorMethod · 0.95
DefineClass · 0.70

Tested by

no test coverage detected