(self, cfg)
| 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): |
nothing calls this directly
no test coverage detected