summaryrefslogtreecommitdiff
path: root/massage_messages.py
blob: 656c48bda9583696ef1886e61958b773024f2e51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# Attempt to massage the messages from clang so that QT recognises them
# expected: source\bsatk\bsafile.cpp(101) : fatal error C1189: #error :  "we may have to compress/decompress!"
# clang:    source\bsatk\bsafile.cpp(101) :  error: "we may have to compress/decompress!"

import fileinput
import re

for line in fileinput.input():
    # Look for '\) : ([^:])?:'
    # Replace with ') : \1 I0000:
    line.rstrip()
    print re.sub(r'\)\s*:\s*([^:]*):', r') : \1 I0000:', line)