summaryrefslogtreecommitdiff
path: root/massage_messages.py
diff options
context:
space:
mode:
authorThomas Tanner <trtanner@btinternet.com>2015-10-25 21:07:02 +0000
committerThomas Tanner <trtanner@btinternet.com>2015-10-25 21:07:02 +0000
commit8f64a1d13671dde96873c6245de850b133d7ad32 (patch)
tree2e91b7266621210009f7d56332437e557b06245d /massage_messages.py
parentb1cfc45853705163da0641eb8cf1cd77783e009d (diff)
Proper integraton of IWYU into the build (including massaging clang errors into the issues tab).
Note: There is at least one ug in QT that stops thing s copiling because it doesn't undertand clangs version
Diffstat (limited to 'massage_messages.py')
-rw-r--r--massage_messages.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/massage_messages.py b/massage_messages.py
new file mode 100644
index 00000000..656c48bd
--- /dev/null
+++ b/massage_messages.py
@@ -0,0 +1,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) \ No newline at end of file