blob: 1d20895af86507b4775002603796837347971c15 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#!/usr/bin/perl
=head1 NAME
qdoc2tasks.pl - Convert qdoc warnings into Qt Creator task files.
=head1 SYNOPSIS
qdoc2tasks.pl < logfile > taskfile
=cut
use strict;
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: (.*)$/) {
my $fileName = $1;
my $lineNumber = $2;
my $text = $3;
print $fileName, "\t", $lineNumber, "\twarn\t", $text,"\n";
}
}
|