qdoc2tasks.pl: Adapt to changed message format in Qt 5.11

Account for the additional '(qdoc)'.

Change-Id: Ibef4dfba66bcc2eb1d47535b9e6501ed3a47e968
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
Friedemann Kleint
2018-01-26 16:20:28 +01:00
parent 09310bcdc6
commit d12c3e77b8
+3 -2
View File
@@ -41,8 +41,9 @@ use warnings;
while (my $line = <STDIN>) {
chomp($line);
# --- extract file name based matching:
# D:/.../qaxbase.cpp:3231: warning: Cannot tie this documentation to anything
if ($line =~ /^(..[^:]*):(\d+): warning: (.*)$/) {
# Qt 5.10: D:/.../qaxbase.cpp:3231: warning: Cannot tie this documentation to anything
# Qt 5.11: D:/.../qaxbase.cpp:3231: (qdoc) warning: Cannot tie this documentation to anything
if ($line =~ /^(..[^:]*):(\d+): (?:\(qdoc\) )?warning: (.*)$/) {
my $fileName = $1;
my $lineNumber = $2;
my $text = $3;