From 8f64a1d13671dde96873c6245de850b133d7ad32 Mon Sep 17 00:00:00 2001 From: Thomas Tanner Date: Sun, 25 Oct 2015 21:07:02 +0000 Subject: 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 --- massage_messages.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 massage_messages.py (limited to 'massage_messages.py') 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 -- cgit v1.3.1