()
| 16 | cppcheckdata.reportError(location, severity, message, __addon_name__, errorId or __errorid__) |
| 17 | |
| 18 | def runcheckers(): |
| 19 | # If there are no checkers then don't run |
| 20 | if len(__checkers__) == 0: |
| 21 | return |
| 22 | global __addon_name__ |
| 23 | global __errorid__ |
| 24 | addon = sys.argv[0] |
| 25 | parser = cppcheckdata.ArgumentParser() |
| 26 | args = parser.parse_args() |
| 27 | |
| 28 | __addon_name__ = os.path.splitext(os.path.basename(addon))[0] |
| 29 | |
| 30 | for dumpfile in args.dumpfile: |
| 31 | if not args.quiet: |
| 32 | print('Checking %s...' % dumpfile) |
| 33 | |
| 34 | data = cppcheckdata.CppcheckData(dumpfile) |
| 35 | |
| 36 | for cfg in data.iterconfigurations(): |
| 37 | if not args.quiet: |
| 38 | print('Checking %s, config %s...' % (dumpfile, cfg.name)) |
| 39 | for c in __checkers__: |
| 40 | __errorid__ = c.__name__ |
| 41 | c(cfg, data) |
nothing calls this directly
no test coverage detected