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

Method misra_20_4

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

Source from the content-addressed store, hash-verified

3714 self.reportError(directive, 20, 3)
3715
3716 def misra_20_4(self, data):
3717 for directive in data.directives:
3718 res = re.search(r'#define ([a-z][a-z0-9_]+)', directive.str)
3719 if res and isKeyword(res.group(1), data.standards.c):
3720 self.reportError(directive, 20, 4)
3721
3722 def misra_20_5(self, data):
3723 for directive in data.directives:

Callers

nothing calls this directly

Calls 2

reportErrorMethod · 0.95
isKeywordFunction · 0.70

Tested by

no test coverage detected