forked from qt-creator/qt-creator
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user