| 579 | |
| 580 | |
| 581 | def __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 | |
| 600 | def diff_results(ver1, results1, ver2, results2): |