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

Function __split_results

tools/donate_cpu_lib.py:581–597  ·  view source on GitHub ↗
(results)

Source from the content-addressed store, hash-verified

579
580
581def __split_results(results):
582 ret = []
583 w = None
584 re_obj = None
585 for line in results.split('\n'):
586 if line.endswith(']'):
587 if re_obj is None:
588 re_obj = re.compile(r': (error|warning|style|performance|portability|information|debug):')
589 if re_obj.search(line):
590 if w is not None:
591 ret.append(w.strip())
592 w = ''
593 if w is not None:
594 w += ' ' * 5 + line + '\n'
595 if w is not None:
596 ret.append(w.strip())
597 return ret
598
599
600def diff_results(ver1, results1, ver2, results2):

Callers 1

diff_resultsFunction · 0.85

Calls 1

compileMethod · 0.80

Tested by

no test coverage detected