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

Method misra_1_2

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

Source from the content-addressed store, hash-verified

1693
1694
1695 def misra_1_2(self, cfg):
1696 # gcc language extensions: https://gcc.gnu.org/onlinedocs/gcc/C-Extensions.html
1697 for token in cfg.tokenlist:
1698 if simpleMatch(token, '? :'):
1699 self.reportError(token, 1, 2)
1700 elif simpleMatch(token, '( {') and simpleMatch(token.next.link.previous, '; } )'):
1701 self.reportError(token, 1, 2)
1702
1703
1704 def misra_1_4(self, cfg):

Callers

nothing calls this directly

Calls 2

reportErrorMethod · 0.95
simpleMatchFunction · 0.70

Tested by

no test coverage detected