Commit a7c49552 authored by Friedemann Kleint's avatar Friedemann Kleint
Browse files

Add for converting GCC warning logs into .tasks files.

Change-Id: I408d2170575c99a690af53d32b08318e6060f525
Reviewed-by: default avatarTobias Hunger <>
parent e5f146ed
#!/usr/bin/perl -w
=head1 NAME - Convert GCC warnings into Qt Creator task files.
=head1 SYNOPSIS < logfile > taskfile
use strict;
while (my $line = <STDIN> ) {
# --- extract file name based matching:
# file.cpp:214:37: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
if ($line =~ /^([^:]+):(\d+):\d*:? warning: (.*)$/) {
my $fileName = $1;
my $lineNumber = $2;
my $text = $3;
$fileName =~ s|\\|/|g;
print $fileName, "\t", $lineNumber, "\twarn\t", $text,"\n";
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment